Dillo example

Guestbook (Display)

See everything. Nothing to press.

What this demonstrates

The guestbook as a public display. Its notes live in their own database, separate from the neighborhood wall, and the page offers no way to write — no form, no inputs, nothing to press. That read-only quality belongs to this page, by design; the schema underneath still grants the owner edit, which is why the schema block below says exactly that. This is what a public display looks like — a lobby screen, a shared monitor, a link you send to people who just need to see.

How it works

The permissions are the app. This is the whole data model — schema.ts, the first of the app's three files (its import line, not shown, brings these names in from "create-dillo/schema"):

schema.ts
// The schema the live backend serves today (span2/live-schemas filing, re-verified at deploy).
export default schema({
  Message: table({
    text: string().min(1).max(500),
  }).permissions({ view: anyone, edit: owner }),
});

Try it

  1. Open the live demo
  2. Browse the notes on display
  3. Try to post something (there’s no way in, that’s the point)