SDK Generation

Auto-generate typed client SDKs from your project's database schema. Get ready-to-use TypeScript, Python, or Dart clients with full CRUD operations.

🔧

Schema-Driven Generation

SDKs are generated directly from your live database schema — types, models, and CRUD helpers are always in sync with your tables. No manual maintenance.

Supported Languages

TypeScript

Typed interfaces, async CRUD client, works with React, Next.js, Node.js

Python

Pydantic models, typed methods, works with FastAPI, Django, scripts

Dart

Dart classes with serialization, ideal for Flutter mobile apps

TypeScript SDK

GET /projects/{project_id}/sdk/typescriptTypeScript
// Generated output (example for a "users" table)

interface User {
  id: string;
  name: string;
  email: string;
  created_at: string;
}

class ZMeshClient {
  constructor(apiUrl: string, apiKey: string);

  users: {
    list(params?: { limit?: number; offset?: number }): Promise<User[]>;
    get(id: string): Promise<User>;
    create(data: Omit<User, 'id' | 'created_at'>): Promise<User>;
    update(id: string, data: Partial<User>): Promise<User>;
    delete(id: string): Promise<void>;
  };
}

Python SDK

GET /projects/{project_id}/sdk/pythonPython
# Generated Pydantic models + client

class User(BaseModel):
    id: str
    name: str
    email: str
    created_at: datetime

class ZMeshClient:
    def __init__(self, api_url: str, api_key: str): ...

    def list_users(self, limit=100) -> list[User]: ...
    def get_user(self, id: str) -> User: ...
    def create_user(self, data: dict) -> User: ...
    def update_user(self, id: str, data: dict) -> User: ...
    def delete_user(self, id: str) -> None: ...

Dart SDK

GET /projects/{project_id}/sdk/dartDart
// Generated Dart classes for Flutter

class User {
  final String id;
  final String name;
  final String email;
  final DateTime createdAt;

  User.fromJson(Map<String, dynamic> json) : ...;
  Map<String, dynamic> toJson() => ...;
}

class ZMeshClient {
  ZMeshClient(this.apiUrl, this.apiKey);

  Future<List<User>> listUsers({int limit = 100}) async { ... }
  Future<User> getUser(String id) async { ... }
  Future<User> createUser(Map<String, dynamic> data) async { ... }
}

API Reference

MethodPathDescription
GET/sdk/typescriptGenerate TypeScript client
GET/sdk/pythonGenerate Python client
GET/sdk/dartGenerate Dart/Flutter client