A modern, intelligent blog content management system built with Next.js and Tailwind CSS. Features AI-assisted content creation, intuitive hierarchical organization, professional editorial workflows, and beautiful responsive design.
- Gemini 1.5 Integration: Select from Flash, Flash 8B, Pro, or 2.0 models
- Real-Time Guidance: Get suggestions on content creation, SEO, editorial standards, analytics
- Typewriter Effect: Beautiful character-by-character animations for engaging presentation
- Conversation History: Full session persistence for context-aware responses
- Markdown Rendering: Professional formatting with lists, emphasis, and embedded content
- Right-Click Organization: Context menus for creating groups, subgroups, and posts
- One-Click Renaming: Instant inline editing for any content item
- Hierarchical Structure: Section β Group β Subgroup β Post organization
- Professional Templates: Pre-configured content categories (Featured, Design, Culture, Insights, Resources)
- Publication States: Draft, Scheduled, Published, Archived with date scheduling
- Autosave Everything: Changes persist instantly without manual saving
- Session Storage: Secure browser-based data handling
- Real-Time Sync: All edits reflected immediately across dashboard
- No Data Loss: Automatic recovery from browser cache
- Desktop: Full-featured sidebar + dual-column editor
- Tablet: Optimized grid layouts and touch targets
- Mobile: Full-screen modals and finger-friendly controls
- Tested Across Devices: Works seamlessly on all modern browsers
- Click-to-Upload: Intuitive image selection and preview
- Optimized Loading: Next.js Image optimization with lazy loading
- Multiple Formats: JPG, PNG, WebP with automatic conversion
- Responsive Images: Proper sizing for all device types
- 8 Professional Demo Images: Ready-to-use for all content sections
- Dark & Light Themes: Full theme switching with system preference detection
- Accessible Components: WCAG AA compliant with keyboard navigation
- Smooth Animations: Typewriter effects, pulsing indicators, hover states
- Breadcrumb Navigation: Always know where you are in the structure
- 5 Content Sections: Featured, Design, Culture, Insights, Resources
- 20+ Demo Posts: Realistic content examples in every section
- Multi-Level Groups: Organize content by themes, months, topics
- Editorial Advisory: Built-in system for maintaining brand standards
- Server Components: React 18 with server-side rendering
- Lazy Loading: Images and components load on-demand
- Code Splitting: Automatic optimization by Next.js
- Zero External Calls: Demo mode with full offline functionality
# Install dependencies
bun install
# Start development
bun dev
# Production build
bun build
bun start- Navigate to any content section in the sidebar
- Right-click to create a new group or post
- Click AI button (top-right) to ask for content guidance
- Write and watch as your content autosaves
- Upload featured images with one click
- Switch between preview and edit modes
- Publish or schedule for later!
- Frontend: Next.js 14+, React 18+, TypeScript
- Styling: Tailwind CSS, shadcn/ui components
- State: React hooks, Context API, Browser SessionStorage
- AI: Google Generative AI (Gemini)
- Images: Next.js Image optimization
- Theme: Dark/Light mode with system preference detection
| Feature | Benefit |
|---|---|
| AI Assistant | Intelligent guidance on every aspect of blogging |
| Right-Click Menu | Create content 3x faster than traditional CMS |
| Autosave | Never lose work againβsaves automatically |
| Mobile Responsive | Works perfectly on phone, tablet, desktop |
| Image Management | Optimized uploads with multiple format support |
| Editorial Standards | Advisory panel maintains brand consistency |
| Publication Scheduling | Schedule posts for future release |
| Demo Mode | Test everything without external dependencies |
| Dark Theme | Eye-friendly interface for extended use |
| Loading States | Beautiful skeleton loaders while fetching data |
βββ app/ # Next.js app router
β βββ @inset/ # Main content editor layout
β β βββ [section]/ # Dynamic section pages
β β βββ [id]/ # Individual post editor
β β βββ home/ # Homepage image management
β β βββ advisory/ # Editorial advisory panel
β βββ @sidebar/ # Navigation sidebar
β βββ api/ # API routes (demo mode)
β βββ layout.tsx # Root layout
βββ components/ # React components
β βββ chat/ # AI assistant interface
β βββ groups/ # Group/subgroup components
β βββ webapp/ # Post preview components
β βββ imageLoader.tsx # Image management UI
βββ utils/ # Utility functions
β βββ api-fetch.ts # Mock API with demo data
β βββ revalidate.ts # Cache invalidation
βββ constants/ # Configuration
β βββ sections.ts # Content sections
β βββ post-init-template.ts # Default post fields
βββ hooks/ # Custom React hooks
β βββ use-typewriter.ts # Typewriter animation
βββ public/demo/ # Demo images (8 professional images)
βββ types/ # TypeScript type definitions
All environment variables are pre-configured with safe demo values. No real credentials are committed.
# Local demo configuration (no external dependencies needed)
MONGODB_URI=""
DBNAME=""
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=""
GEMINI_API_KEY=""- Sections: Edit
constants/sections.tsto add categories - Demo Data: Modify
utils/api-fetch.tsto change sample content - Styling: Tailwind CSS with custom CSS variables in
app/globals.css - Components: Use shadcn/ui for building new features
The CMS comes with 5 professionally-organized sections:
Curated highlights and trending content
- Examples: Digital Revolution, Sustainable Design, Community Impact
Design trends, visual systems, UI/UX expertise
- Examples: UX Trends 2025, Accessibility Design, Typography Mastery
Cultural commentary, exhibitions, interviews
- Examples: Installation Art Showcase, Fashion Week, Artist Interviews
Industry trends, research, thought leadership
- Examples: Market Analysis, Technology Forecast, Future of Work
Tutorials, guides, tools, and best practices
- Examples: Web Performance, Security Practices, Designer's Toolkit
Each section includes realistic multi-level organization and professional demo content.
- Content sections with collapsible groups
- Quick access to Home and Advisory pages
- Theme switcher for dark/light mode
- Environment configuration
- Dual-view: Preview & Edit modes
- Rich text editing with Markdown support
- Image upload and management
- Publication state and scheduling
- Auto-save indicator
- Pulsing "AI" indicator showing availability
- Model selection for different use cases
- Conversation history maintained in session
- Responsive markdown rendering
- Smart category-based responses
- Skeleton loaders for all async operations
- Beautiful transitions while fetching
- Matches actual layout structure
- Prevents layout shift
- Server Components: React Server Components for reduced JS
- Image Optimization: Next/Image with lazy loading
- Code Splitting: Automatic route-based splitting
- Type Safety: Full TypeScript coverage prevents errors
- Responsive Design: Mobile-first CSS approach
- Caching: Smart cache strategies
- Type-Safe: Full TypeScript validation
- Demo Mode: No real API calls or credentials in code
- WCAG AA: Accessible design for all users
- Semantic HTML: Proper DOM semantics
- Environment Variables: Secure configuration handling
1. Ask AI: "How do I write engaging content?"
2. Right-click β Create Post
3. Type while AI offers suggestions
4. Upload featured image
5. Autosave handles persistence
6. Preview to verify layout
7. Publish or schedule
1. Open Dashboard
2. Ask AI: "Evaluate editorial quality"
3. Right-click group β Rename for campaign
4. Update publication states
5. Set scheduling dates
6. Monitor analytics by section
1. Chat with AI for trend analysis
2. Request content calendar ideas
3. Create thematic content groups
4. Plan cross-section strategy
5. Schedule coordinated releases
6. Track performance metrics
- Features Guide: See FEATURES.md for comprehensive feature documentation
- Keyboard Shortcuts: Right-click context menus + keyboard support
- AI Assistance: Click AI button to learn about any feature
β Professional Bloggers: Multi-category blog organization with editorial workflow β Content Teams: Collaborative content creation with advisory standards β Marketing Teams: Campaign-based content organization with scheduling β Agencies: Client portfolio and case study management β Thought Leaders: Publish insights and establish authority β Educational Platforms: Course and learning content organization
This project is provided as-is for educational and commercial use.
Autoblog CMS v1.0 - Where AI meets intelligent content management.
Built with modern web technologies. Optimized for performance. Designed for scale.
CLOUDINARY_API_SECRETCLOUDINARY_WEBSITE_FOLDERGEMINI_API_KEYNEXT_PUBLIC_FIREBASE_API_KEYNEXT_PUBLIC_FIREBASE_AUTH_DOMAINNEXT_PUBLIC_FIREBASE_PROJECT_IDNEXT_PUBLIC_FIREBASE_STORAGE_BUCKETNEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_IDNEXT_PUBLIC_FIREBASE_APP_IDNEXT_PUBLIC_FIREBASE_MEASUREMENT_ID
- Do not commit real credentials, API keys, tokens, or passwords.
- Keep
.env.localenvironment-specific and secret-scoped. - Rotate any credential that was previously committed.
Build and run in production mode:
npm run build
npm run startUse your preferred hosting provider (e.g., Vercel) with environment variables configured in the deployment platform.