Quick Start
Cook requires Node.js 18+. Install it as a dependency and start building.
Install
Terminal
npm install cook-ssg
Create your first page
src/index.html
<!doctype html><html lang="en"><head> <meta charset="utf-8"> <title>My Site</title></head><body> <h1>Hello from Cook!</h1></body></html>
Build
Terminal
npx cook build
Your site is now in dist/. Every HTML file in src/ becomes a page with a clean URL.
Development server
Terminal
npx cook dev
This builds and starts a live-reload server. Edit a file, save, and the browser refreshes automatically.
Add data
Create config/data.js to define template variables available on every page:
config/data.js
export default { siteTitle: 'My Site', year: new Date().getFullYear().toString(),};
Use them in any HTML file with template string syntax:
src/index.html
<title>Cook SSG</title><footer>© 2026</footer>
Next steps
- Project Structure — how Cook projects are organized
- Configuration — all config options
- Components — reusable HTML components
- Markdown — write content in Markdown with frontmatter