← All examples

Runs locally

Notes

Shows how an action defined once is attached to each row, authorized per request on the server, and reported honestly when it is refused. It uses synthetic accounts and data, in Lit and React views built from one contract.

Where it works

Hosts and the evidence recorded for this example. “Not verified” means no run is recorded, and says nothing either way about support.
HostStatusEvidence
Claude webVerified in recorded runsExercised with the same React view and action runtime: Archive displayed the server’s result and a fresh list reflected the archived notes. Source for Claude web
ChatGPT webVerified in recorded runsExercised with a React view and the shared action runtime: Mark read changed state locally and Archive used the authenticated server, including a refusal before the request. Some first card loads needed Try again. Source for ChatGPT web
Alexa+Not verifiedNot verified for this example. The SDK’s recorded Alexa+ simulator probes found in-card server calls did not complete, and it advises exposing consequential operations through the conversation. Source for Alexa+

Run it yourself

What you need

Run it locally through the demonstration

  1. From the SDK repository root, run npm ci and then npm run build:demo. This writes apps/lit-host/dist/demo.
  2. Inside that directory, run npm install --omit=dev and npm start, then open the address it prints.
  3. Choose Alice on the local host page, open Notes and press Archive on a note. End the notes session and try another Archive to see the prerequisite refuse it.
  4. The sign-in choices are fixed development credentials, not a production identity flow.

Source and tutorials

← All examples