Capstart is a web-first toolkit for building polished mobile apps with CapacitorJS.
This monorepo contains three independent products. Pick the one that fits your situation:
| Product | What it does | When to use it |
|---|---|---|
cli/ |
Creates Capstart apps or adds Capacitor to an existing web project | You want the boilerplate or you already have a web app |
capstart-boilerplate/ |
Starter app to build from scratch | You're starting a new mobile app and want an opinionated setup |
capstart-website/ |
Documentation website | You're contributing to the docs or running them locally |
Adds Capacitor to an existing web project. Supports Next.js, Nuxt, React + Vite, Svelte + Vite, SvelteKit, TanStack Start, and Vue.
npx capstart init ..The CLI detects your framework, installs Capacitor, adds native iOS/Android projects, builds your web app, and runs cap sync. In interactive mode it also offers a minimal or recommended plugin setup.
Creates a new app from the Capstart boilerplate.
npx capstart create my-app --app-id com.example.myapp --app-name "My App"A ready-to-ship starter with:
- React 19 + Vite + TypeScript
- Capacitor 8 (iOS + Android folders included)
- Supabase auth wiring (login, session, protected routes)
- Tailwind CSS v4 + shadcn/ui
- Mobile-first layout with safe-area handling
npx capstart create my-app --app-id com.example.myapp --app-name "My App"
cd my-app
bun install
bun run dev→ Boilerplate README for native sync/build steps.
The official docs site for Capstart patterns and components. Built with React 19, TanStack Router, Fumadocs, Tailwind CSS 4, and deployed on Cloudflare Workers.
cd capstart-website
bun install
bun run dev
# → http://localhost:3000→ capstart-website/content/docs/ for MDX content.
Capstart follows one principle: keep product UI and routing in the web layer, add native surfaces only when they materially improve mobile UX.
Covered patterns:
- Navigation bars and tab bars
- Page transitions
- Social login and authentication bridges
- In-app purchases and subscriptions
- Advanced iOS surfaces (Live Activities, widgets)
cd cli
bun run typecheck
bun test
bun run buildcd capstart-website
bun run dev
bun run build
bun run deploy # Cloudflare Workers
bun run lint
bun run types:checkcd capstart-boilerplate
npm run dev
npm run build
npm run lint- Guide/content changes → edit files in
capstart-website/content/docs/*.mdx. - New docs pages → update
capstart-website/content/docs/meta.json. - Starter improvements → update
capstart-boilerplate/and keep its README in sync. - Run the relevant checks before opening a PR, and explain intent + impact in the PR description.
- CapacitorJS: https://capacitorjs.com
- Fumadocs: https://fumadocs.vercel.app
