An open-source publishing framework built for AI agents and developers to ship websites, docs, or blogs. Write markdown, sync from the terminal. Your content is instantly available to browsers, LLMs, and AI agents. Built on Convex.
Write markdown locally, run npm run sync (dev) or npm run sync:prod (production), and content appears instantly across all connected browsers. Built with React, Convex, and Vite. Optimized for AEO, GEO, and LLM discovery.
How publishing works: Write posts in markdown, run npm run sync for development or npm run sync:prod for production, and they appear on your live site immediately. No rebuild or redeploy needed. Convex handles real-time data sync, so all connected browsers update automatically.
Sync commands:
Sync command scripts are located in scripts/ (sync-posts.ts, sync-discovery-files.ts).
Development:
npm run sync- Sync markdown contentnpm run sync:discovery- Update discovery files (AGENTS.md, llms.txt)npm run sync:all- Sync content + discovery files together
Production:
npm run sync:prod- Sync markdown contentnpm run sync:discovery:prod- Update discovery filesnpm run sync:all:prod- Sync content + discovery files together
Export dashboard content:
npm run export:db- Export dashboard posts/pages to content folders (development)npm run export:db:prod- Export dashboard posts/pages (production)
How versioning works: Markdown files live in content/blog/ and content/pages/. These are regular files in your git repo. Commit changes, review diffs, roll back like any codebase. The sync command pushes content to Convex.
# Edit, commit, sync
git add content/blog/my-post.md
git commit -m "Update post"
npm run sync # dev
npm run sync:prod # productionFull documentation is available at markdown.fast/docs
- Setup Guide - Complete fork and deployment guide
- Fork Configuration Guide - Automated or manual fork setup
- Dashboard Guide - Content management and site configuration
- MCP Server - AI tool integration for Cursor and Claude Desktop
- AgentMail Setup - Newsletter and contact form integration
- WorkOS Setup - Legacy authentication mode (use
auth.mode: "workos"in siteConfig)
The project includes documentation optimized for AI coding assistants:
- CLAUDE.md - Project instructions for Claude Code CLI with workflows, commands, and conventions
- AGENTS.md - General AI agent instructions for understanding the codebase structure
- llms.txt - AI agent discovery file at
/llms.txt - .cursor/skills/ - Focused skill documentation:
frontmatter.md- Complete frontmatter syntax and all field optionsconvex.md- Convex patterns specific to this appsync.md- How sync commands work and content flowrobel-auth/SKILL.md-@robelest/convex-authintegration patternsconvex-self-hosting/SKILL.md- Convex static self hosting setup
These files are automatically updated during npm run sync:discovery with current site statistics.
See the full feature list on the About page.
Key features include real-time sync, four theme options, full-text search, analytics dashboard, MCP server for AI tools, newsletter integration, and SEO optimization with RSS feeds, sitemaps, and structured data.
After forking, run the automated configuration:
cp fork-config.json.example fork-config.json
# Edit fork-config.json with your site info
npm run configureThe fork-config.json.example includes all configurable options:
- Site settings: name, title, description, URL, domain
- Auth mode:
convex-auth(default),workos(legacy), ornone(local dev) - Hosting mode:
convex-self-hosted(default) ornetlify(legacy) - Media provider:
convex(default),convexfs, orr2 - Creator info: name, social links, bio
- Feature toggles: newsletter, dashboard, stats page, AI chat, etc.
See the Fork Configuration Guide for detailed instructions and FORK_CONFIG.md for the complete reference.
Use either path to get your own clone + Convex backend quickly:
- GitHub template flow:
- Click Use this template
- Clone your new repo
- Run
npm install,npx convex dev --once,npm run sync,npm run deploy
- CLI flow:
- Run
npx create-markdown-sync my-site - Follow prompts and open your site when setup finishes
- Run
- Website setup guide:
- Node.js 18 or higher
- A Convex account
- Install dependencies:
npm install- Initialize Convex:
npx convex devThis will create your Convex project and generate the .env.local file.
- Start the development server:
npm run devVerify your environment and deployment:
npm run validate:env # Check local env readiness
npm run validate:env:prod # Check production env
npm run verify:deploy # Verify deployed endpoints
npm run verify:deploy:prod # Verify production endpointsnpx @convex-dev/self-hosting setup
npx convex dev --once
npm run deploynpm run deploy runs the full one-shot flow through @convex-dev/self-hosting and builds for the target Convex deployment automatically.
- Set your Convex custom domain to
markdown.fastin the Convex dashboard. - Point DNS from Cloudflare to Convex using the records Convex provides.
- Set
VITE_CONVEX_SITE_URL(orVITE_SITE_URL) for frontend HTTP route overrides. - Keep
VITE_CONVEX_URLfor the Convex client URL.
- Deploy Convex functions to production:
npx convex deploy- Connect your repository to Netlify
- Configure build settings:
- Build command:
npm ci --include=dev && npx convex deploy --cmd 'npm run build' - Publish directory:
dist
- Build command:
- Add environment variables in Netlify dashboard:
CONVEX_DEPLOY_KEY- Generate from Convex Dashboard > Project Settings > Deploy KeyVITE_CONVEX_URL- Your production Convex URL
For detailed setup, see the Convex Netlify Deployment Guide and netlify-deploy-fix.md for troubleshooting.
Default mode:
auth.mode: "convex-auth"- GitHub OAuth via@robelest/convex-authhosting.mode: "convex-self-hosted"- Static assets via@convex-dev/self-hostingmedia.provider: "convex"- Direct Convex storage
Legacy mode:
auth.mode: "workos"for WorkOS AuthKit compatibilityhosting.mode: "netlify"for Netlify deploymentmedia.provider: "convexfs"ormedia.provider: "r2"for optional media backends
Local fallback mode:
auth.mode: "none"for local development only
Dashboard access is server enforced when dashboard.requireAuth: true.
- Go to GitHub Developer Settings
- Create a new OAuth App
- Set Homepage URL to your frontend URL (e.g.,
http://localhost:5173) - Set Authorization callback URL to:
https://<your-deployment>.convex.site/api/auth/callback/github - Copy Client ID and Client Secret
npx convex env set AUTH_GITHUB_ID "your-github-client-id"
npx convex env set AUTH_GITHUB_SECRET "your-github-client-secret"
npx convex env set DASHBOARD_ADMIN_BOOTSTRAP_KEY "choose-a-long-random-secret"npx convex run authAdmin:bootstrapDashboardAdmin \
'{"bootstrapKey":"choose-a-long-random-secret","email":"your-email@example.com"}'npx convex run authAdmin:grantDashboardAdmin '{"email":"colleague@example.com"}'npx convex env set DASHBOARD_PRIMARY_ADMIN_EMAIL "your-email@example.com"See FORK_CONFIG.md for complete admin setup instructions.
React 18, TypeScript, Vite, Convex (self hosted), @robelest/convex-auth, @convex-dev/self-hosting. Legacy mode: Netlify + WorkOS.
- Convex self hosting as default deployment via
@convex-dev/self-hosting - @robelest/convex-auth as default authentication with GitHub OAuth
- Server-side dashboard admin authorization with
dashboardAdminstable - Multi-mode architecture supporting convex-auth, workos, and none auth modes
- Lightweight rich text editor replacing Quill (zero vulnerabilities)
- Validation scripts for environment and deployment verification
- One-click deploy improvements with updated fork configuration
See the Changelog for the full version history.
Fork this project: github.com/waynesutton/markdown-site
This project is licensed under the MIT License.