Skip to content

@denpa/sdk

import { DenpaClient } from "@denpa/sdk";
const denpa = new DenpaClient({ baseUrl: "https://denpa.ai", apiKey: "dk_…" });

The SDK is a thin, typed layer over the REST contract. It adds nothing the API does not do; it saves you the shapes.

ImportWhat
@denpa/sdkDenpaClient, types (Signal, PartnerChannel, …), StationsApi, programQuery
@denpa/sdk/reacthooks for React clients (useProgramClock, …)
@denpa/sdk/signalSignalModel and the signal threshold constants
@denpa/sdk/connectionDreambothSignal — the legacy reconnecting WebSocket client — and its event types (PrimeEvent, LeaderboardUpdate, SignalUpdate, ChatMessage, VolatilityUpdate); also re-exported from the root
  • baseUrl — the hub, https://denpa.ai, for market pages, binding, overlay, receipts, wire, situations, program.
  • DENPA_API_URL / DENPA_WS_URL — the Hono API service for the categorised feed, AURA and realtime.
  • Every read resolves to a well-formed empty value rather than throwing; render NO SIGNAL.

The SDK is a workspace package (packages/sdk, 0.2.0, private). There is no npm publish yet; standalone forks use the REST endpoints directly (Fork Zero is the reference). If you are asked to “wire the SDK” from outside the monorepo, use REST.