GenCMS is an open-source AI-powered CMS that generates complete websites — block by block — using Google Gemini. Just type in a topic, and GenCMS does the rest: it infers content structure, generates UI components, and builds a dynamic, editable site in seconds.
- Input a topic (e.g., "AI for Education")
- LLM infers block types (hero, paragraph, code, testimonial, etc.)
- Each block is generated separately using Google Gemini
- Blocks are stored in a MongoDB collection
- Frontend renders the page dynamically using React & Tailwind
- Supports child page generation (e.g., FAQ, About, Resources)
- ✅ Modular block-wise LLM generation (efficient & token-optimized)
- ✅ Plug-and-play block architecture – add custom blocks easily
- ✅ Session-based generation tracking – build multiple sites
- ✅ Dynamic child page creation – powered by generative AI
- ✅ React + Tailwind UI + MongoDB backend
- ✅ Infinite routing support with hierarchical navigation
- ✅ Preview and editing-ready frontend UI
- Frontend: React + Next.js + Tailwind CSS
- Backend: Node.js API Routes + MongoDB (via Mongoose)
- AI Engine: Google Generative AI (Gemini)
- Auth/Session: LocalStorage session tracking
- Deployment: Works great on Vercel + MongoDB Atlas
git clone https://github.com/Asdts/GenCMS.git
cd GenCMS
npm install
Create a .env.local
file in the root directory:
GOOGLE_API=your_google_genai_api_key
GOOGLE_MODEL=gemini-2.0-flash
MONGODB_URI=your_mongodb_connection_string
npm run dev
Now visit http://localhost:3000
in your browser.
hero
header
paragraph
content
code
(with syntax highlighting)table
form
testimonial
feature
dropBlock
footer
mediaBlock
You can easily add more by updating:
agents
models
components/BlockRenderer.tsx
- 🔧 Founders generating startup landing pages
- 📚 Educators teaching AI or content architecture
- 📈 Agencies scaling dynamic page creation
- 💡 Developers building custom CMS blocks with AI
All contributions are welcome! 🎉
- Submit issues for bugs or feature requests
- Fork and make a PR for improvements
- Add your own block types or AI logic
MIT License — free to use, modify, and distribute.
If you use GenCMS or build something cool with it, tag me on LinkedIn or drop a star ⭐ on the repo!