Skip to content

Demo mode

Confabulous supports a demo identity — a read-only, shared-cookie user account that anyone can log in as without credentials. Useful for showcasing the product (this is what powers demo.confabulous.dev).

Set a single environment variable:

Terminal window
DEMO_IDENTITY_EMAIL=[email protected]

When set, the demo user can sign in by visiting the login page — no password required. Their session is automatically impersonated, and write operations return a friendly “read-only” toast in the UI.

When unset, every demo-mode predicate short-circuits to today’s behavior — there’s zero overhead.

ActionDemo user
View their own sessions
View shared sessions
View public Trends and TILs
Upload new sessions
Share or unshare sessions
Change account settings

The demo cookie is HMAC-derived and shared across all visitors of the demo identity. The implementation enforces read-only at the middleware layer, not just the UI — see backend/internal/auth/demo.go for the canonical reference.