Skip to main content

Static site generator.

Project description

Brigid

A simple blog engine—but not simpler than it should be.

Demo

Or run the project from the root of this repository:

poetry install

./bin/dev-server.sh

Features

  • Monolithic design — install and run. No need to look for plugins or themes.
  • Extensive tag support for navigating and organizing content.
  • Markdown as a source code for posts.
  • Multi-language support by design.
  • Plugins — allow using custom CSS, scripts, and HTML templates.
  • [Experimental] MCP server — allows LLMs to access your blog content.

Extensive tag support

  • Powerful tag filtering for posts. Especially useful if your blog is also your knowledge base.
  • Similar post suggestions based on common tags & links (configurable).
  • Post collections: for instance, if you want an always-up-to-date list of posts tagged travels and best.
  • Post series: for example, if you want a dedicated set of posts marked by a special tag like my-cool-experiments-with-chatgpt.
  • Prev/Next post navigation for series of posts.

Markdown as a source

  • Every page is a Markdown file.
  • Each Markdown file has a TOML frontmatter with metadata.
  • In addition to standard Markdown features, Brigid supports custom blocks:
    • Lists of posts in a collection.
    • Contents of a post series.
    • Image / gallery.
    • YouTube video.
    • Spoilers / details.
    • Info blocks (admonitions).
    • Tables.
    • Including content from other files (snippets).

Multi-language support

  • Cross-linking between posts/pages in different languages.
  • SEO support for multi-language content.
  • Configurable translations.
  • Configurable per-language site menu.
  • Auto-detect language by headers and redirect users to the right entry point, e.g. my-cool-blog.org -> my-cool-blog.org/<language>/
  • Auto-marking links to posts that are not translated yet. For example, if you have a post in German and want to link to your English post that currently lacks a German translation (but might have one later).

Plugins

For examples check brigid.plugins directory.

Other features

  • Mobile-friendly.
  • SEO-friendly.
  • No default cookies.
  • Custom headers/footers with JS code.
  • Last posts block on the post page.
  • Configurable redirects on the content side—no need to inject them in your reverse proxy configs.

How to run

Set environment variables:

BRIGID_ENVIRONMENT="prod"

# Path to your content directory.
# You can find examples here:
# - ./test-content
# - https://github.com/Tiendil/tiendil-org-content/tree/main/content
BRIGID_LIBRARY_DIRECTORY="<path-to-your-content-dir>"

# Optional: Brigid will store files here for your reverse proxy to serve.
BRIGID_API_CACHE_DIRECTORY="<path-to-your-cache-dir>"

# Python list of allowed origins for CORS:
BRIGID_ORIGINS="[\"https://my-site.org\"]"

Install and run the server:

pip install brigid uvicorn

uvicorn brigid.application.application:app \
    --host 0.0.0.0 \
    --port 8000 \
    --workers 4

That’s it! You’ll have a server running on port 8000.

Consider the following for production deployment:

  • Process Management: Use a process manager like systemd, supervisord, or Docker to ensure reliable, long-term operation.
  • Reverse Proxy: Set up a reverse proxy such as Nginx or Caddy to enhance performance and security.
  • Reverse Proxy Prefix Mode: You MAY forward prefixed paths to Brigid without stripping the prefix (for example /blog/* stays /blog/* upstream) when prod_url uses the same prefix.

Design principles

A subjective list of design principles I follow in this project:

  • One solid, stable, simple, up-to-date solution. Just install and run.
  • Markdown won ⇒ use Markdown as the primary source for posts.
  • TOML won ⇒ use TOML for metadata and frontmatter instead of YAML.
  • No unnecessary or unused features.
  • Designed for non-trivial posts: long, multi-language, with images, tables, code, etc.
  • Server-side rendering is good — use it as the primary approach.
  • Use minimal JS only when truly required.
  • No CSS experiments—only stable, verified solutions.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brigid-0.16.1.tar.gz (68.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brigid-0.16.1-py3-none-any.whl (109.6 kB view details)

Uploaded Python 3

File details

Details for the file brigid-0.16.1.tar.gz.

File metadata

  • Download URL: brigid-0.16.1.tar.gz
  • Upload date:
  • Size: 68.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brigid-0.16.1.tar.gz
Algorithm Hash digest
SHA256 4bc0879a3ffa6962e34f5a74abefa1da6995a2b776dded877fded3b0fa8cbf47
MD5 e7e09df6a5a09d87bafc608a74f7f831
BLAKE2b-256 df2f5cc6e43df2e9a140e1953c0a22a3ecf50b7d1b7730a5e0c39bb4fcc274af

See more details on using hashes here.

Provenance

The following attestation bundles were made for brigid-0.16.1.tar.gz:

Publisher: release.yml on Tiendil/brigid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brigid-0.16.1-py3-none-any.whl.

File metadata

  • Download URL: brigid-0.16.1-py3-none-any.whl
  • Upload date:
  • Size: 109.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brigid-0.16.1-py3-none-any.whl
Algorithm Hash digest
SHA256 72983bc6de5d3224ac45310cde683b9a04eaf7febc9ee38c0c2b569375835051
MD5 b6b067e97ebe7a9029a351c2f4899cf4
BLAKE2b-256 4063a8036c1fd48bc90aa32a53d516888ece51e12ab271cab98cc9b1c58974f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for brigid-0.16.1-py3-none-any.whl:

Publisher: release.yml on Tiendil/brigid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page