create-indiepub
v0.9.0
Published
Scaffold a new [IndiePub](https://indiepub.dev) site in seconds. Clones an official theme from Codeberg, wires up your config, and gets you ready to deploy on Cloudflare.
Downloads
141
Maintainers
Readme
create-indiepub
Scaffold a new IndiePub site in seconds. Clones an official theme from Codeberg, wires up your config, and gets you ready to deploy on Cloudflare.
Usage
npm create indiepubOr with pnpm / yarn:
pnpm create indiepub
yarn create indiepubThe interactive CLI will walk you through:
- Project directory — where to create your site
- Template — choose a theme:
- Default — dev-focused IndieWeb site with all post types
- Byline — writer-focused blog with TipTap editor and /write dashboard
- Timeline — feed-based social profile with unified timeline
- Minimal — bare config, bring your own pages
- Site details — title, author name, URL
- License token — your IndiePub license key (from indiepub.dev/account)
- Email subscriptions — optionally enable newsletter support
- D1 database — optionally create your Cloudflare D1 database on the spot (requires
wrangler login) - R2 bucket — optionally create your Cloudflare R2 bucket for media uploads (requires
wrangler login)
What you get
A ready-to-deploy Astro project configured for Cloudflare Pages with:
- Pre-configured
.npmrcpointing at the IndiePub package registry wrangler.tomlwith D1 and R2 bindings (auto-filled if you create resources during setup).dev.vars.examplewith the secrets you'll need- Optional GitHub Actions deploy workflow
After scaffolding
cd my-site
cp .dev.vars.example .dev.vars # add your secrets
# If you didn't create D1 during setup:
npx wrangler d1 create my-site-db
# Copy the database_id and database_name into wrangler.toml
# If you didn't create R2 during setup:
npx wrangler r2 bucket create my-site-media
# Update bucket_name in wrangler.toml
pnpm install
pnpm db:migrate
pnpm devThen visit /admin/onboarding to finish setup. Connect Bluesky and Mastodon accounts from /admin/accounts.
Requirements
- Node.js >= 20
- A Cloudflare account (free tier works)
- An IndiePub license token
Links
- IndiePub — project homepage
- Documentation — full guides and API reference
- Themes — theme source code
- Source — this package
