Minimal Static Site Generator

A minimal, file-based static site generator based on Next.js and MDX.

(Last Edited)

Minimal Static Site Generator (mSSG) is a minimal static site framework built on Next.js, MDX, and shadcn/ui. Content lives as plain .mdx files on disk, without databases or CMS's.

Checkout the repository on GitHub.

Features

  • File-based routing — URL paths map directly to content/ on the filesystem
  • MDX — write content in Markdown with custom directives
  • GitHub Flavored Markdown — tables, strikethrough, task lists, and more
  • Static generation — every page is pre-rendered at build time
  • Dark mode — follows system settings
  • Math — KaTeX rendering via remark-math + rehype-katex
  • Syntax highlighting — Shiki with github-light / github-dark themes
  • Sitemap — auto-generated /sitemap.xml from all content routes

Documentation

Start from Getting Started.

Directives

Each built-in directive has its own reference and examples.

Visit Directives for an exhaustive list.