10 Best Node.js HTML Templating Engine Libraries

Curated by the Openbase team and community.Learn more

Curated by the Openbase team and community. Learn more

eta

Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
2
Top Feedback
N/A
GitHub Stars
393
Weekly Downloads
76K
Last Commit
25d ago
Bundle Size (min+gzip)
2.43KB
Tree-Shakeable
mus

mustache

Minimal templating with {{mustaches}} in JavaScript

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.5/ 5
19
Top Feedback
1Poor Documentation
1Hard to Use
GitHub Stars
15K
Weekly Downloads
2M
Last Commit
6mos ago
Bundle Size (min+gzip)
2.65KB
Not Tree-Shakeable
ejs

ejs

Embedded JavaScript templates -- http://ejs.co

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.2/ 5
18
Top Feedback
13Easy to Use
10Great Documentation
7Performant
GitHub Stars
6K
Weekly Downloads
9M
Last Commit
1mo ago
Bundle Size (min+gzip)
4.58KB
Not Tree-Shakeable

marko

A declarative, HTML-based language that makes building web apps fun

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
4
Top Feedback
N/A
GitHub Stars
11K
Weekly Downloads
4K
Last Commit
1d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

handlebars

Handlebars provides the power necessary to let you build semantic templates effectively with no frustration

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.2/ 5
33
Top Feedback
13Great Documentation
11Easy to Use
9Performant
GitHub Stars
16K
Weekly Downloads
8M
Last Commit
8mos ago
Bundle Size (min+gzip)
21.7KB
Not Tree-Shakeable

jade

Pug – robust, elegant, feature rich template engine for Node.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
TypeScript Icon
Deprecated
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
20K
Weekly Downloads
475K
Last Commit
3mos ago
Bundle Size (min+gzip)
58.2KB
Not Tree-Shakeable

pug

Pug – robust, elegant, feature rich template engine for Node.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.1/ 5
73
Top Feedback
8Great Documentation
7Easy to Use
4Highly Customizable
GitHub Stars
20K
Weekly Downloads
1M
Last Commit
3mos ago
Bundle Size (min+gzip)
170.0KB
Not Tree-Shakeable

nunjucks

A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)

License Icon
License: BSD-2-Clause
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.8/ 5
4
Top Feedback
2Great Documentation
2Easy to Use
2Performant
GitHub Stars
8K
Weekly Downloads
374K
Last Commit
8mos ago
Bundle Size (min+gzip)
25.6KB
Not Tree-Shakeable
rem

remixml

Remixml: XML/HTML-like macro language/template engine

License Icon
License: (ISC OR GPL-3.0)
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
1Performant
GitHub Stars
N/A
Weekly Downloads
85
Last Commit
8mos ago
Bundle Size (min+gzip)
6.25KB
Not Tree-Shakeable

squirrelly

Semi-embedded JS template engine that supports helpers, filters, partials, and template inheritance. 4KB minzipped, written in TypeScript ⛺

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
397
Weekly Downloads
11K
Last Commit
1yr ago
Bundle Size (min+gzip)
3.95KB
Tree-Shakeable
dot

dot

The fastest + concise javascript template engine for nodejs and browsers. Partials, custom delimiters and more.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
5K
Weekly Downloads
307K
Last Commit
1yr ago
Bundle Size (min+gzip)
1.52KB
Not Tree-Shakeable
vas

vash

Vash, the 60 billion double-dollar template-maker. Razor syntax, for JavaScript templates

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
519
Weekly Downloads
2K
Last Commit
2yrs ago
Bundle Size (min+gzip)
12.5KB
Not Tree-Shakeable