Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A simple webpack-powered static site generator that renders plain HTML pages and components into a static site with one command.
Simple Static Site Generator is a minimal webpack-powered static site generator that turns plain HTML pages and shared components into a built static site with a single npm command.
Simple Static Site Generator is a small Node.js project, created by kbariotis, that uses webpack to compile static HTML sites. It takes HTML files from the pages folder and component snippets from the components folder as input, and produces a fully built static site when you run npm run build. The project is distributed as a public GitHub repository under the MIT license, with the tagline "Just render some HTML already!" signaling its stripped-down approach.
pages, and reusable page components live in components; editing either is all the configuration you need.npm run build compiles the site, with no JSON config to write or CLI flags to remember..html files rather than a templating language, which keeps the learning curve near zero.git clone followed by npm install, so any Node.js environment can start building immediately.Simple Static Site Generator suits developers who want a no-frills static site without adopting a full static-site framework. Beginners can use it to learn how webpack and static site generation work through a minimal codebase. It also works for small, single-purpose sites like landing pages or internal documentation where a heavy toolchain would be overkill. If you need a blog engine, themes, or content collections, this project intentionally does not include them.
index.html into the pages folder and run the build to get a production-ready static homepage.pages to create additional routes, each compiled by the same webpack pipeline.components to share headers, footers, or other snippets across multiple pages.The workflow is a four-step process: clone the repository from GitHub, install dependencies with npm install, add your HTML pages to the pages folder (and edit the components folder for shared parts), then run npm run build. Webpack processes the files and outputs the finished static site. There are no configuration files to customize before the first build.
Yes. The project is published under the MIT license, so you can use it, modify it, and distribute it without paying a license fee. That includes commercial use, as long as you retain the original copyright notice.
Create a new HTML file inside the pages folder and run npm run build. Each file in that folder becomes a page in the generated static site. The build automatically picks up new files without extra configuration.
It runs on Node.js and uses webpack as the build tool. The input is plain HTML, so there is no template engine, Markdown parser, or frontmatter involved. The project's GitHub topics list nodejs, static-site, static-site-generator, and webpack.
No. The project is intentionally limited to rendering plain HTML files. There is no Markdown conversion, no blog post layout, and no content pagination. For those features, you would need a more feature-complete static site generator.
The repository is publicly available on GitHub at https://github.com/kbariotis/simple-static-site-generator. You can clone it directly with git clone https://github.com/kbariotis/simple-static-site-generator and run it locally.
