# LiquidJS

> A simple, expressive, safe and Shopify compatible template engine in pure JavaScript

Source: https://talira.ai/catalog/liquidjs-wzqmnt7q
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [libraries / templating](https://talira.ai/categories/libraries/templating), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Platforms: web, linux, macos, windows
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Plugins: yes
- Creator: Yang Jun (harttle)

LiquidJS is a [Liquid](https://talira.ai/catalog/liquid-97qqwka5.md) template engine for JavaScript, compatible with [Shopify](https://talira.ai/catalog/shopify-hwp8bjrz.md), Jekyll and GitHub Pages templates, that runs in Node.js, in browsers and from the command line, with [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md) types. It renders the same `{{ }}` and `{% %}` syntax as Ruby's Liquid, with partials, layouts and caching, and can be extended with custom tags and filters. It's the usual way to render Liquid templates outside Ruby, for example to preview in the browser what a Ruby server will render.

## Links

- Website: https://liquidjs.com
- GitHub: https://github.com/harttle/liquidjs
- Docs: https://liquidjs.com

## Problems it solves

- let customers edit their own email or page templates without running code on our server
- a safe template language for templates stored in the database
- render Shopify Liquid templates in Node.js
- preview a Liquid template in the browser exactly as the server will render it
- render Jekyll-style templates from JavaScript
- a template engine for JavaScript that doesn't allow arbitrary code
- render a template from the command line with JSON data

## Features

- Shopify, Jekyll and GitHub Pages compatible
- Node.js, browser and CLI
- TypeScript types
- partials and layouts
- template caching
- custom tags and filters
- online playground

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.59 out of 1.
Signals: maintenance 0.77, adoption 0.66, momentum 0.36, community 0.81, backing 0.20, extensibility 0.40.

- last commit 25 days ago
- 25 commits in the last 90 days
- latest release v10.30.1 26 days ago
- 1.9k GitHub stars
- 105 contributors
- accepts sponsorship (Github, Open Collective)
- created by Yang Jun (harttle)
- has a plugin system

## Alternatives

- [Liquid](https://talira.ai/catalog/liquid-97qqwka5.md): Safe, customer facing template language for flexible web apps
