@aikoql/client
v0.3.0
Published
Aikoql — the TypeScript SDK for the agent-first knowledge database. Node + browser-compatible core, async/await, AsyncIterable streaming, AbortSignal, pool. Zero runtime dependencies.
Maintainers
Readme
@aikoql/client — TypeScript SDK
The first-party TypeScript client for the aikoql knowledge database: the canonical Database API (remember, get, query, traverse, hybrid search, context compile, prepare/execute) over the MCP transport, with async/await, AsyncIterable streaming, AbortSignal cancellation, and a connection pool. Zero runtime dependencies.
import { Client } from "@aikoql/client";
const client = (await Client.dial("127.0.0.1:9090")).withToken("s3cret");
// a server started with --tls-cert/--tls-key ({} for a public CA):
// await Client.dial("db.internal:9090", { tls: { ca: readFileSync("ca.pem") } })
const agent = await client.agent();
await agent.remember("person", { name: "ada" });
for await (const row of client.queryStream("MATCH person RETURN *")) { /* ... */ }
await client.close();npm install @aikoql/client- Runs on Node ≥ 24 (native type-stripping) with a browser-compatible core
- Tests:
AIKOQL_MCP_BIN=$PWD/target/release/aikoql-mcp node --test tests/ - License: Apache-2.0
