Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A minimalist personal static site generator written in Dart that turns Markdown and Mustache into a static HTML site.
Cork is a minimalist personal static site generator written in Dart that converts Markdown and HTML content into a static website using Mustache templates.
Cork is an intentionally minimal static site generator built on the Dart SDK and the build_runner toolchain. It takes Markdown files with YAML front matter and HTML pages as input, applies Mustache templates from a web/templates/ folder, and outputs a static HTML site whose folder structure mirrors the source web/ directory. The project is authored by jasonrdsouza and published as the cork_site package on pub.dev. Cork is not a general-purpose generator: common features the author does not use are deliberately omitted.
template and custom variables accessible in content and templates.web/ and templates in web/templates/; everything else is left to the user./rss.xml when configured in pubspec.yaml and enabled per-post via rss: true front matter.CORK_, including CORK_url, CORK_reading_time, and readability scores, for use in content and templates.Cork suits developers who want a static site generator that makes very few decisions for them. It is a good fit for Dart programmers who want to write client-side scripts in Dart and have them compiled to JavaScript, for personal site owners who already know Mustache and want full control over their markup, and for anyone who finds theme systems limiting and prefers to hand-write templates and CSS.
/rss.xml.web/post/post1/index.html or web/post/post1.html, then host the output anywhere.First, install the Dart SDK. Then create a pubspec.yaml listing cork_site, build, build_runner, and build_web_compilers as dependencies. Create a web/ folder with Markdown and template files, run dart pub get, and use dart run build_runner serve for a live-reload development server or dart run build_runner build --release --output <OUTPUT> for a production build.
web/ and web/templates/.The author explicitly suggests Jekyll, a Ruby-based generator widely used with GitHub Pages, and Hugo, a Go-based generator known for fast builds, as more feature-rich alternatives if Cork feels too minimal. Both are mature projects with large theme ecosystems.
Yes, Cork is a Dart package, so you must install the Dart SDK and use standard Dart build tooling. The build commands are dart pub get, dart run build_runner serve, and dart run build_runner build --release --output.
You can place CSS, JavaScript, and other assets anywhere inside web/, and you are responsible for referencing them correctly in your templates and HTML files. Cork also compiles Dart Web scripts to JavaScript automatically.
Yes, RSS 2.0 generation is opt-in. Configure cork_rss settings in pubspec.yaml and add rss: true plus a date to individual post front matter; the feed is output at /rss.xml.
No. Cork has no theme system; you are expected to create your own templates, CSS, and JavaScript. This is a deliberate design choice rather than a missing feature.
