Skip to main content

Client Libraries

ekoDB provides 6 official client libraries for multiple programming languages: Rust, Python, TypeScript, Go, Kotlin, and 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).

Next Steps

Need Help?