Shipping daily
Changelog →

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

1.0.0SDK version
22operations
2026-11-21spec built

Files

FileSizeSHA-256
kolaboro-v1.d.ts16 KBbd13e00b02778866…
kolaboro-v1.mjs6.7 KB8ef944a04a432ab8…
kolaboro_v1.py12 KB9cd14d87db2203a0…
test-v1.mjs2.6 KBdd3ae295a769bd41…
test_v1.py2.7 KBacca17964674295f…

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

ClientOperations passedRunResult
JavaScript (Node v22.23.4)22/2221 Nov, 08:58 UTCyes
Python 3.13.1822/2221 Nov, 08:58 UTCyes

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.

SDK 0.1.0 for /api/open (hand-written, kept) · API v1 playground

More engineering shipped 21 Nov 2026

Protect my purchase