Sample session · SHORE-1001

Explore the illustrative session

The illustrative session is operator-issued one seat at a time. One response never contains both seats, and the server secret is never embedded in browser code.

Operator steps

  1. In the server environment, set ALLOW_DEMO_OPERATOR=1 and DEMO_OPERATOR_SECRET to a private value of at least 24 characters. Leave both unset on a shared server. VERCEL_ENV=production or preview disables the route even if those values are present.
  2. Restart the local server so it reads the environment.
  3. Request one seat from your shell:
    curl -sS -X POST http://127.0.0.1:3010/api/demo/enter \
      -H "content-type: application/json" \
      -H "x-demo-operator: $DEMO_OPERATOR_SECRET" \
      -d '{"role":"A"}'
  4. Paste that JSON on the right and open the seat. A second browser needs a second request with {"role":"B"}.

Resetting the sample

Reset is also operator-only: curl -sS -X POST http://127.0.0.1:3010/api/demo/reset -H "x-demo-operator: $DEMO_OPERATOR_SECRET". It rewrites the illustrative session only. Sessions you created stay intact.

Open a seat

Session code SHORE-1001. The credential expires, is not a recovery key, and is never listed to other visitors.