New
Apps 6,346Makers 6,325This week 13
Promote your app−30%
6views in
the last 30 days

Micropreneur Starter

Fork-and-go foundation for Cloudflare-native micro SaaS products

Built with Claude Code

by micropreneur · Unclaimed · added Oct 29, 2026
no ratings0 comments

Micropreneur Starter

The fork-and-go, AI-native SaaS base for micropreneurs.

micropreneur/starter is the public, MIT-licensed foundation we use to begin paid, single-user SaaS products without re-customizing someone else's boilerplate. It combines TanStack Start on Cloudflare Workers, D1 and Drizzle, optional owner-scoped R2 uploads, hexagonal auth and email, a complete one-plan Stripe billing engine that stays off by default, a Base UI shadcn registry, and agent-readable project guidance.

Quickstart

git clone https://github.com/micropreneur/starter.git
cd starter
corepack enable
pnpm install
cp apps/web/.dev.vars.example apps/web/.dev.vars
pnpm dev

The web app runs at http://localhost:3000. Its predev hook generates and applies local D1 migrations before Vite starts. No Google, Resend, or Stripe credential is required for the default local loop: credential auth uses local D1, email action links print to the terminal, and paid features show an explicit disabled state.

Create an account at /sign-up, answer the three personal workspace questions, open the verification URL printed as [email:local] in the Vite terminal, then sign in and visit /app/registry. Google users complete the same questions at /onboarding after authentication.

Monorepo

Path Purpose
apps/web TanStack Start application on Cloudflare Workers
apps/docs Agent-readable documentation site
packages/ui Base UI shadcn primitives used inside this workspace
packages/elements Free elements source and shadcn registry
packages/auth Provider-neutral auth port with a Better Auth adapter and a typed Descope stub
packages/email Email port with Resend and local capture adapters
packages/billing Complete one-plan Stripe engine: Checkout, portal, signed webhooks, local state, and entitlements
packages/files Owner-scoped upload policy and storage lifecycle
packages/operations Removable personal-workspace Operations Registry example
packages/workspaces Single-member personal workspace and onboarding seam
packages/db D1 client, Drizzle schema, and migrations
packages/mcp Docs, skill, component, and theme discovery MCP server
packages/config Shared TypeScript, Biome, and Tailwind configuration

Commands

pnpm dev
pnpm turbo typecheck lint build test
pnpm turbo typecheck lint build test --force
pnpm db:generate
pnpm db:migrate
pnpm registry:build
pnpm docs:generate
pnpm --filter @micropreneur/mcp dev

See the package READMEs for auth, database, registry, and MCP details. Before publishing a fork, run the deterministic and provider-backed checks in RELEASE.md.

Stripe stays off until you choose to activate it

Free Starter includes the working billing engine, but intentionally leaves every STRIPE_* value empty. The app therefore selects its disabled billing service and labels Stripe as not activated; it does not make a provider call or pretend the account is paid.

Fork owners can take either path:

  • Activate the included engine with one Stripe price, three environment values, and the signed webhook route.
  • Choose Starter Pro when Checkout, the customer portal, webhook handling, and workspace-scoped billing should arrive already wired into the product template.

Starter Pro saves the setup work. It does not fill a missing implementation or add a license gate to this repository. With Stripe off, local development still runs without a Stripe account and paid actions stay unavailable.

Write blog posts and documentation

  • Add a blog post in apps/web/src/content/blog. Its lowercase kebab-case filename becomes the /blog/{slug} URL, and the newest posts appear on the homepage without a second content list to update.
  • Add a documentation guide in apps/docs/src/content. Follow the MDX authoring guide for metadata, navigation, reusable components, and generated agent artifacts.

Both surfaces compile trusted repository-owned MDX at build time. Do not send user-authored or otherwise untrusted MDX through either compiler.

Fork this to start a project

  1. Use GitHub's Use this template or fork the repository.
  2. Customize the public product identity, repository, documentation, support contact, and social-image copy in apps/web/site.config.mjs. Then run pnpm --filter web og:build and commit the regenerated assets.
  3. Rename the Worker in apps/web/wrangler.jsonc and update package metadata.
  4. Set the build-time VITE_PUBLIC_SITE_URL to the fork's final HTTPS origin. Indexable marketing, blog, sitemap, and robots requests return a configuration error while the upstream origin or identity remains; authentication, API, and application routes stay available.
  5. Replace every placeholder and claim in /legal, /privacy, and /terms. Keep VITE_PUBLIC_LEGAL_PAGES_INDEXABLE=false until the fork's legal pages are ready; then set it to true to allow indexing and add them to sitemap.xml.
  6. Create a D1 database, replace the placeholder database ID, and apply migrations.
  7. Copy apps/web/.dev.vars.example to apps/web/.dev.vars; set a real Better Auth secret for any deployed environment (wrangler secret put BETTER_AUTH_SECRET).
  8. Optionally register Google's callback at http://localhost:3000/api/auth/callback/google, or leave both OAuth values empty and keep credential auth.
  9. Customize the activation questions in packages/workspaces; keep organization creation, invitations, and team roles out of Free Starter.
  10. Optionally configure the private R2 bucket, exact-origin CORS, and scoped signing credentials described in the R2 file-upload guide. The default local loop keeps uploads disabled without them.
  11. Optionally configure Resend. Local capture remains the fastest verification/recovery loop.
  12. If you activate billing yourself, create one recurring Stripe test price, configure all three Stripe values, and forward signed test events to /api/billing/webhook.
  13. Rename or remove packages/operations, then add your domain code in its own package instead of coupling it to adapters.
  14. Keep application imports pointed at ports and registry-facing components (@micropreneur/elements).

The exact Free/Pro contract is in ROADMAP.md. starter-pro, elements-pro, multi-tenant/team systems, advanced billing, premium registry gating, and project-generation CLIs are intentionally outside this repository.

License

MIT © Dan Schoonmaker / SchoonLabs / micropreneur.dev.

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#saas · #starter · #cloudflare