Flegmit is a powerful static site generator with a WordPress-like content management system. Create, edit, and manage your content through a user-friendly admin interface, then build static files for fast, secure deployment.
- CMS Interface: WordPress-like admin panel for content management
- Static Site Generation: Builds fast, secure static HTML files
- Authentication: Secure login system with customizable credentials
- Database-Driven: SQLite database for storing content and settings
- Responsive Design: Mobile-friendly admin interface and generated sites
- SEO-Friendly: Built-in SEO optimization and meta tag management
- Blog Support: Full blog functionality with posts and RSS feeds
- Deployment Ready: Generates optimized files for services like Render
npm installnpm run devThe admin panel will be available at http://localhost:3000/admin
npm run buildStatic files will be generated in the build/ directory, ready for deployment.
- Dashboard: Overview of your content and quick actions
- Pages: Create and manage static pages (Home, About, etc.)
- Posts: Create and manage blog posts
- Settings: Configure site metadata, SEO, and appearance
- Create pages with custom URLs and content
- Write blog posts with excerpts and publishing controls
- Manage SEO metadata and descriptions
- Customize site settings and appearance
The build process generates:
- Static HTML files for all published pages and posts
- CSS stylesheets with customizable theming
- RSS feed for blog posts
- 404 error page
- Optimized meta tags and SEO
- Connect your GitHub repository to Render
- Set build command:
npm run build - Set publish directory:
build - Deploy!
The build/ directory contains standard static files that can be deployed to:
- Netlify
- Vercel
- GitHub Pages
- AWS S3
- Any static hosting service
flegmit/
├── server/ # Express server and database
├── views/ # EJS templates for admin interface
├── scripts/ # Build scripts
├── src/ # Source templates and content
├── build/ # Generated static files (auto-generated)
├── database/ # SQLite database files (auto-generated)
└── package.json # Dependencies and scripts
The system automatically creates a SQLite database with:
- Default user (bogdan/bogdan)
- Sample pages (Home, About)
- Site settings
Configure your site through the admin interface:
- Site title and description
- SEO metadata
- Theme colors
- Custom CSS/JS code
npm run dev- Start development servernpm run build- Build static sitenpm start- Start production server
- Styling: Modify the build script to customize CSS generation
- Templates: Edit EJS templates in the
views/directory - Content Structure: Extend the database schema in
server/database.js
- Passwords are hashed using bcrypt
- Session-based authentication
- SQL injection protection with parameterized queries
- CSRF protection through session management
MIT License - feel free to use this for personal or commercial projects.
For issues and feature requests, please use the GitHub issue tracker.