Skip to content
JS
Package category

Templating

HTML and text template engines.

247 packages2 comparisons

Packages compared

247 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
magic-string
Modify strings, generate sourcemaps
156.7m+189%-2 days ago
1.4.2
ESM onlyBundledTemplating
ejs
Embedded JavaScript templates
31.1m+61%-4 months ago
6.0.1
ESM + CommonJSNoneTemplating
handlebars
Handlebars provides the power necessary to let you build semantic templates effectively with no frustration
30.8m+48%-5 months ago
4.7.9
CommonJSBundledTemplating
mustache
Logic-less {{mustache}} templates with JavaScript
12.7m+88%-5 years ago
4.2.0
ESM + CommonJSNoneTemplating
pupa
Simple micro templating
8.1m+43%-1 year ago
3.3.0
ESM onlyBundledTemplating, Strings and text
chalk-template
Terminal string styling with tagged template literals
8m+97%-1 year ago
1.1.2
ESM onlyBundledCLI tools and terminal utilities, Templating
eta
Lightweight, fast, and powerful embedded JS template engine
5.1m+350%-4 months ago
4.6.0
ESM + CommonJSBundledTemplating
svelte
Cybernetically enhanced web apps
4.2m+134%-6 days ago
5.57.1
ESM + CommonJSBundledUI component libraries, Svelte
pug-error
Standard error objects for pug
2.9m+59%-2 years ago
2.1.0
CommonJSBundledTemplating
pug-lexer
The pug lexer (takes a string and converts it to an array of tokens)
2.8m+63%-5 years ago
5.0.1
-NoneTemplating
pug-parser
The pug parser (takes an array of tokens and converts it to an abstract syntax tree)
2.7m+74%-6 years ago
6.0.0
-NoneTemplating
pug-code-gen
Default code-generator for pug. It generates HTML via a JavaScript template function.
2.7m+66%-6 months ago
3.0.4
-NoneTemplating
pug
A clean, whitespace-sensitive template language for writing HTML
2.7m+76%-6 months ago
3.0.4
CommonJSNoneTemplating
pug-runtime
The runtime components for the pug templating language
2.7m+62%-5 years ago
3.0.1
CommonJSNoneTemplating
pug-walk
Walk and transform a pug AST
2.7m+73%-6 years ago
2.0.0
-NoneTemplating
pug-attrs
Generate code for Pug attributes
2.7m+76%-6 years ago
3.0.0
-NoneTemplating
pug-strip-comments
Strip comments from a Pug token stream (from the lexer)
2.7m+56%-6 years ago
2.0.0
-NoneTemplating
pug-linker
Link multiple pug ASTs together using include/extends
2.7m+76%-6 years ago
4.0.0
-NoneTemplating
pug-filters
Code for processing filters in pug templates
2.7m+76%-6 years ago
4.0.0
-NoneTemplating
pug-load
The Pug loader is responsible for loading the depenendencies of a given Pug file.
2.7m+76%-6 years ago
3.0.0
-NoneTemplating
nunjucks
A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)
2.6m+116%-3 years ago
3.2.4
CommonJSNoneTemplating
consolidate
Modern and maintained fork of the template engine consolidation library. Maintained and supported by Forward Email <https://forwardemail.net>, the 100% open-source and privacy-focused email service.
1.9m-1%-2 years ago
1.0.4
CommonJSNoneTemplating
liquidjs
A simple, expressive, extensible Liquid template engine for JavaScript — Shopify, Jekyll and GitHub Pages compatible, for Node.js, browsers, and the CLI, with TypeScript support.
1.6m+114%-1 month ago
10.29.0
--Templating
hogan.js
A mustache compiler.
1.2m+31%-12 years ago
3.0.2
CommonJSNoneTemplating
openapi-path-templating
OpenAPI Path Templating parser, validator, resolver and matcher.
665.1k+58%-1 year ago
2.2.1
ESM + CommonJSBundledDocumentation tooling, Parsers and serialisers
openapi-server-url-templating
OpenAPI Server URL templating parser, validator and substitution mechanism.
661.3k+62%-1 year ago
1.3.0
ESM + CommonJSBundledTemplating, URLs and query strings
dot
Concise and fast javascript templating compatible with nodejs and other javascript environments
573.1k+22%-6 years ago
1.1.3
CommonJSNoneTemplating
jade
A clean, whitespace-sensitive template language for writing HTML
447k-10%-11 years ago
1.11.0
CommonJSNoneTemplating
velocityjs
Velocity Template Language(VTL) for JavaScript
437.3k+6%-2 months ago
2.1.7
ESM + CommonJSBundledTemplating
@plasmohq/consolidate
Template engine consolidation library
425.4k---4 years ago
0.17.0
CommonJSNoneTemplating
preview-email
Automatically opens your browser and iOS Simulator to preview Node.js email messages sent with Nodemailer. Made for Forward Email and Lad. Cross-browser and cross-platform email testing.
402.7k+26%-today
3.4.1
CommonJSNoneEmail, Templating
ejs-loader
EJS (Underscore/LoDash Templates) loader for webpack
370.1k+221%-6 years ago
0.5.0
CommonJSNoneTemplating, Utility libraries
express-handlebars
A Handlebars view engine for Express which doesn't suck.
329.5k-10%-5 months ago
9.0.1
CommonJSBundledHTTP servers and web frameworks, Templating
maxstache
Minimalist mustache template replacement
327.1k+42%-10 years ago
1.0.7
CommonJSNoneTemplating
handlebars-utils
Utils for handlebars helpers. Externalized from handlebars, to allow helpers to use the utils without having to depend on handlebars itself.
297k-5%-8 years ago
1.0.6
CommonJSNoneTemplating, Utility libraries
string-strip-html
Strip HTML tags from strings. No parser, accepts mixed sources.
286k+74%-3 days ago
13.7.5
ESM onlyBundledTemplating
hbs
Express.js template engine plugin for Handlebars
258.5k+23%--
4.3.1
CommonJSNoneTemplating
@fastify/view
Template plugin for Fastify
251.1k---3 months ago
12.0.0
CommonJSBundledTemplating
@syncfusion/ej2-base
A common package of Essential JS 2 base libraries, methods and class definitions
239k---10 days ago
34.2.8
ESM + CommonJSBundledTemplating
@html-eslint/template-syntax-parser
Parse template syntax
197k---8 days ago
0.66.1
CommonJSBundledLinting and formatting, Templating
@profoundlogic/hogan
A maintained fork of Hogan.js by Profound Logic. Removes deprecated mkdirp usage and ensures compatibility with modern Node.js.
187.8k---11 months ago
3.0.4
CommonJSNoneTemplating
@budibase/handlebars-helpers
More than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate, Verb, Ghost, gulp-handlebars, grunt-handlebars, consolidate, or any node.js/Handlebars project.
181.5k---4 months ago
0.14.3
CommonJSNoneTemplating, Logging
elastic-builder
A JavaScript implementation of the elasticsearch Query DSL
175.3k+5%-10 months ago
4.1.0
CommonJSBundledTemplating, ORMs and query builders
dotprompt
Dotprompt: Executable GenAI Prompt Templates
165.3k+1%-1 year ago
1.1.2
CommonJSBundledTemplating
@blakeembrey/template
Fast and simple string template library
163.3k---2 years ago
1.2.0
CommonJSBundledTemplating
@11ty/eleventy
A simpler static site generator.
163k---3 months ago
3.1.6
ESM + CommonJSBundledStatic site generators and meta-frameworks, Templating
broccoli-config-replace
Simple templating using a config.json and regex patterns
159.4k-0%-6 months ago
1.1.3
CommonJSNoneTemplating
@n8n_io/riot-tmpl
n8n fork of the riot template engine
143.3k---3 years ago
4.0.1
ESM + CommonJSBundledTemplating
mu2
A Mustache template engine for Node.js
118.2k+28%-10 years ago
0.5.21
CommonJSNoneTemplating
compilerr
A kind of templating system to compile errors.
104.1k+95%-3 months ago
13.0.1
ESM + CommonJSBundledTemplating

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.

  • magic-stringModify strings, generate sourcemaps
  • ejsEmbedded JavaScript templates
  • handlebarsHandlebars provides the power necessary to let you build semantic templates effectively with no frustration
  • mustacheLogic-less {{mustache}} templates with JavaScript
  • pupaSimple micro templating
  • chalk-templateTerminal string styling with tagged template literals
  • etaLightweight, fast, and powerful embedded JS template engine
  • svelteCybernetically enhanced web apps
  • pug-errorStandard error objects for pug
  • pug-lexerThe pug lexer (takes a string and converts it to an array of tokens)
  • pug-parserThe pug parser (takes an array of tokens and converts it to an abstract syntax tree)
  • pug-code-genDefault code-generator for pug. It generates HTML via a JavaScript template function.
  • pugA clean, whitespace-sensitive template language for writing HTML
  • pug-runtimeThe runtime components for the pug templating language
  • pug-walkWalk and transform a pug AST
  • pug-attrsGenerate code for Pug attributes
  • pug-strip-commentsStrip comments from a Pug token stream (from the lexer)
  • pug-linkerLink multiple pug ASTs together using include/extends
  • pug-filtersCode for processing filters in pug templates
  • pug-loadThe Pug loader is responsible for loading the depenendencies of a given Pug file.
  • nunjucksA powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)
  • consolidateModern and maintained fork of the template engine consolidation library. Maintained and supported by Forward Email <https://forwardemail.net>, the 100% open-source and privacy-focused email service.
  • liquidjsA simple, expressive, extensible Liquid template engine for JavaScript — Shopify, Jekyll and GitHub Pages compatible, for Node.js, browsers, and the CLI, with TypeScript support.
  • hogan.jsA mustache compiler.
  • openapi-path-templatingOpenAPI Path Templating parser, validator, resolver and matcher.
  • openapi-server-url-templatingOpenAPI Server URL templating parser, validator and substitution mechanism.
  • dotConcise and fast javascript templating compatible with nodejs and other javascript environments
  • jadeA clean, whitespace-sensitive template language for writing HTML
  • velocityjsVelocity Template Language(VTL) for JavaScript
  • @plasmohq/consolidateTemplate engine consolidation library
  • preview-emailAutomatically opens your browser and iOS Simulator to preview Node.js email messages sent with Nodemailer. Made for Forward Email and Lad. Cross-browser and cross-platform email testing.
  • ejs-loaderEJS (Underscore/LoDash Templates) loader for webpack
  • express-handlebarsA Handlebars view engine for Express which doesn't suck.
  • maxstacheMinimalist mustache template replacement
  • handlebars-utilsUtils for handlebars helpers. Externalized from handlebars, to allow helpers to use the utils without having to depend on handlebars itself.
  • string-strip-htmlStrip HTML tags from strings. No parser, accepts mixed sources.
  • hbsExpress.js template engine plugin for Handlebars
  • @fastify/viewTemplate plugin for Fastify
  • @syncfusion/ej2-baseA common package of Essential JS 2 base libraries, methods and class definitions
  • @html-eslint/template-syntax-parserParse template syntax
  • @profoundlogic/hoganA maintained fork of Hogan.js by Profound Logic. Removes deprecated mkdirp usage and ensures compatibility with modern Node.js.
  • @budibase/handlebars-helpersMore than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate, Verb, Ghost, gulp-handlebars, grunt-handlebars, consolidate, or any node.js/Handlebars project.
  • elastic-builderA JavaScript implementation of the elasticsearch Query DSL
  • dotpromptDotprompt: Executable GenAI Prompt Templates
  • @blakeembrey/templateFast and simple string template library
  • @11ty/eleventyA simpler static site generator.
  • broccoli-config-replaceSimple templating using a config.json and regex patterns
  • @n8n_io/riot-tmpln8n fork of the riot template engine
  • mu2A Mustache template engine for Node.js
  • compilerrA kind of templating system to compile errors.