StaticBase is a bash script that generates a clean, modern website with index, about, contact pages, and a full blog system powered by:
- Tailwind CSS - Utility-first styling
- Alpine.js - Lightweight interactivity
- Vite - Lightning-fast builds
- Markdown - Easy content management
- Simple - No complex frameworks
- Modern - Latest tools (Vite, Tailwind, Alpine)
- Fast - Lightning-fast development and builds
- Flexible - Easy to customize and extend
- Production-Ready - Optimized builds
- AI-Friendly - Includes AGENTS.md for AI assistants
git clone <repo-url> staticbase
cd staticbase
chmod +x create-staticbase.shgit clone <repo-url> staticbase
cd staticbase
chmod +x create-staticbase.shInstall Git Bash: Git for Windows
./create-staticbase.sh mywebsite
cd mywebsite
npm install
npm run devYour site is now running at http://localhost:5173
- Homepage - Hero section with gradient background
- About - Company/personal information
- Contact - Interactive form with Alpine.js
- Blog - Markdown-based blog system
- Mobile-responsive navigation with hamburger menu
- Tailwind CSS styling throughout
- Alpine.js for interactivity
- 2 sample blog posts
- Production-ready build system
- SEO-friendly structure
my-website/
├── content/blog/ # Blog posts (markdown)
├── templates/ # Page templates
├── lib/ # Helper functions
├── src/
│ ├── main.js # Alpine.js initialization
│ └── style.css # Tailwind CSS
├── public/images/ # Static assets
├── index.html # Homepage
├── about.html # About page
├── contact.html # Contact form
├── base.html # Layout template
├── vite.config.js # Build config
├── README.md # Project docs
└── AGENTS.md # AI agent guidelines
- Create
newpage.html - Add to
base.htmlnavigation - Add to
vite.config.jspages array
Build your site:
npm run buildDeploy the dist/ folder to:
- Netlify - Drag & drop
- Vercel - Git integration
- GitHub Pages - Free hosting
- Cloudflare Pages - Global CDN
staticbase includes AGENTS.md - comprehensive guidelines for AI coding assistants. This file helps AI agents like Claude, ChatGPT, and others:
- Understand project structure
- Follow Tailwind/Alpine.js conventions
- Make appropriate architectural decisions
- Maintain code quality
- Avoid common mistakes
Using AI assistants? Point them to the AGENTS.md file in your generated project!
- Node.js v18+
- npm
- Vite 7 - Next-generation build tool
- Tailwind CSS 4 - Utility-first CSS
- Alpine.js 3 - Minimal JavaScript framework
- Marked - Markdown to HTML
- Gray Matter - Frontmatter parser
vite.config.js- Build configurationpackage.json- Dependencies.gitignore- Git exclusions
content/blog/*.md- Blog poststemplates/*.html- Page templates
src/main.js- JavaScript entrysrc/style.css- Tailwind CSS
index.html- Homepageabout.html- About pagecontact.html- Contact formbase.html- Layout template
README.md- Project documentationAGENTS.md- AI agent guidelines
MIT
Made with love by Fathur Rahman
Create beautiful websites in seconds