{"repo":"workos/next-b2b-starter-kit","free":true,"listed":false,"github":"https://github.com/workos/next-b2b-starter-kit","clone":"git clone https://github.com/workos/next-b2b-starter-kit.git","description":"An enterprise-ready starter kit for B2B SaaS applications.","language":"TypeScript","stars":96,"topics":["b2b","convex","nextjs","starter-kit","stripe","workos"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Next.js B2B Starter Kit A fully functional B2B SaaS template built with Next.js, Stripe, Convex, and WorkOS. Demo: https://next-b2b-starter-kit.vercel.app/ Read about the Next.js B2B Starter Kit on the WorkOS blog. Features - Marketing splash page ( / ) - Pricing page ( /pricing ) which allows signed in users to subscribe via Stripe Checkout - Dashboard page ( /dashboard ) which is only accessible to admin users. Includes CRUD for users, audit logs and configuring SSO and billing - Product page ( /product ) which is only accessible to signed in users - Role-based access control - Audit logs - Billing - Webhook syncing to Convex Entitlement sync is handled by WorkOS (via the Stripe integration) — the app's only responsibility is refreshing the session after checkout so new entitlements appear in the access token immediately. No app-side Stripe webhook is required for entitlements. Getting started Prerequisites You'll need a Convex account, a Stripe account and a WorkOS account. Clone the repo Navigate to the project directory Install dependencies Run the setup script Start the development server Tech stack - Framework: Next.js - Database: Convex - Authentication: AuthKit by WorkOS - Payments: Stripe App flow After viewing your marketing splash page ( / ) and pricing page ( /pricing ), users sign up before choosing a plan. This is so we can create an organization and link it to a Stripe customer. Once signed up, users with the \"admin\" role can access the dashboard ( /dashboard ","default_branch":null,"files":null,"tree":[],"storefront":"/r/workos","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/workos/next-b2b-starter-kit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}