# janl/mustache.js

Minimal templating with {{mustaches}} in JavaScript

Repository: https://github.com/janl/mustache.js
Canonical: https://ross.abutalabs.com/products/mustachejs
Homepage: https://mustache.github.io
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2024-06-14T19:54:48+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 6177, "days_push": 810, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 16724, forks 2343 (observed 2026-08-28T04:11:17.035405+00:00)

## What it is
mustache.js is a zero-dependency JavaScript implementation of the Mustache logic-less template system, usable in browsers, Node.js, and CouchDB views, and also as a CLI tool. It expands {{mustache}} tags in templates using values from a view object, with no if/else or loop logic.

## Use cases
- render mustache templates in javascript
- logic-less html templating
- generate html from templates and data
- render templates in node.js
- use mustache templates in the browser
- render templates from the command line
- template config files or source code

## When to choose
- you want simple, logic-less templating with no dependencies
- you need templates that work in browser, Node.js, and other JS environments
- you want to enforce separation of logic and presentation
- you need a spec-compliant mustache implementation in JavaScript

## When to avoid
- you need conditional logic, loops with filters, or complex control flow in templates
- you want a full-featured templating engine like Handlebars, EJS, or Jinja-style features
- you need performance-optimized rendering for very large template volumes

## Facets
- artifact type: library
- maturity: stable
- function: templating, cli
- domain: web-development, frontend, developer-tools, documentation
- platform: browser, cli, cross-platform
- tags: mustache, logic-less-templates, zero-dependency, html-templating, javascript, nodejs

## Member repositories
- janl/mustache.js (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:17.035405+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-29T17:04:46.759185+00:00, confidence not recorded.
  - readme: https://github.com/janl/mustache.js (fetched 2026-08-28T04:11:17.035405+00:00, sha 11d4fb306a6b)
  - homepage: https://mustache.github.io (fetched 2026-08-29T08:02:14.499578+00:00, sha f766c2eb4b3f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
