Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
The minimalistic but flexible static site generator for Deno 🦕.
ssgo is a minimalistic static site generator built with Deno that compiles HTML templates and TypeScript creator scripts into a static dist/ site.
ssgo is a static site generator for developers who want a minimal, code-driven workflow. It runs entirely on Deno and takes two kinds of input: HTML templates (with placeholder variables) and "creator" TypeScript files that call a buildPage function to produce pages. The output is a fully static website written into a dist/ directory, ready to deploy anywhere. The project is open source under the MIT license and documented at ssgo.netlify.app/docs.
deno install command and run everything through the Deno runtime.templates/ and creator scripts in creators/ that use the buildPage function to provide data and output paths.ssgo dev starts a development server on http://localhost:5580 with file watching and just-in-time page builds.ssgo in the project root compiles the entire site into dist/ for production.ssgo init creates the standard folder structure: creators/, templates/, components/, and static/.BuildPage type from https://deno.land/x/ssgo/mod.ts, giving type checking inside Deno.ssgo CLI and offers a fast dev server for local testing.fetchTitle) and generate pages with custom filenames and directories.ssgo init to scaffold the folder structure, drop in HTML templates, and launch the dev server at http://localhost:5580 for immediate feedback.dist/ is plain HTML, CSS, and JavaScript, so it can be hosted on Netlify, GitHub Pages, or any static host.buildPage for each entry, producing multiple pages from a single template.Install ssgo with deno install --unstable and the permissions flags, then scaffold a project with ssgo init. You create HTML templates and TypeScript creators; each creator invokes the buildPage function with the template name, a data object, and build options like filename and dir. Running ssgo builds the whole site into dist/, while ssgo dev watches files and re-renders pages just-in-time.
ssgo is open source and released under the MIT license, so it is free to use and modify for both personal and commercial projects.
No, ssgo is built exclusively for Deno. You only need the Deno runtime installed to use the CLI and run the generator.
ssgo and ssgo dev?ssgo performs a one-time production build into dist/. ssgo dev starts a development server on port 5580, watches files for changes, and rebuilds pages just-in-time with hot reload.
buildPage do?buildPage is the core function passed to every creator script. It takes a template filename, a data object (with values that replace placeholders like {{ title }}), and an options object specifying the output filename and directory.
