Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

🧪Build a dApp on Nexus API

Audience: A developer with a terminal, curl, and Node 18+ who wants a first working integration against the hosted Nexus API.

Goal: Configure a provider-issued key, read indexed resources, stream events, assemble a raw-HTTP Run Watcher, and port that consumer boundary to React.

This tutorial is one continuous hosted-service consumer build. Each step calls the public REST/SSE boundary.

Step
You do
You end up with

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