# mitsuhiko/minijinja

MiniJinja is a powerful but minimal dependency template engine for Rust compatible with Jinja/Jinja2

Repository: https://github.com/mitsuhiko/minijinja
Canonical: https://ross.abutalabs.com/products/minijinja
Homepage: https://docs.rs/minijinja
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: jinja2, templates, rust, jinja
Last push: 2026-08-13T13:13:46+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 97, longevity 100
- inputs: {"age_days": 1813, "days_push": 20, "days_rel": 21, "gap_med": 21.5, "n_releases_24m": 27}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2743, forks 163 (observed 2026-08-28T04:07:16.617014+00:00)

## What it is
MiniJinja is a powerful, minimal-dependency template engine for Rust (with Go, Python, JavaScript/WASM, and CLI variants) that implements the syntax and behavior of Jinja2. It supports template inheritance, filters, expression evaluation, and serde-compatible data types while staying close to the Jinja2 ecosystem.

## Use cases
- render jinja2 templates in rust
- minimal dependency template engine for rust
- render templates from the command line
- use jinja templates in a python project via rust
- evaluate jinja expressions in the browser with wasm
- template configuration files with jinja2 syntax

## When to choose
- you need Jinja2-compatible templating in Rust with near-zero dependencies
- you want fast compile times and decent runtime performance
- you need serde integration for passing data into templates
- you want a standalone CLI for rendering templates

## When to avoid
- you need 100% of Jinja2's features, as compatibility is partial
- you need a full-featured engine with async or sandboxing guarantees beyond MiniJinja's scope
- you are working outside Rust/Go/Python/JS ecosystems

## Facets
- artifact type: library
- maturity: stable
- function: templating, parser, developer-tools
- domain: web-development, developer-tools, backend
- platform: rust, python, go, wasm, cli, cross-platform
- tags: jinja2, template-engine, serde, minimal-dependencies, minijinja-cli

## Member repositories
- mitsuhiko/minijinja (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:16.617014+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:19:06.253737+00:00, confidence not recorded.
  - readme: https://github.com/mitsuhiko/minijinja (fetched 2026-08-28T04:07:16.617014+00:00, sha f7007a7af47d)
  - homepage: https://docs.rs/minijinja (fetched 2026-08-29T09:57:18.091121+00:00, sha dfe0306d0b81)
  - site_page: https://docs.rs/ (fetched 2026-08-29T09:57:18.094549+00:00, sha 952fbf288daf)
  - site_page: https://docs.rs/crate/minijinja/latest (fetched 2026-08-29T09:57:18.096550+00:00, sha bdc42be39138)
  - site_page: https://docs.rs/crate/minijinja/latest/features (fetched 2026-08-29T09:57:18.102014+00:00, sha 558e28c6b49d)
  - site_page: https://docs.rs/about (fetched 2026-08-29T09:57:18.104672+00:00, sha 29ab7986fbf5)
  - site_page: https://docs.rs/about/badges (fetched 2026-08-29T09:57:18.106361+00:00, sha 6588cac258af)
  - site_page: https://docs.rs/about/builds (fetched 2026-08-29T09:57:18.107919+00:00, sha 811231ca4680)
  - site_page: https://docs.rs/about/metadata (fetched 2026-08-29T09:57:18.109526+00:00, sha 0dcdccb2b2b2)
  - site_page: https://docs.rs/about/redirections (fetched 2026-08-29T09:57:18.111102+00:00, sha 1b1efd93105f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
