H
hemia-labs/unfol
An open-source generative UI engine for turning JSON specs into interactive views with your app’s own components and actions.
updated 2026-11-27
View on GitHub ↗Link checked 2026-11-28 · HTTP 200 · opens the vendor's own site
- Star count
- 0 ★ · hemia-labs/unfol · read from the GitHub search API · (checked 2026-11-28 20:00:45)
- Source
- read directly from its GitHub page · type: open-source project
- Harvest history
- first seen 2026-11-28 · last seen 2026-11-29 · seen 2× · listed by 2 sources
- Score
- score 203 · 2 sources · repo
FAQ (answers come from our records)
Who is it for?
We filed it under these tags: Open Source. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository
hemia-labs/unfol;first catalogued 2026-11-28;last seen 2026-11-29。There is no official certification or quality rating here — we record sources and dates only.README excerpt (English, untranslated) · Read the full README on GitHub →
# Unfol
Excerpted from the repository README (abridged)
Your components. Unfol’s engine.
Unfol is an open-source TypeScript runtime that turns JSON specifications into interactive views using your application's components and actions.
Write a spec by hand, generate it in an agent workflow, or reopen a saved spec with fresh data. Once mounted, the view handles interaction locally through registered actions.
## Status
The web runtime is an early prototype. It supports nested components, state and data bindings, registered actions, data patches, and independent view lifecycles. Run it from this workspace while the packages and API are being prepared for release. The first-party generator, Fevex integration, and npm publication are planned.
## Quick start
Use the Node.js version in .nvmrc and pnpm 10.33.1, as pinned in package.json.
bash
git clone https://github.com/hemia-labs/unfol.git
cd unfol
pnpm install --frozen-lockfile
pnpm dev
Open the playground and try these examples.
| Route | Example |
| / | Mount a heading and compose two headings in a Stack. |
| /consulta/ | Enter A-17 and run the registered order search action. |
| /dos-vistas/ | Search for A-17 and B-22 in independent views. |
| /pedidos/ | Filter sample orders by status. |
## Mount a view
Give your browser app a and run this example in a workspace package that depends on @unfol/runtime.
ts
import { createUnfol, defineComponent } from "@unfol/runtime";
const Heading = defineComponent({
props: { text: { type: "string" } },
mount({ props }) {
const element = document.createElement("h1");
element.textContent = String(props.text);
return { element };
},
});
const runtime = createUnfol({ components: { Heading } });
const view = runtime.mount("#app", {
schemaVersion: "1.0",
root: { type: "Heading", props: { text: "My orders" } },
});
Use view.unmount() when the host screen closes. The interactive search example shows how an input writes to state.query, a button dispatches a host action, and view.updateData() updates a table bound to data.orders.
## Repository layout
| Path | Responsibility |
| packages/core | TypeScript types, the versioned JSON schema, and validation. |
| packages/runtime | DOM mounting, bindings, action dispatch, data patches, and cleanup. |
| apps/playground | Vite host and runnable examples. |
| e2e | Playwright acceptance tests in Chromium. |
## Runtime behavior
Each mount copies its initial state with structuredClone. Supply cloneable values in state, including when overriding it in the mount options. The runtime resolves binding routes during mount and refreshes the components that use the changed keys.
If a component throws while rendering a data patch, updateData() propagates the error and the runtime pauses action dispatch for that view. A successful updateData() call retries the pending renders and resumes dispatch. Another mount cannot replace a view in the same container while a mount is already in progress.
Unfol is an open-source TypeScript runtime that turns JSON specifications into interactive views using your application's components and actions.
Write a spec by hand, generate it in an agent workflow, or reopen a saved spec with fresh data. Once mounted, the view handles interaction locally through registered actions.
## Status
The web runtime is an early prototype. It supports nested components, state and data bindings, registered actions, data patches, and independent view lifecycles. Run it from this workspace while the packages and API are being prepared for release. The first-party generator, Fevex integration, and npm publication are planned.
## Quick start
Use the Node.js version in .nvmrc and pnpm 10.33.1, as pinned in package.json.
bash
git clone https://github.com/hemia-labs/unfol.git
cd unfol
pnpm install --frozen-lockfile
pnpm dev
Open the playground and try these examples.
| Route | Example |
| / | Mount a heading and compose two headings in a Stack. |
| /consulta/ | Enter A-17 and run the registered order search action. |
| /dos-vistas/ | Search for A-17 and B-22 in independent views. |
| /pedidos/ | Filter sample orders by status. |
## Mount a view
Give your browser app a and run this example in a workspace package that depends on @unfol/runtime.
ts
import { createUnfol, defineComponent } from "@unfol/runtime";
const Heading = defineComponent({
props: { text: { type: "string" } },
mount({ props }) {
const element = document.createElement("h1");
element.textContent = String(props.text);
return { element };
},
});
const runtime = createUnfol({ components: { Heading } });
const view = runtime.mount("#app", {
schemaVersion: "1.0",
root: { type: "Heading", props: { text: "My orders" } },
});
Use view.unmount() when the host screen closes. The interactive search example shows how an input writes to state.query, a button dispatches a host action, and view.updateData() updates a table bound to data.orders.
## Repository layout
| Path | Responsibility |
| packages/core | TypeScript types, the versioned JSON schema, and validation. |
| packages/runtime | DOM mounting, bindings, action dispatch, data patches, and cleanup. |
| apps/playground | Vite host and runnable examples. |
| e2e | Playwright acceptance tests in Chromium. |
## Runtime behavior
Each mount copies its initial state with structuredClone. Supply cloneable values in state, including when overriding it in the mount options. The runtime resolves binding routes during mount and refreshes the components that use the changed keys.
If a component throws while rendering a data patch, updateData() propagates the error and the runtime pauses action dispatch for that view. A successful updateData() call retries the pending renders and resumes dispatch. Another mount cannot replace a view in the same container while a mount is already in progress.
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/hemia-labs-unfol/)
- Source
- github · https://github.com/hemia-labs/unfol
- Browse by field
- Open source
- Listed by
- 2 independent sources
- added
- today
More entries
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.