Skip to Content
QuickstartConnect Your Application

Connect Your Application

Choose a KalamDB SDK and connect your application to the database you started in the quickstart.

Choose a KalamDB SDK

ApplicationStart hereThen learn
TypeScript or Node.jsInstall & connectLive queries
ReactTypeScript setupuseLiveQuery()
Rust serviceInstall & connectLive subscriptions
Flutter or Dartkalam_link setupOffline sync with kalam_sync

For TypeScript:

BASH
npm install @kalamdb/client
TS
import { Auth, createClient } from '@kalamdb/client'; const client = createClient({  url: 'http://localhost:2900',  authProvider: async () => Auth.jwt(accessToken),}); console.log(await client.query('SELECT CURRENT_USER()'));

accessToken is an access token obtained through your application’s authentication flow. See token authentication. Keep administrator credentials on the server; client applications should use the signed-in user’s token.

Common mistakes

The query runs as the authenticated user. If a USER table looks empty, confirm that the writer and reader use the same identity. Creating a table is an administrative operation; do it through your schema workflow.

Next step

Subscribe to table changes →

Reference: SDK compatibility.