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.
[Documentation][doc] · Playground · [Setup guide][setup] · [Contributing][contribution]
Try the online playground.
import { Liquid } from 'liquidjs'
const engine = new Liquid()
const html = await engine.parseAndRender(
'Hello, {{ name | capitalize }}!',
{ name: 'liquid' }
)
//=> 'Hello, Liquid!'
Node.js
npm install liquidjs
Browser (jsDelivr UMD bundle)
<script src="https://cdn.jsdelivr.net/npm/liquidjs/dist/liquid.browser.min.js"></script>
CLI
npx liquidjs --template 'Hello, {{ name }}!' --context '{"name": "Liquid"}'
See the [setup guide][setup] for partials, layouts, caching, and other options.
Products and projects running on LiquidJS. Open a PR to add yours.
If you personally love LiquidJS or it's benefiting your business, please consider financially support us via GitHub Sponsors. Special thanks to our sponsors!
<img src="https://images.opencollective.com/cartelli-emmanuel/avatar
$ claude mcp add liquidjs \
-- python -m otcore.mcp_server <graph>