Templates
The template gallery and the public playground.
Four ready-made decisions ship in the console — credit scoring, KYC screening, product pricing
and loan eligibility — as portable bundles (decision plus the tables it reads) in
apps/web/src/templates.
Import a template into a project
From the sidebar's Templates tab, each template card shows what it does, lets you preview the inputs and outputs, and lets you import it into the active project with a single click.
Nothing is published on import. If the template's key clashes with a decision already in the project, the import creates a copy under a new key rather than overwriting your work.
Each template can also be downloaded as a bundle (the same file shape as Import and export bundles).
The public playground
The same templates power a public playground at /demo, reachable without an account. It runs
the decision in the browser, on the embedded-engine path the runtime package wraps:
- the same
runFlowthe API calls, - the input model pushed onto the Input node,
- the constants as globals,
- a table port resolving the bundle's tables,
so no server, no database, and no session are needed. A visitor sees the decision, the reasons and the full path before signing up, and the page keeps working even when the API is down.
A test runs every template against the real engine and asserts the answer its card promises.