Description
LiquidJS is a Liquid template engine for JavaScript. Liquid is a templating language that Shopify and Jekyll use, and LiquidJS is compatible with those systems, so templates written for them can run in your own JavaScript code. It works in Node.js, in the browser and from the command line, and it has TypeScript types. The project describes templates as safe and fault-tolerant: they are parsed into a syntax tree and never evaluated with eval or new Function, so a template cannot run arbitrary JavaScript. It is written in pure JavaScript with no native bindings, and the builds are available on a CDN. The whole repository is written in TypeScript strict mode. The site has tutorials, documentation for tags and filters, an interactive playground, and an API reference. It supports streaming output. LiquidJS suits developers who want Liquid's familiar syntax in a JavaScript project. The source is public on GitHub under the harttle account, which includes the license.…
Highlights
- Shopify and Jekyll compatible Liquid syntax
- Safe parsing without eval
- Node.js, browser and CLI support
- TypeScript types and streaming output
Ratings & Reviews
No ratings yet
Be the first to rate Liquidjs.
People also visit

liquid-theme-standards
CSS, JavaScript, and HTML coding standards for Shopify Liquid themes
Liquidjs FAQ
What is LiquidJS?
A Liquid template engine for JavaScript, compatible with Shopify and Jekyll templates.
Is it free?
Yes. The source is public on GitHub, and the repository includes a license file.
How do I install it?
Run npm install liquidjs.
Is it safe to render user templates?
The site says templates are parsed to an AST with no eval or new Function, so they cannot run arbitrary code.
Does it run in the browser?
Yes. It runs in Node.js and in browsers, and the builds are on a CDN.
Where can I learn it?
The site has tutorials, tag and filter docs, a playground and an API reference.
What are the best Liquidjs alternatives?
Popular alternatives to Liquidjs include Liquid, Web Configs and Cosmjs. See all Liquidjs alternatives

