48
SaaS • DevTool • Productivity
Refract — The TypeScript SaaS Boilerplate Built for the Second Year
Most boilerplates save you a week of setup. Refract saves you the rewrite.
Built by a former Billing Tech Lead at Loom (through the Atlassian acquisition), Refract is a production-grade TypeScript monorepo that ships with the architecture decisions already made — so your codebase survives pricing changes, team growth, and the pivots you haven't planned for yet.
What you get on day one:
🏗 Clean architecture — Onion/Hexagonal pattern with strict layer separation. Resolvers → Business logic → Adapters. Your agents and your engineers can both navigate it without hallucinating structure.
💳 Adaptive billing engine — Idempotent Stripe integration with dynamic plans, metered usage, and a provider adapter pattern. Swap payment processors without touching product logic.
🔐 RBAC + Multi-tenancy — Scoped role-based access control and multi-tenant architecture wired in from the start, not bolted on later.
⚡ Full TypeScript stack — React · Astro · Apollo GraphQL · Express · PostgreSQL · Redis · BullMQ · AWS SQS · Railway · Docker · pnpm monorepo
🧪 80%+ test coverage — Functional core, clean separation of concerns. Refactor fast, pivot confidently.
🤖 Cursor-native — Cursor rules included. The codebase is structured so AI agents navigate it correctly.
userefract.io runs on Refract itself. Every visitor experiences the architecture live.
Pricing: Solo $299 · Founder $699 · Studio $1,499
All early licenses include lifetime updates and support access — no renewals, ever. After the first 50, updates and support move to an annual add-on.
Lock in the best deal before the price structure changes.
Built with