# twitter/hogan.js

A compiler for the Mustache templating language

Repository: https://github.com/twitter/hogan.js
Canonical: https://ross.abutalabs.com/products/hoganjs
Homepage: http://twitter.github.io/hogan.js
Language: JavaScript
License: Apache-2.0
License Family: permissive
Last push: 2023-04-10T11:35:08+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": 5369, "days_push": 1241, "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 5124, forks 425 (observed 2026-08-28T04:09:10.933840+00:00)

## What it is
Hogan.js is a JavaScript compiler for the Mustache templating language, developed at Twitter. It compiles templates into standalone HoganTemplate objects with render methods, and can precompile templates on the server for use in the browser.

## Use cases
- compile mustache templates to JavaScript
- render templates in the browser with dynamic data
- precompile templates ahead of time with an asset packager
- parse and scan mustache template syntax on the server
- compile template files to JS from the command line with hulk

## When to avoid
- you need an actively maintained templating library
- you want modern template features beyond the Mustache spec
- you are starting a new project and can choose a maintained alternative

## Facets
- artifact type: library
- maturity: abandoned
- function: templating, compiler, parser
- domain: web-development, frontend, developer-tools
- platform: browser, cross-platform
- tags: mustache, template-engine, precompilation, twitter, nodejs, javascript

## Member repositories
- twitter/hogan.js (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:10.933840+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-29T18:02:04.745966+00:00, confidence not recorded.
  - readme: https://github.com/twitter/hogan.js (fetched 2026-08-28T04:09:10.933840+00:00, sha 9ab54f2d244f)
  - homepage: http://twitter.github.io/hogan.js (fetched 2026-08-29T08:56:57.395404+00:00, sha c634f024fe67)
  - registry_npm: https://registry.npmjs.org/hogan.js (fetched 2026-08-29T08:56:57.397905+00:00, sha 39a30948ea31)
- Data as of 2026-08-30T08:39:29.467469+00:00.
