# tj/consolidate.js

Template engine consolidation library for node.js

Repository: https://github.com/tj/consolidate.js
Canonical: https://ross.abutalabs.com/products/consolidatejs
Language: JavaScript
License Family: other
Last push: 2024-12-21T08:02:38+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": 5387, "days_push": 620, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3467, forks 343 (observed 2026-08-28T04:08:05.855080+00:00)

## What it is
Consolidate.js is a Node.js library that provides a unified API over dozens of JavaScript template engines (EJS, Handlebars, Pug, Mustache, etc.). It is commonly used as the view-engine integration layer for Express 3.x/4.x applications.

## Use cases
- render templates in express with multiple template engines
- swap template engines without changing app code
- unified api for ejs handlebars pug mustache
- use handlebars as express view engine
- normalize template engine apis in node.js

## When to choose
- you use Express and want to configure or switch view engines easily
- you need one consistent render API across many template engines
- you are building a framework that should support arbitrary template engines

## When to avoid
- you only use a single template engine and can call it directly
- you need a modern actively developed templating solution
- you rely on engines that are unmaintained or have known security issues

## Facets
- artifact type: library
- maturity: maintenance
- function: templating, middleware
- domain: web-development, frontend, developer-tools
- platform: -
- tags: template-engines, express, view-engine, abstraction-layer, nodejs

## Member repositories
- tj/consolidate.js (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:05.855080+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:36:46.572712+00:00, confidence not recorded.
  - readme: https://github.com/tj/consolidate.js (fetched 2026-08-28T04:08:05.855080+00:00, sha 95a35cba88c1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
