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, and deployed on Cloudflare Pages with GitHub Actions CI.

Features

  • Typed rules engine · Branded types (USD, MPH, Watts) and discriminated-union verdicts. The statute is data; the engine is a pure function backed by 91 unit tests.
  • Honest about ambiguity · Flags the Class 3 e-bike statutory gap and shows both the conservative reading and the alternate, instead of pretending the law is settled.
  • Multi-state by design · NJ is the only active card; CA, HI, MA, NY, and FL are effective-dated pending-bill records that survive amendments with no code changes.
  • No sales pitch · A carrier directory ranks insurers by S4834-compliance evidence, not commission, and flags one as pre-launch in NJ because that’s the truth.
  • Cites the law · Every verdict line links back to the bill text or the relevant N.J.S.A. section.
  • Shareable + exportable · The full result encodes into the URL (no backend, no accounts); a one-click Save-as-PDF produces a clean compliance summary.
Work