SDK
SDK Overview
Official type-safe TypeScript SDK for the Aden API.
@adenspace/sdk is a thin, fully-typed wrapper around the Aden HTTP API. It's
built on Eden Treaty, so every
request, response, and query parameter is inferred directly from the server
— there is no code generation step.
Why use the SDK
- End-to-end types. Autocomplete on paths, bodies, and responses.
- Works anywhere. Node, Bun, Deno, edge runtimes, browsers, React Native, Electron, and Raycast. Fetch-based.
- Auth-agnostic. API keys for backend code, Supabase session tokens for user-facing apps, or a custom token provider.
- Tiny. Ships as ESM, tree-shakeable.
At a glance
import { createAdenClient } from '@adenspace/sdk'
const aden = createAdenClient({ apiKey: 'aden_live_xxx' })
// Fully typed — path, query, and response all inferred
const { data, error } = await aden.api.v1.tracks.get({
query: { teamId: 123, limit: 20 },
})
if (error) throw error
for (const track of data) {
console.log(track.title, track.cover_url_medium)
}