⬡ Docs → SDKs

SDKs & Client Libraries

Type-safe clients generated from your schema. The SDK matches your collections exactly — change a field, the SDK updates on your next generate.

TS
TypeScript SDK
Works in Node.js, browsers, SvelteKit, Next.js, and Deno
Stable
# Install
npm install @codenx/sdk

# Usage
import { CodeNx } from '@codenx/sdk'

const client = new CodeNx({
  apiKey: process.env.CODENX_API_KEY,
  baseUrl: 'https://api.myapp.codenx.com'
})

// Fully typed — intellisense knows your collections
const products = await client.products.list({
  filter: { status: 'active' },
  sort: '-created_at',
  limit: 20
})

// Semantic search
const results = await client.products.search('handcrafted jewellery')
Py
Python SDK
Sync and async (asyncio) support. Pydantic models generated from your schema.
Stable
# Install
pip install codenx

from codenx import CodeNx

client = CodeNx(api_key="cnx_live_xxx", base_url="https://...")

# Sync
products = client.products.list(filter={"status": "active"})

# Async
async with CodeNx(...) as client:
  products = await client.products.list()
OA
OpenAPI Spec
Your complete API spec — always in sync. Generate a client in any language.
Auto-generated

The OpenAPI 3.1 spec is served at /api/openapi.json and the interactive Swagger UI is available at /docs on your deployed app. Use it to generate clients for Go, Ruby, Swift, Kotlin, or any other language with openapi-generator.

# Generate a client in any language
npx @openapitools/openapi-generator-cli generate \
  -i https://myapp.codenx.com/api/openapi.json \
  -g typescript-fetch \
  -o ./src/generated/api
📱
React Native SDK
Type-safe native mobile client generated from your schema.
Q2 2025
🦋
Flutter SDK
Dart client with null safety and full collection support.
Q3 2025
🐹
Go SDK
Idiomatic Go client with context and error handling.
Planned