Home / Engineering / Typed SDKs generated from OpenAPI
Typed SDKs generated from OpenAPI
JavaScript, TypeScript and Python clients for API v1, generated from the OpenAPI 3.1 document with every operation typed from a real answer, tested against the live API.
Updated 21 Nov 2026
Files
| File | Size | SHA-256 |
|---|---|---|
kolaboro-v1.d.ts | 16 KB | bd13e00b02778866… |
kolaboro-v1.mjs | 6.7 KB | 8ef944a04a432ab8… |
kolaboro_v1.py | 12 KB | 9cd14d87db2203a0… |
test-v1.mjs | 2.6 KB | dd3ae295a769bd41… |
test_v1.py | 2.7 KB | acca17964674295f… |
JavaScript or TypeScript
import { KolaboroV1 } from 'https://kolaboro.com/sdk/v1/kolaboro-v1.mjs';
const k = new KolaboroV1({ verify: true }); // checks the Ed25519 signature of every answer
const p = await k.getProject({ slug: 'amani-melasti' });
const hits = await k.find({ q: 'proyectos en Dubái', lang: 'es' });
const proof = await k.getInclusionProof({ project: 'amani-melasti' });
console.log(p.name, hits.count, proof.tree_head.root, k.last.signature);Python
# curl -O https://kolaboro.com/sdk/v1/kolaboro_v1.py
from kolaboro_v1 import KolaboroV1
k = KolaboroV1()
p = k.get_project(slug='amani-melasti')
d = k.list_deltas()
print(p['name'], d['entries'][-1]['counts'])Tests against the live API
| Client | Operations passed | Run | Result |
|---|---|---|---|
| JavaScript (Node v22.23.4) | 22/22 | 21 Nov, 08:58 UTC | yes |
| Python 3.13.18 | 22/22 | 21 Nov, 08:58 UTC | yes |
Method
/open/sdk-gen.py fetches one live answer of every v1 endpoint, infers its JSON schema two levels deep and writes the operations into /api/v1/openapi.json. Before this, that document listed no paths at all. The same script then writes the clients and their tests: nothing in them is edited by hand.
The JavaScript client keeps ETags and answers 304s from its cache, and with verify: true checks the Ed25519 signature of every answer against /.well-known/kolaboro-keys.json. The Python client needs no packages. Both test files call every operation once and check the fields its schema requires.
- /api/v1/openapi.json OpenAPI 3.1
- /open/sdk-gen.py Python
- /sdk/v1/SHA256SUMS SHA-256
SDK 0.1.0 for /api/open (hand-written, kept) · API v1 playground