🧪Build a dApp on Nexus API
This tutorial is one continuous hosted-service consumer build. Each step calls the public REST/SSE boundary.
Receive a provider-issued key and store it safely
A scoped key held only by your server-side shell or relay
List resources, follow pagination, and inspect an error
REST calls the dApp can render
Open SSE, filter kinds, disconnect, and resume
A replayable live signal with a cursor
Paste one raw-HTTP relay and Run Watcher
A same-origin browser view with no browser key
Use page-local public types with fetch and EventSource
The same dApp in a typed React app
The architecture figure keeps the API key on the server side while the browser receives only the app's public response and event state. REST renders the live projection; SSE wakes the app to re-read and recover.
The sequence is the complete external trust boundary: the provider provisions access, your relay protects it, and the browser never receives or logs the credential. Cursor retention, reset behavior, keep-alive cadence, and duplicate delivery remain provider-specific; validate frames and follow the provider's /openapi.json or published stream policy. Start with Step 1, then keep the same cleanup boundary as you move through the shell examples.
Set a clearly provisional endpoint before starting:
When a response surprises you, use Nexus API Troubleshooting. For exact paths, scopes, status values, and envelopes, use the HTTP API reference.
Last updated

