Hands holding a smartphone above a laptop on a wooden table, banner image on the SaaS starter page

Template - App starter - About 30 minutes to first run

SaaS starter

App starter: auth with email plus password and session handling

What ships inside

1

Auth with email plus password and session handling

2

Organizations with member roles (owner, member)

3

Stripe subscription wiring in test mode

4

A settings page, a dashboard shell, and an empty-state design that does not look broken

Install

Step 1

Clone, rename the project, and set the environment variables from the included .env.example - every key is annotated with where to get it.

Step 2

Run the seed script to create your first organization and owner account.

Step 3

Verify the billing flow end to end in Stripe test mode before touching any feature code.

Step 4

Replace the sample feature with yours; the org and billing scaffolding stays untouched.

A worked example

A first run from clone to billing. Sample checklist (example).

StepCommand or actionExpected
EnvCopy .env.example, fill keysApp boots locally
SeedRun the seed scriptOne org, one owner
BillingStripe test card 4242 4242 4242 4242Subscription active in test mode
FeatureReplace the sample featureOrg and billing code untouched

The numbers shown are examples. Swap in your own.

Done looks like

  • Billing works in test mode before feature code
  • The owner can invite a member
  • The empty state looks intentional

Mistakes to avoid

  • Editing billing before testing it
  • Skipping the seed script
  • Going live with test keys

What it connects

Stripe · Vercel · Postgres

Each connector page describes what it does.

Get this template

Download the starter (zip) - a real, dependency-free Node app (v0.2.0): boots with npm start, passes npm test (boot, health check, sign-in, per-account data separation, CSRF, session expiry, login throttle and, for the billing starter, signed-webhook checks). External services run in clearly labeled mock mode until you add keys from the annotated .env.example.

Security upgrade notice. Earlier downloads of this starter had an open data API, shared data between accounts and a default or printed login. Check your ZIP's SHA-256 (first 16 characters): v0.1.0 (first release) 0276793b74ba4e21; v0.1.1 (interim fix, Nov 28 00:19-00:3x HST) db90c702455bb6d2. If yours matches, replace it with this version and follow SECURITY-UPGRADE.md inside the new ZIP; your data is not touched by this site.

Related playbook: Add payments to a side project

All templates

Questions about this template

How long does SaaS starter take to set up?

Plan for about 30 minutes to first run for the first run. The install steps above are in order, and the worked example shows what a finished setup looks like with example data.

How does it work?

The starter is built to be followed step by step. Every step is readable on this page and in the linked playbook, and the Postgres, Stripe, Vercel connector pages cover the services involved.

What should I do first?

Clone, rename the project, and set the environment variables from the included .env.example - every key is annotated with where to get it.

Other templates that use the same services: Personal finance tracker · Landing + waitlist · Directory site

The playbook behind this template

This template follows Add payments to a side project. The same steps, with the free tool that does each one.

Step 1 of 5

Decide one-time or subscription before touching code; mixing both in v1 doubles the webhook surface.

Step 2 of 5

Build the pricing section with pricing-page-builder so the offer is clear before the payment form exists.

Use Pricing Page Builder. Describe your tiers and get a clean pricing page - monthly/yearly toggle math included - exported as one standalone HTML file.

Step 3 of 5

Wire the checkout in test mode and use webhook-tester to confirm your endpoint receives and verifies the payment event.

Use Webhook Tester. Build webhook payloads, sign them with HMAC, and get the exact curl command to fire them

Step 4 of 5

Gate the paid feature on the webhook result, never on the redirect back from checkout - users close tabs.

Step 5 of 5

Run one real $1 charge on your own card in live mode, then refund it. Now you know it works.

Free tools you can use with it

These run in your browser with no account.

Pricing Page Builder

One line per tier - name, monthly price, key features - and get a pricing page with a highlighted plan, a yearly toggle with discount math, and a standalone HTML export.

  • Yearly toggle with real math. Set the yearly discount once; every tier's yearly price is computed, not typed twice.
  • One highlighted plan. Mark the tier you want chosen; the page makes it visually primary.
  • Feature lists per tier. Comma-separated features render as clean checklists.
  • Single-file export. One HTML file, inline styles, host it anywhere.

Real output from the tool

YOU ENTER:
Input
Starter | 0 | 3 projects, Community support
*Pro | 24 | Unlimited projects, Priority support, Custom domains
Enterprise | contact | SSO, Audit logs, Dedicated manager
Product
Acme
Yearly discount %
20
Preview period
m

THE TOOL RETURNS:
Starter
Free
3 projects - Community support
Pro POPULAR
$24/mo
Unlimited projects - Priority support - Custom domains
Enterprise
Contact us
SSO - Audit logs - Dedicated manager

Webhook Tester

Compose the JSON, sign it like the real provider would, and copy the curl that fires it. Webhook integrations stop needing a staging deploy to test.

  • Payload composer. Write or paste the JSON body with live validation and pretty printing.
  • HMAC signing. Generate the X-Signature header the way Stripe, GitHub and Shopify do: HMAC-SHA256 of the raw body with your secret, computed locally.
  • Exact curl export. One tap copies the full curl command - headers, signature and body - ready for a terminal.
  • Header presets. Common provider header shapes (Stripe, GitHub, Shopify, Slack) prefill the signature format and event header names.

Real output from the tool

YOU ENTER:
Preset
github
Input
{"event":"user.created","data":{"id":"u_123","email":"new@customer.com"}}
Input
whsec_test_123
Input
https://localhost:3000/webhooks/provider

THE TOOL RETURNS:
curl -X POST 'https://localhost:3000/webhooks/provider' \
-H 'Content-Type: application/json' \
-H 'X-Hub-Signature-256: sha256=d2a7a1778ccddd6311aa21be3f1cb4bb29f1772b80bfdac1d57832f6e0e68734' \
--data-binary '{"event":"user.created","data":{"id":"u_123","email":"new@customer.com"}}'

Invoice Generator

Type who it is from and to, add line items as description, qty and rate, and set a discount and one tax rate. The totals are added as exact decimals and rounded to cents by stated rules. Lines that cannot be read are listed, and nothing is printed or copied until every line is valid.

    Services this template touches

    Each connector page shows whether it is available yet.

    Stripe

    Uses:

    • Failed payments start a dunning playbook with a recovery email draft.
    • New subscriptions trigger the onboarding sequence.
    • Weekly revenue and churn metrics compile from balance events.

    Until it ships, set this part up by hand in Stripe.

    Vercel

    Uses:

    • Failed deployments message the team channel with the error excerpt.
    • Playbook-built sites deploy to a named project on approval.
    • Deployment events log to the run sheet with preview URLs.

    Until it ships, set this part up by hand in Vercel.

    PostgreSQL

    Uses:

    • Slow-query reports compile weekly with indexes suggested.
    • Schema changes diff into a migration review note.
    • Table-growth anomalies alert before disk pressure.

    Until it ships, set this part up by hand in PostgreSQL.

    More questions

    Pricing Page Builder: Free tier?

    Use 0 as the price; it renders as Free.

    Pricing Page Builder: Enterprise tier?

    Use a price of contact and it renders as Contact us.

    Webhook Tester: Is my secret uploaded?

    No. Signing happens in your browser with the Web Crypto API. The secret never leaves the tab.

    Webhook Tester: Which algorithms?

    HMAC-SHA256, hex and base64 output, with sha256= prefix styles for GitHub and Stripe formats.

    A wooden desk with glasses, a coffee cup, a plant and the edge of a laptop, banner image on the SaaS starter page

    Start from working, not from blank.

    Each template lists what ships inside and the install steps.