B2B SaaS Kit is an open-source boilerplate for building multi-tenant B2B SaaS applications, giving developers a fully functional starting point with team accounts, authentication, database, payments, and analytics pre-integrated.
What is B2B SaaS Kit?
B2B SaaS Kit is a starter toolkit that produces a working SaaS app where customers are teams of users: after signup, a user can create an organization, invite teammates, and collaborate. It runs on Astro with React islands and Tailwind CSS, and is maintained by Fogbender as a free, MIT-licensed GitHub project. The kit requires TypeScript, Doppler for secrets, Supabase for Postgres, and PropelAuth for authentication, with optional Stripe, Vercel, Fogbender, and PostHog integrations.
Key Features
- Team-oriented B2B architecture — Multi-tenant organization model built in: create an organization, invite members, and work together, unlike single-user SaaS starters.
- Astro with SSR and SSG — Per-route
prerenderswitching lets you generate pages at build time or request time, useful for SEO and social unfurling. - End-to-end type safety with tRPC — API calls are fully typed from server to client, integrated with TanStack Query and Zod for validation.
- Drizzle ORM for database migrations — Schema changes are turned into SQL migration files; Supabase Row Level Security policies are added manually for new tables.
- Required third-party integrations — Doppler manages secrets, Supabase stores data, and PropelAuth handles team authentication out of the box.
- Optional production integrations — Stripe for payments, PostHog for product analytics, Fogbender for customer support, and Vercel for deployment.
- Free-tier-friendly stack — Every third-party service offers a free-forever starter plan, so the page claims you can validate an idea for the cost of a domain name.
Who is it for?
- Indie hackers who want to validate a B2B SaaS idea without spending money on infrastructure or boilerplate code.
- Startup engineering teams that need a production-quality starting point with auth, billing, analytics, and customer support already wired.
- Developers learning modern full-stack patterns who want a reference implementation of Astro, React, tRPC, Drizzle, and Supabase working together.
What can you do with B2B SaaS Kit?
- Build a collaborative team app — Start from the included Prompts with Friends example, a tool for collaborating on GPT prompts, then modify it into your own product.
- Add new features quickly — Extend the tRPC router with new endpoints, create Astro pages with React components, and run database migrations with a single command.
- Deploy to production — Follow the included setup guide section on Vercel deployment to ship the app.
How does B2B SaaS Kit work?
The README walks through a high-level plan: explore the live example at PromptsWithFriends.com, clone the repo, run yarn dev to launch the app at http://localhost:3000, follow detailed configuration instructions at the local /setup page, then deploy to production via Vercel. The codebase organizes server logic in src/lib/trpc, database schema in src/db/schema.ts, and pages as .astro files.
FAQ
Is B2B SaaS Kit free?
Yes. The kit is open source under the MIT License, and all required third-party services offer free-forever starter plans, so the authors say you can build and validate an app for the cost of a domain name.
What stack does B2B SaaS Kit use?
The template uses TypeScript, Astro for the framework, React for interactive UI components, Tailwind CSS for styling, tRPC for type-safe APIs, Drizzle ORM for database migrations, and Supabase Postgres for storage. Authentication is handled by PropelAuth.
What third-party services are required?
Doppler for secrets management, Supabase for the database, and PropelAuth for authentication are required. Stripe, Vercel, Fogbender, and PostHog are optional.
Does the kit include an example app?
Yes. It ships with Prompts with Friends, a collaborative GPT prompt tool, so you can get it running locally and then modify it into your own product.





