# mod-cms

A headless CMS built on Cloudflare Workers + D1. Deploy your own instance in one click.

## Deploy

[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/platform-modules/mod)

The deploy process will:
1. Fork this repository to your GitHub account
2. Create a D1 database, KV namespace, and R2 bucket
3. Build and deploy to Cloudflare Workers

## First-Run Setup

1. Visit your deployed site
2. You'll be redirected to `/install`
3. Database schema is automatically applied
4. Create your admin account
5. Start creating content

## Features

- Pages, posts, custom content types
- Hierarchical taxonomy
- Media library (R2)
- Navigation menus
- Custom fields
- Full-text search (FTS5)
- Comments + moderation
- Contact forms
- Audit logging

## Requirements

- Cloudflare account (free tier works)
- GitHub account

## Post-Deploy Configuration

After deploying, you may want to add:

- **Rate limiting** — Add `[[ratelimits]]` sections to `wrangler.toml` for production security
- **Custom domain** — Configure via Cloudflare dashboard
- **Media CDN** — Update `MEDIA_PUBLIC_BASE_URL` in `[vars]`

## License

MIT