Skip to main content

Client Libraries

ekoDB provides five official SDKs: Rust, Python, TypeScript, Go, and Kotlin. The TypeScript SDK is one npm package that also works from plain JavaScript. We strongly recommend using these libraries instead of making direct API calls, as they provide:

  • ✅ Type Safety - Strong typing and compile-time checks
  • ✅ Automatic Authentication - Handles token management automatically
  • ✅ Retry Logic - Automatic retries with exponential backoff
  • ✅ Rate Limit Handling - Respects rate limits and retry-after headers
  • ✅ Better Developer Experience - Intuitive APIs and comprehensive documentation
  • ✅ Connection Pooling - Efficient HTTP connection management
  • ✅ Error Handling - Structured error types and clear error messages

Choose Your Language​

Crates.io

cargo add ekodb_client

Resources:

Quick Start​

Here's a quick example using TypeScript:

import { EkoDBClient } from "@ekodb/ekodb-client";

// Create client
const client = new EkoDBClient({
baseURL: "https://{YOUR_SUBDOMAIN}.{ENVIRONMENT}.{PROVIDER}.ekodb.net",
apiKey: "your-api-key"
});
await client.init();

// Insert a record
const result = await client.insert("users", {
name: "John Doe",
email: "john@example.com"
});
console.log("Inserted:", result);
Complete Examples

See the guides below for complete examples in all supported languages (Rust, Python, TypeScript, Go, Kotlin, JavaScript).

The examples are the tested contract

The runnable examples are run against a live ekoDB server in every language (a few are offline checks and say so), so they show what works today. Before concluding ekoDB cannot do something, check them: see Verify against the examples.

Next Steps​

Need Help?​