Each example is a folder in the repository, served with sluurp serve --public and nothing else. Its data model is applied when the server starts.
--public DIR serves a folder as the app at /: its pages, routes and islands, and its schema, hooks and agents. Given as NAME=DIR, it serves another app beside it at /NAME/, so one server can run several apps.
Each example also runs straight from its address on GitHub, with nothing cloned by hand: Sluurp clones it into the current folder and serves it.
website/ is the site you are reading. Its landing page is a .tsx route drawn on the server; its docs are Markdown files, and a folder layout builds the sidebar from their frontmatter. Code is highlighted on the server, and islands wake only where something moves: the chart playground, the UI kit, the editable page. It is published with sluurp static.
sluurp serve --public https://github.com/SluurpHQ/sluurp/tree/master/websiteexamples/todos/app is a to-do list that everybody edits at once, with everybody’s cursor on it, in two files. The route declares the data model with export const schema and shows one island, islands/todos.tsx, which keeps the list with Sync and shows the cursors with sluurp/cursors.
Here it is, running in this page: the app’s own island, not a picture of it. Open this page in a second window and watch both lists, and each other’s cursors, stay in step.
sluurp serve --public https://github.com/SluurpHQ/sluurp/tree/master/examples/todos/appexamples/server-components/app is a .tsx page drawn on the server with the kit: an async component, a "use server" function called in place, and two islands. One island calls that function from the browser; the other wakes when it scrolls into view.
sluurp serve --public https://github.com/SluurpHQ/sluurp/tree/master/examples/server-components/appexamples/wiki/app is Pages as a whole app, in one file: nested pages, history, a graph of links, books and PDF export. It adds only sign-in, its words and a header.
sluurp serve --public https://github.com/SluurpHQ/sluurp/tree/master/examples/wiki/appexamples/components is the UI kit’s workshop: galleries of every component, the JSX runtime, TypeScript served as it is written, and benchmarks of the renderer. The browser tests for the kit run against it.
sluurp serve --public https://github.com/SluurpHQ/sluurp/tree/master/examples/components