A ready-to-deploy SonicJS headless CMS application for Cloudflare Workers.
SonicJS is a modern, TypeScript-first headless CMS built for Cloudflare's edge platform. It's 6x faster than traditional Node/Express applications and deploys globally in seconds.
Click the "Deploy to Cloudflare" button above to deploy this starter in seconds. Cloudflare will:
- Clone this repo to your GitHub account
- Provision a D1 database and R2 bucket
- Deploy your CMS to Cloudflare Workers
- Set up CI/CD for future deployments
# Clone this repository
git clone https://github.com/lane711/sonicjs-deploy-now.git
cd sonicjs-deploy-now
# Install dependencies
npm install
# Start the development server
npm run dev
# Visit http://localhost:8787sonicjs-deploy-now/
├── src/
│ ├── index.ts # Application entry point
│ └── collections/ # Your content collections
│ └── blog-posts.collection.ts
├── wrangler.toml # Cloudflare configuration
├── package.json
└── tsconfig.json
Add new collections in src/collections/ and register them in src/index.ts:
import myCollection from './collections/my-collection'
registerCollections([
blogPostsCollection,
myCollection, // Add your collection here
])# Deploy to Cloudflare Workers
npm run deploy
# Apply database migrations to production
npm run db:migrate:prodMIT License - see the main SonicJS repository for details.