Skip to main content

Marmite

marmite

Marmite [Markdown makes sites] is a very! simple static site generator.

AGPL License Crates.io Version Docs and Demo

Create blog

Playground

I'm a big user of other SSGs but it is frequently frustrating that it takes so much setup to get started.
Just having a directory of markdown files and running a single command sounds really useful.
— Michael, marmite user.

How it works

It does "one" simple thing only:

  • Reads all .md files on the input directory.
  • Using CommonMark parse it to HTML content.
  • Extract optional metadata from frontmatter or filename.
  • Generated html file for each page.
  • Outputs the rendered static site to the output folder.

It also handles generating or copying static/ and media/ to the output dir.

Before you start, you should know

  1. Marmite is meant to be simple, don't expect complex features
  2. Marmite is for bloggers, so writing and publishing articles in chronological order is the main use case.
  3. The generated static site is flat HTML by default (./{name}.html|rss|json). Workspaces can produce subdirectory-based multi-site layouts.
  4. Taxonomies: tags:, stream:, series:, authors:, and languages: (i18n)
  5. Marmite uses the date: attribute to differentiate posts from pages

Features

  • Everything embedded in a single binary.
  • Zero-Config to get started.
    • Optionally fully configurable via marmite.yaml
    • Configurable markdown parser (CommonMark extensions, rendering options)
  • Common-mark + Github Flavoured Markdown + Extensions.
  • Raw HTML allowed.
  • Emojis :smile:, spoiler ||secret||.
  • Wikilinks [[name|url]] and Obsidian links [[page]].
  • Markdown alerts (GitHub-style callouts).
  • Backlinks and related content.
  • Tags.
  • Multi authors with profile pages.
  • Multi streams (separate content in different listings).
  • Series support (ordered, chronological content groups with navigation).
  • Language streams / i18n (multilingual content with auto-discovery, translation links, hreflang SEO tags).
  • Draft content management (filtered from feeds and search).
  • Pagination.
  • Static search index with inline match previews.
  • RSS Feeds (index, tags, authors, streams, languages).
  • Next/previous post navigation (stream-aware).
  • Built-in HTTP server with WebSocket live reload.
  • Auto rebuild when content changes.
  • Shortcodes (YouTube, Spotify, cards, galleries, table of contents, custom templates).
  • Image gallery with automatic thumbnail generation.
  • Automatic image resizing (parallel processing, incremental builds, configurable quality).
  • Media organization (slug-based subfolders, @/ shorthand, content subfolder media).
  • Automatic sitemap generation.
  • --show-urls dry run to preview all site URLs without building.
  • File mappings (copy arbitrary files during site generation).
  • Redirect aliases (frontmatter aliases field generates redirect pages for old URLs).
  • Internal link validation (build-time checking, optional strict failure mode).
  • IndieWeb compliance (microformats, semantic HTML).
  • Markdown source publishing alongside HTML.
  • Built-in theme
    • Light and Dark modes.
    • Multiple colorschemes.
    • Fully responsive.
    • Spotlight search.
    • Easy to replace the index page and add custom CSS/JS.
    • Easy to customize Tera templates.
    • Math and Mermaid diagrams (native build-time SVG or client-side JS).
    • Build-time syntax highlighting via arborium.
    • Commenting system integration.
    • Banner images and og: tags.
  • Theme system with remote theme installation.
  • CLI to start a new theme from scratch.
  • Workspace multi-site support (single command builds, config inheritance, cross-site references).
  • AT Protocol / standard.site integration (publish posts to the decentralized social web).
  • Embedded AI agent skills for AI-assisted site management.
  • Available via cargo, pip/uvx, Homebrew, AUR, FreeBSD, Docker, and install script.

Installation

curl -sS https://marmite.blog/install.sh | sh

Also available via cargo, pip/uvx, Homebrew, Arch Linux, FreeBSD, and Docker. See the full installation guide for all methods.

Usage

It's simple, really!

$ marmite folder_with_markdown_files path_to_generated_site
Site generated at path_to_generated_site/

CLI

$ marmite --help
Marmite is the easiest static site generator.

Usage: marmite [OPTIONS] [INPUT_FOLDER] [OUTPUT_FOLDER] [COMMAND]

Commands:
  atproto  Manage atproto / standard.site integration
  help     Print this message or the help of the given subcommand(s)

Arguments:
  [INPUT_FOLDER]   Input folder containing markdown files
  [OUTPUT_FOLDER]  Output folder to generate the site [default: `input_folder/site`]

Options:
  -v, --verbose...            Verbosity level (0-4) [default: 0 warn]
  -w, --watch                 Detect changes and rebuild the site automatically
      --serve                 Serve the site with a built-in HTTP server
      --bind <BIND>           Address to bind the server [default: 0.0.0.0:8000]
  -c, --config <CONFIG>       Path to custom configuration file [default: marmite.yaml]
      --init-templates        Initialize templates in the project
      --start-theme <NAME>    Initialize a theme with templates and static assets
      --set-theme <THEME>     Download and set a theme from a remote URL or local folder
      --generate-config       Generate the configuration file
      --init-site             Init a new site with sample content and default configuration
      --force                 Force the rebuild of the site even if no changes detected
      --shortcodes            List all available shortcodes
      --show-urls             Show all site URLs organized by content type
      --skill                 Print the embedded agent skill document (SKILL.md) to stdout
      --skill-install         Install the skill into .agents/skills/
      --skill-install-claude  Install the skill into .claude/skills/ for Claude Code
      --new <TITLE>           Create a new post with the given title
  -e                          Edit the file in the default editor
  -p                          Set the new content as a page
  -t <TAGS>                   Set the tags for the new content (comma separated)
      --site <SITE>           Target site within a workspace
      --skip-image-resize     Skip image resizing during build
      --check-internal-links  Check internal links during build
      --strict-internal-links Fail the build on broken internal links
  -h, --help                  Print help
  -V, --version               Print version

Run marmite --help for the full list of options including site metadata overrides, search, pagination, and other configuration flags.

Live reload in development

When running with --serve --watch (or --serve -w), Marmite automatically rebuilds on file changes and refreshes the browser via WebSocket. The default theme includes live reload out of the box. For custom themes, add this snippet to your base template:

<script src="/__marmite__/livereload.js"></script>

Getting started

Read a tutorial on how to get started https://marmite.blog/getting-started.html and create your blog in minutes.

Docs

Read more on how to customize templates, add comments etc on https://marmite.blog/

That's all!

Marmite is very simple.

If this simplicity does not suit your needs, there are other awesome static site generators.

Here are some that I recommend:

Metadata

Release files for marmite 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for marmite 0.4.3
File Size Uploaded Provenance Actions
marmite-0.4.3.tar.gz 3.6 MB Without provenance Details for marmite-0.4.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for marmite 0.4.3
File Actions
marmite-0.4.3-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for marmite-0.4.3-py3-none-win_amd64.whl
marmite-0.4.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for marmite-0.4.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
marmite-0.4.3-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for marmite-0.4.3-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
marmite-0.4.3-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for marmite-0.4.3-py3-none-macosx_11_0_arm64.whl
marmite-0.4.3-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for marmite-0.4.3-py3-none-macosx_10_12_x86_64.whl

Total release size: 109.9 MB

Release files / marmite-0.4.3.tar.gz

Download URL marmite-0.4.3.tar.gz
Size 3.6 MB
Tags Source
SHA-256 checksum
How to use checksums
6f2562bcb02ffc688f72e9f510aad22fe2733381ddca072f958d28df34580972
BLAKE2b-256 checksum
How to use checksums
463899868f6c90c3a3f3a90ef5be27c0f60e99a480cd43274a406d544e3157e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / marmite-0.4.3-py3-none-win_amd64.whl

Download URL marmite-0.4.3-py3-none-win_amd64.whl
Size 21.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
b3b2914a30695140fa7d24f2a98c9c7f4497df8e696cd4926e772d24e339ade2
BLAKE2b-256 checksum
How to use checksums
91a5955db67780429f8d50c1927fdeec192ae8c77cd936852305016db9cd05b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / marmite-0.4.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL marmite-0.4.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 21.5 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
7490a5b0439ebbd902954030b5473af35724766ed2fd38ae0812a9bf2902ff53
BLAKE2b-256 checksum
How to use checksums
cde27db54f41ba95730cbe4816f5c6f5ef0d4ed80d84833d151002bf288b49c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / marmite-0.4.3-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL marmite-0.4.3-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 21.0 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
58c64cfe28b72d81d20857cf314b827644c3a0329d58557e935fa541e882c824
BLAKE2b-256 checksum
How to use checksums
a1052ee27a07e79b5f60a4fce8cb3294c564fc7043ecdfc74e37322cf78b3f06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / marmite-0.4.3-py3-none-macosx_11_0_arm64.whl

Download URL marmite-0.4.3-py3-none-macosx_11_0_arm64.whl
Size 21.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3e802700611fb619ee1768bcde164c50c354a0a371929138b897290d51a523b6
BLAKE2b-256 checksum
How to use checksums
fc67d457868d71aa70319296a45fdef8688eee69b416c2af28bc9c95d4a9598b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / marmite-0.4.3-py3-none-macosx_10_12_x86_64.whl

Download URL marmite-0.4.3-py3-none-macosx_10_12_x86_64.whl
Size 21.0 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
0e41766a53ec46f9b303226f885ae8d5027396d10359c0d947a60e795c06baf1
BLAKE2b-256 checksum
How to use checksums
310ae75ad9984a8ee6326b0dc2eb985bce125f375d9a7950d0453267db16e442
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for marmite 0.4.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page