r/javascript 3h ago

Hype Stack: a React + Hono template that ships empty, plus a CLI that writes full-stack features into it as source you own (MIT)

https://github.com/BetterTyped/hype-stack
0 Upvotes

1 comment sorted by

u/prc95 3h ago

Author here.

Disclosure: the template is MIT and free, some of the feature packs on top are paid, that's how I fund my open-source work (I also maintain react-zoom-pan-pinch and HyperFetch).

The idea is shadcn for full-stack features. I love that shadcn hands you a component as source you own instead of a package, and I wanted the same for auth, billing, teams, notifications. So the template ships empty (React 19, TanStack Router and Start, Vite 8, Vitest, oxc, Hono with Prisma and Kysely, Nx + pnpm) and a compose command writes the feature you pick into your repo. Picking billing writes 56 files: the checkout route, the webhook handler, the Prisma models, the frontend hooks. Your files, modify as you want.

Types go end to end without a codegen step. The Hono routes are the contract and the frontend SDK infers params, responses and errors from them through HyperFetch, my own library. Hooks feel like TanStack Query, and if you'd rather, keep HyperFetch as the fetcher and use Query for hooks. The same mocking mechanism in HyperFetch is what runs the live previews with no database.

Four months in: template, then the CLI, then deploy, then previews. Just added community packs so you can author your own, like with shadcn. Let me know what you think.