Foldkit Plus
The demos
Each is an example from the repository, built as static files. Those with a server run it in your browser, shared by every tab, so nothing you do leaves it. Open one, follow its steps, then read the file it names.
A blog studio and its site
Drafts beside the row, revisions, scheduled publishing and a page builder, with the public site rendered at build time.
Open the demoTry this
- Write As Wren, a writer, start a post. It saves as you type; a writer cannot publish.
- Publish Switch to Edda, an editor, open it and publish it.
- Read View the site as a visitor: only what was published is there.
- Build In Pages, open Home and build it from blocks; publish, then look again.
Read first: examples/cms/src/server/server.ts
Two devices, one registry
Two devices edit 10,000 products in a data grid, offline and in conflict, and agree once both are back.
Open the demoTry this
- Edit Change a price in Device A. It shows in Device B a moment later.
- Conflict Tick “Work offline” in Device B, edit the same price in both, then untick it. The later edit wins, and the device that lost says so.
- Reload Reload Device B while it is offline. Its edits are still waiting, and go when it is back.
Read first: examples/registry/src/domain.ts
Pages two tabs edit at once
Rich text two people edit at the same time, online or not, converging through one journal.
Open the demoTry this
- Share Open the demo in two tabs, and make a page in one: it appears in the other.
- Edit together Type in the page from both tabs; each sees the other’s typing.
- Reload Reload a tab: the page is read back from the journal.
Read first: examples/pages/src/app.ts
A todo list an agent can use
One application definition drives the view, the tools an agent calls, the document replicas share, and the policy the server enforces.
Open the demoTry this
- Share Add a todo, and open the demo in a second tab: it is there.
- Someone else Open it as Bob (add ?token=bob) and tick the todo: the first tab shows it ticked.
- Reload Reload a tab: what it shows is read back from the journal.
Read first: examples/todo-app/src/app.ts
A data grid over 100,000 rows
A grid that owns focus, selection, columns and the open editor, while the application owns every row.
Open the demoTry this
- Edit Pick a price and press Enter to edit it; one that is not a price, like 4.999, is refused.
- Copy Select a range with Shift and the arrow keys, and copy it into a spreadsheet.
- Arrange Open a column’s menu to pin or hide it, or drag its header to move it.
Read first: examples/data-grid/src/main.ts
This page is one too: rendered at build time with foldkit-ssr and styled with foldkit-mixins. Its source.