What's in the starter

The parts the starter ships with, the stack they're built on, and which ones need an outside account before they switch on.

Updated · 3 min read

The starter is a full-stack codebase for a subscription business. You clone it, rename it, set your plans and prices, and deploy it. Accounts, teams, billing, a marketing site you edit in the browser, A/B tests and an affiliate program are already built.

What you get

  • Accounts and sign-in by password, emailed link, passkey, Google or GitHub, with two-factor, several accounts per browser, email verification and password reset. See Sign-in and accounts.
  • Organisations with members, roles (owner, admin, member) and invitations. See Organisations, members and roles.
  • Stripe billing per organisation, with example Free, Pro and Team plans and the entitlements each one grants. See Plans and billing.
  • An affiliate program with groups, referral and short links, commissions from paid invoices, monthly statements and recorded payouts. See The affiliate program.
  • A marketing site whose pages you edit in place and publish without a deploy, served as finished HTML. See Edit pages in place.
  • An answers library, comparison pages and free tools for the questions buyers ask before they pay. See Answers, comparisons and free tools.
  • Sitemap, robots, llms files and share cards for search engines and AI assistants. See Search engines and assistants.
  • A/B and multi-armed bandit tests on site pages. See A/B and bandit tests.
  • First-party analytics stored in your own database, plus email signups, enquiries and gated downloads. See Analytics and the audience.
  • An admin panel for users, organisations, subscriptions, pages, experiments, affiliates and an audit log. See The admin panel.
  • Tools for AI agents over MCP and WebMCP, and an OpenAPI reference for the API. See Agents and the API.

The stack

PartBuilt with
Web appReact with Vite, TanStack Router and TanStack Query, Tailwind
APIHono
DatabasePostgres through Drizzle
AuthenticationBetter Auth
PaymentsStripe Checkout, the Customer Portal and webhooks
EmailLoops transactional templates
AnalyticsYour own Postgres, with PostHog as an option
RepositoryA pnpm and Turborepo monorepo

The web app, the API and the shared types live in one repository. Plans, entitlements and the affiliate terms are each defined once and read by both the API and the web app, so the pricing page and the server never disagree.

What needs an outside account

The app runs with none of these. Each one turns on when you add its keys.

ServiceWhat it switches onWithout it
StripePaid plans, Checkout, the Customer Portal, invoicesEvery organisation is on Free and the billing page says billing is off
LoopsPassword reset, verification, sign-in links, invitations, audience emailsThose emails aren't sent; the sign-in page leaves out emailed links
PostHogFunnels and retention in PostHogAnalytics still work from your own database
Google or GitHubSocial sign-in buttonsPassword, emailed link and passkey sign-in still work

Passkeys and two-factor need no outside account.

How it runs in production

Production is three services: Postgres, the API and a Caddy web server. Only Caddy is public. It serves the app and forwards API calls to the server, so the app and the API share one HTTPS address and sign-in cookies stay first-party. Migrations run before each API release. The Railway template sets all of this up in one click; Docker Compose with Caddy works anywhere else. See Deploy to Railway.

Where to go next

  1. Run it locally to get your own copy working on your machine.
  2. Deploy to Railway to put it on a public address.
  3. Plans and billing to set your prices and take a test payment.

Something unclear or missing? Ask us and we'll answer, then fix the page.