A modern blog CMS vibe-coded with Claude Code using Next.js, Supabase, and TailwindCSS, featuring authentication, role-based access, WYSIWYG editing, and MCP-powered development workflows.
- 🔐 Authentication (Supabase Auth)
- 👥 Role-Based Access Control (Admin / Author)
- 📝 WYSIWYG Editor (TipTap / Lexical ready)
- 📰 Draft & Publish workflow
- 🏷️ Tags & Categories
- 🌐 SEO-friendly blog pages
- ⚡ Fast deployment with Vercel
- 🤖 AI-assisted development via Claude Code + MCP
- Frontend: Next.js (App Router)
- Backend: Supabase (Postgres + Auth)
- Styling: TailwindCSS + shadcn/ui
- Editor: TipTap (recommended)
- Deployment: Vercel
- AI Dev Layer: Claude Code + MCP Servers
This project is optimized for AI-assisted development using MCP servers:
github-mcp– repo management, PRs, commitssupabase-mcp– database schema, queries, RLSvercel-mcp– deployments and env managementfilesystem-mcp– file editing and refactoringbrowser-mcp– UI testing and debuggingpostgres-mcp(optional) – query optimization
app/
(public)/ → public blog pages
(dashboard)/ → admin & author dashboard
api/ → backend routes
components/
ui/ → reusable UI
editor/ → WYSIWYG editor
blog/ → blog components
features/
posts/
users/
auth/
lib/
supabase/
permissions/
utils/
database/
schema.sql
migrations/
policies/
agents/
frontend.agent.md
backend.agent.md
database.agent.md
git clone https://github.com/your-username/nextjs-blog-cms.git
cd nextjs-blog-cmsnpm installCreate a .env.local:
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=- Run SQL from
database/schema.sql - Apply policies from
database/policies/ - (Optional) Seed data from
database/seed.sql
npm run dev| Role | Access |
|---|---|
| Admin | Full control (users, posts, roles) |
| Author | Create & manage own posts |
Enforced using Supabase Row Level Security (RLS).
- Use the dashboard editor
- Save as draft
- Publish when ready
- Supports rich text, images, and formatting
Deploy easily with Vercel:
- Import repo to Vercel
- Add environment variables
- Add domain (e.g.
blog.yourdomain.com)
This project is designed to work seamlessly with Claude Code:
- Modular structure for safe refactoring
- Feature-based architecture
- Dedicated
agents/instructions - MCP servers for full-stack automation
- Comments system
- Analytics dashboard
- Scheduled posts
- Multi-author collaboration
- AI-assisted writing
- Headless CMS API
This project demonstrates:
- Full-stack architecture
- Secure authentication & RBAC
- Database design with RLS
- Rich text editor integration
- AI-assisted development workflows
PRs are welcome. For major changes, open an issue first.
MIT
Frank Mendez
If you find this useful, give it a star ⭐
---
If you want to level this up even more, next move is:
👉 Add a **“Live Demo + Screenshots + Architecture Diagram”** section — that’s what turns this from “nice repo” into “hire this guy.”