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
- 🦀 Rust
- 🐍 Python
- 📘 TypeScript
- 📦 JavaScript
- 🟣 Kotlin
- 🔷 Go
cargo add ekodb_client
Resources:
- 📦 crates.io/crates/ekodb_client
- 📖 docs.rs/ekodb_client
- 💡 Client Library Examples
npm install @ekodb/ekodb-client
Resources:
- 📦 npmjs.com/package/@ekodb/ekodb-client
- 💡 Client Library Examples
npm install @ekodb/ekodb-client
Resources:
- 📦 npmjs.com/package/@ekodb/ekodb-client
- 💡 Client Library Examples
dependencies {
implementation("io.ekodb:ekodb-client-kt:0.27.0")
}
Resources:
- 📦 Maven Central
- 💡 Client Library Examples
go get github.com/ekoDB/ekodb-client-go
Resources:
- 📦 pkg.go.dev/github.com/ekoDB/ekodb-client-go
- 💡 Client Library Examples
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
- Installation Guide - Detailed installation instructions for each language
- Verify against the examples - Find the tested example for a topic before building a workaround
- Basic Operations - CRUD operations with client libraries
- GitHub Examples - 129 (client library & direct HTTP examples)
- API Reference - Direct HTTP API documentation
Need Help?
- 💬 Support: app.ekodb.io/support
- 📧 Email: support@ekodb.io