MyEBikeLaw

Dev
Design

A neutral compliance checker for New Jersey's S4834 e-bike law — reads the actual statute, classifies the bike, surfaces the gaps, and cites every claim back to the bill. No insurance referrals, no affiliate links.

View Live Site →

Built with React 19 and TypeScript (strict mode) on Vite, styled with Tailwind v4, schema-validated with Zod, tested with Vitest (84 unit tests covering the rules engine), and deployed on Cloudflare Pages at a custom domain.

Features

  • Typed rules engine — Branded types for USD, MPH, Watts, Years, discriminated unions for verdicts. The statute is data, the engine is pure.
  • Honest classification — Flags the Class 3 e-bike sub-type gap in the bill instead of pretending it’s settled.
  • Multi-state by design — NJ is the only active card; CA, HI, MA, NY, and FL render as effective-dated pending-bill records that survive amendments without code changes.
  • No sales pitch — A carrier directory ranks providers by S4834-compliance evidence, not by commission. VOOM is flagged as pre-launch in NJ because that’s what’s actually true.
  • Cites the law — Every verdict line links to the bill text or the relevant N.J.S.A. section.
  • Accessibility + perf — Skip-to-content, reduced-motion fallbacks, IntersectionObserver reveals with a 2-second safety timer, sub-100 KB gzipped JS.
Work