Jinja2
Fast and expressive template engine for Python with powerful flexibility.
Used in agent projects
175
1.4% of 12,697 public repos built with AI coding agents
Rank in markdown, editors and content
#3 of 46
by use in those projects
Downloads
145M
PyPI, last 7 days, jinja2
GitHub stars
11.8K
last push Jun 14, 2025
How Jinja2 is used
Jinja2 is a dependency in 175 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.4%), #3 of 46 in markdown, editors and content. The most used alternative there is react-markdown. Projects that use it most often also use Pydantic (66.9%), Requests (65.7%), python-dotenv (57.1%).
Often used with Jinja2
| Pydantic | 66.9% of Jinja2 projects · 13.1× more than average |
|---|---|
| Requests | 65.7% of Jinja2 projects · 12.4× more than average |
| python-dotenv | 57.1% of Jinja2 projects · 8.8× more than average |
| Uvicorn | 52.6% of Jinja2 projects · 12.3× more than average |
| FastAPI | 52.0% of Jinja2 projects · 12.3× more than average |
| PyYAML | 52.0% of Jinja2 projects · 17.1× more than average |
| NumPy | 50.9% of Jinja2 projects · 13.3× more than average |
| Click | 49.7% of Jinja2 projects · 28.3× more than average |
By coding agent
| Claude Code | 2.1% of projects set up for it |
|---|---|
| GitHub Copilot | 2.0% of projects set up for it |
| Cursor | 1.9% of projects set up for it |
| Devin Desktop | 2.6% of projects set up for it |
| OpenCode | 1.9% of projects set up for it |
| OpenAI Codex | 1.3% of projects set up for it |
Share of public repos configured for each agent that list Jinja2 as a dependency.
Install
| Package | pip install jinja2 |
|---|---|
| Main stacks | Python (172), Next.js (2), Other (1) |
| Example projects | learntocloud/learn-to-cloud-app, capture0x/AdStrike, VoltCyclone/PCILeechFWGenerator, pipedude/evi-run, napjon/krisk |
Alternatives to Jinja2
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| react-markdown npm React component for rendering markdown with customizable component handling. |
360 (2.8%) | 37.2M | 15.9K | MIT |
| remark-gfm npm Remark plugin adding GitHub Flavored Markdown support for tables and strikethrough. |
288 (2.3%) | 44.5M | 1,249 | MIT |
| Marked npm Fast, efficient markdown parser for converting markdown to HTML. |
148 (1.2%) | 83.8M | 37.2K | MIT |
| React Syntax Highlighter npm React component for syntax highlighting code with Prism.js or Highlight.js. |
110 (0.9%) | 7.8M | 4,674 | MIT |
| gray-matter npm Parser extracting YAML/JSON front matter from markdown and text files. |
106 (0.8%) | 10.6M | 4,490 | MIT |
| Tiptap npm Headless Vue/React rich text editor framework with customizable extensions. |
105 (0.8%) | 18.7M | 38.7K | MIT |
| Pygments pypi Syntax highlighting library for code in Python supporting hundreds of programming languages. |
97 (0.8%) | 239M | 2,213 | — |
| Shiki npm Beautiful syntax highlighter powered by TextMate grammars with superior accuracy. |
89 (0.7%) | 24.9M | 13.9K | MIT |