casset/docs
FeaturesOpen app
docs indexreference
00Overview01Thesis02Architecture03System reality04Roadmap05Investor brief06Technical brief07Full tech HTML08Casset Apps09Headless API10Playback11Audio pipeline12Commerce13Base anchoring14Hook system15Music video16Theming17Creator guide18Glossary
Headless APIDeployed · unsupported
QuickstartExamplesAPI ReferenceSDK
Advanced
React adapterStarter detailsError handlingRetries & timeoutsUse casesRequest IDs & safe loggingAPI versioningLocal sandboxLocal webhooksAvailability & limitationsFAQChangelogDesign principles
Headless API · Starter

Run the Headless React starter.

Start with exact mocks, a believable artist site, and no Casset credential.

Download casset-headless-react-v0.2.0-alpha.0.zip. The archive is immutable at this version; changing its bytes requires a package and starter version bump.

Install, test, and build

unzip casset-headless-react-v0.2.0-alpha.0.zip
cd casset-headless-react
pnpm install
pnpm test
pnpm build

The generated archive is designed for a fresh temporary directory. A package-registry connection is still required to install its ordinary Vite and React dependencies. The Casset packages themselves resolve from the vendored directories.

What the archive contains

Headless starter contents
PathPurposeSecurity boundary
src/React example with ready, empty, and failure states.Uses public contracts only.
vite.config.tsOptional local sandbox proxy.Reads the credential server-side and strips response cookies.
vendor/casset-apps-sdkExact @casset/apps 0.2 alpha source.Local file dependency; no registry resolution.
vendor/casset-reactExact @casset/react 0.2 alpha source.Depends on the vendored core package.
.env.exampleDocuments two blank sandbox variables.Contains no token or production identifier.
src/view.test.tsVerifies deterministic view-state derivation from mocked query results.No browser or external service required.

Developer kit facts

Headless React starter facts
QuestionAnswer
What it demonstratesA believable public Artist and Catalog site, exact mocks, typed failures, request-ID diagnostics, and an optional server-only proxy for the two local sandbox reads.
Where it runsAs a developer-owned Vite + React application outside Casset.
CredentialsNone in mocked mode. An optional one-time sandbox credential remains in Vite’s development server.
MockedYes by default, using the built-in aurora-fields SDK fixture and exact schemas.
Version0.2.0-alpha.0 for the starter, @casset/apps, and @casset/react.
Installpnpm install
Testpnpm test
Buildpnpm build
Known limitationsPublic v1 is deployed but unsupported for production use and may fail closed with 503. No production credential, production webhook delivery, private data, media, or playback control. Package installation still needs registry access.

Two operating modes

Starter operating modes
ModeInputWhat it provesWhat it does not prove
MockedExact local fixturesUI handling for public schemas and typed failuresDatabase access, deployment, or live Casset availability
Local sandboxLoopback Casset server + one-time credentialThe two credentialed Artist and Catalog reads, request IDs, and immediate revocation behaviorConsole actions, webhook delivery, replay, inspection, durable credentials, or production availability

The local Developer Portal separately rehearses registration, credential issuance, signed webhooks, replay, and sanitized inspection. Those console and webhook operations are not bundled into this starter.

Connect the local sandbox

  1. Copy .env.example to .env.local.
  2. Set a loopback Casset origin and the one-time sandbox credential.
  3. Run pnpm dev; Vite proxies same-origin sandbox requests.
  4. Replace the mock-only aurora-fields default with a published handle in that local database, such as connor where seeded. The initial sandbox request otherwise returns the normal privacy-preserving 404.
  5. Revoke the credential in the local Developer Portal to exercise InvalidCredential.
CASSET_SANDBOX_BASE_URL=http://127.0.0.1:3000
CASSET_SANDBOX_CREDENTIAL=<one-time-local-value>

Static build behavior

The credential is never compiled into browser code. The built static app has no server proxy and therefore runs against mocks unless you provide a separately supported public endpoint. The deployed public v1 routes are not such an endpoint: they are unauthenticated but unsupported for production use, may intentionally fail closed with 503 ResourceUnavailable, and carry no uptime or availability commitment.

Do not

  • Do not commit .env.local or copy a credential into frontend code.
  • Do not replace the vendored packages with unpublished registry dependencies.
  • Do not treat the sandbox credential as durable, remotely scoped, or production-capable.
  • Do not infer access to private artist data, media, or playback from a successful public read.

Continue with the quickstart or read availability and distribution truth.

© Casset 2026
Trust & PrivacyTerms