@business24-online/template-builder
v1.0.3
Published
Visual form builder for creating Liquid-based templates. Design schemas visually, preview forms in real-time, and generate template projects.
Maintainers
Readme
@business24-online/template-builder
Visual form builder for creating Liquid-based templates. Design schemas visually, preview forms in real-time, and generate template projects.
Install
# From npm registry (recommended)
npm i -g @business24-online/template-builder
# From GitHub
npm i -g git+https://github.com/business24-online/template-builder.git
# From local directory
git clone https://github.com/business24-online/template-builder.git
cd template-builder
npm i -g .
# Try without installing
npx @business24-online/template-builder devCommands
template-builder <command>
Commands:
dev [name] Start dev server for a template
generate Create a new template from samplestemplate-builder generate
Creates a new template project from starter samples.
template-builder generate
# Enter a name when promptedtemplate-builder dev
Starts a dev server with a live preview and visual builder UI.
# Pick from a list
template-builder dev
# Or specify a template directly
template-builder dev my-templateOpens two URLs:
- Template preview —
http://localhost:4001(your template rendered with form data) - Builder UI —
http://localhost:4001/template-builder/(visual form designer)
How it works
- Run
template-builder generateto scaffold a new template from samples - Run
template-builder dev <name>to start the dev server - Open the builder UI to design your form schema (add fields, containers, sections)
- Fill out the form preview to save data
- Your template's HTML renders the form data using Liquid variables
The builder lets you create input fields (text, email, select, file, etc.), view fields (labels, paragraphs, images), and repeatable container sections — all through a visual drag-free interface.
Documentation
See docs/index.md for the full reference on schema.json, .formdata.json, and Liquid template syntax.
