The Next.js SaaS boilerplate built for Cloudflare
NanoShip is a Next.js SaaS starter kit for Cloudflare Workers. Auth, credits, payments, and an AI chat module come wired through OpenNext. Clone it, run one command, and ship.
What is in the boilerplate
Auth out of the box
NextAuth v5 with Google sign in, session handling, and a users table ready to extend.
Credits and payments
A credit ledger and a Stripe skeleton for orders and subscriptions.
AI chat module
A streaming chat agent that generates images and video through Replicate and OpenRouter.
Built for Cloudflare
D1, KV, R2, and Durable Objects wired through OpenNext and deployed to Workers, with no vendor lock in.
i18n and theming
next-intl routing, light and dark themes, and content split from interactive strings.
Minimal UI kit
A small set of server first blocks that keep pages fast with very little CSS.
Ship your SaaS in three steps
- 1
Clone and install
Copy the template and run pnpm install.
- 2
Run ship init
Set your brand, domain, and keys, then let the ship skill wire them in.
- 3
Deploy to Cloudflare
Build with OpenNext and ship to Workers.
Frequently asked questions
What is NanoShip?
A Next.js SaaS boilerplate for Cloudflare. You get Google auth, credits, payments, an AI chat module, i18n, theming, and five starter pages, ready to clone and ship.
Which stack does it use?
Next.js 15 App Router, Cloudflare Workers through OpenNext, D1 with Drizzle ORM, and Tailwind CSS.
Why Cloudflare instead of Vercel?
It runs on Cloudflare Workers through OpenNext, so you get D1, KV, and R2 at the edge with no vendor lock in. It also builds locally with no cloud credentials.
Is it open source and self hostable?
Yes. It is a code template you own and deploy to your own Cloudflare account.
Can I remove the AI chat module?
Yes. It lives in its own service and routes, so you can delete it without touching the rest.
How do I rebrand it?
Fill your values in the seed folder and run the ship skill, which writes them into the project.
