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, Electron and Raycast. Fetch-based. In a browser, use a session token: keys only work from a server.
- 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.
@adenspace/sdk isn't on npm yet. Until it is, call the REST API with
fetch, as in Add Aden to your website.
At a glance
import { createAdenClient } from '@adenspace/sdk'
const aden = createAdenClient({ apiKey: process.env.ADEN_API_KEY })
// Fully typed: path, query, and response all inferred
const { data, error } = await aden.api.v1.tracks.get({
query: { teamId: '216', limit: 20 },
})
if (error) throw error
for (const track of data.data) {
console.log(track.title, track.cover_url_medium)
}Next
Was this helpful?