Each example is a folder, run with just sluurp serve --public. The schema is applied on startup. Their code is in SluurpHQ/examples.
git clone https://github.com/SluurpHQ/examples
sluurp serve --public examples/todos/app--public DIR serves a folder as the app at / (pages, routes, islands, schema, hooks, agents). NAME=DIR mounts another app at /NAME/, so one server can run several.
docs-site/app is a landing page and its docs, built the way this site is. The landing page is a server-rendered .tsx route; the docs are Markdown, with the sidebar generated from frontmatter by a folder layout. Code is highlighted server-side, and JavaScript only loads for the one interactive island. It’s published as plain files with sluurp static:
sluurp static --public docs-site/app --out disttodos/app is a multiplayer to-do list with live cursors: a React component of about fifty lines, its data model in schema.json. useLive keeps the list current, and liveCursors shows everyone’s pointer.
This is the app itself, running here. Open the page in a second window to see edits and cursors sync.
sheet/app is a multiplayer spreadsheet in one React component, built on the registry’s Spreadsheet (bunx shadcn add @sluurp/spreadsheet). Each cell is a row in a collection, synced to every open browser with Sync. Changing a cell or a formula recalculates only its dependents. You see other people’s pointers and selections, and the cell they’re editing, in their colour. A cell someone is editing is locked to everyone else until they finish or leave.
Open this page in two windows and edit a cell:
Running it locally, add ?name=Ada to each window’s URL to tell the pointers apart.
react-bits/app uses React Bits’ Micro Slats, a React component, as it was published. It was added with one command, which wrote the component and installed the WebGL library it needs:
bunx shadcn add https://reactbits.dev/r/MicroSlats-TS-TWThe page sets its colour and gaps from registry controls, and a small React counter beside them keeps its own state. See Components.
server-components/app is a server-rendered .tsx page using the kit: an async component, a "use server" function called directly, and two islands. One calls the function from the browser; the other hydrates when scrolled into view.
blog/app is a blog built only on content: posts in English and French with their translations linked, tags, an Atom feed per language and a sitemap. One migration holds the collection, the content model and sample posts; two server pages (routes/[locale]/index.tsx and routes/[locale]/[slug].tsx) draw them, finished on the server for search engines and link previews. Posts are written, reviewed and published in the admin, or in an app with ContentEditor.
sluurp serve --public blog/app