Lingara API client libraries
Official client libraries for the Lingara API: generate
vocabulary lists, create lesson plans, hold tutor conversations, read your
usage, and draw, dry-run and activate canvases (client.canvases: listCanvases,
createCanvas, getCanvas, renameCanvas, saveCanvasDraft,
activateCanvas, dryRunCanvasPlan and the pageCanvases helper), and author,
activate and export stored dialogues (client.dialogues: listDialogues,
createDialogue, getDialogue, renameDialogue, saveDialogueDraft,
activateDialogue, exportDialogue and the pageDialogues helper), and plan
the next beats of a Procedural dialogue (planDialogue, beside the NPC turn
sendDialogueTurn; never retried, since every call spends one embed:play
unit), from your own code.
The libraries are pre-release: every version before 1.0.0 carries an
-alpha.N, -beta.N or -rc.N suffix, and every install line pins one.
Install
| Language | Package | Status | Install |
|---|---|---|---|
| TypeScript |
@lingara/api (npm) |
pre-release | npm install @lingara/api@next |
| Rust |
lingara (crates.io) |
pre-release | cargo add lingara@<version> |
| Go | github.com/Spinning-Cat-Studios/lingara_api_clients/go |
pre-release | go get github.com/Spinning-Cat-Studios/lingara_api_clients/go@v<version> |
| Java |
com.getlingara:lingara-java (maven.getlingara.com) |
pre-release | implementation("com.getlingara:lingara-java:<version>") |
| Kotlin |
com.getlingara:lingara-kotlin (maven.getlingara.com) |
pre-release | implementation("com.getlingara:lingara-kotlin:<version>") |
| Ruby |
lingara (RubyGems) |
pre-release | gem install lingara -v <version> |
| PHP |
spinningcatstudios/lingara (Packagist) |
pre-release | composer require spinningcatstudios/lingara:<version> symfony/http-client nyholm/psr7 |
The released libraries are the ones languages.toml lists. Every release
publishes them all at one version, and each release's notes name the exact
version to pin. Each library's own README covers the rest of its setup (the
https://maven.getlingara.com repository block the JVM libraries need beside
the dependency, the PHP HTTP client).
What is here
-
spec/openapi.json— the Lingara API's OpenAPI 3.2 document, withversions.tomland the frozen versions underspec/versions/.spec/SOURCEnames the commit it was taken from. -
spec/generator/— the generator view of that document, in OpenAPI 3.1 and 3.0. No mainstream generator reads 3.2, so the four event-stream operations are lifted into named, discriminated unions and listed underx-lingara-streams, and everything else is downconverted. The view is an input to code generators only; the API servesspec/openapi.json. -
tools/spec-codegen/— the Rust tool that writes the view. It refuses any construct it cannot express rather than approximating it.
Building
make help # every target
make spec-view # regenerate spec/generator/
make check-publishable # the view is current (what CI runs)
cargo test --workspaceLicence
MIT — see LICENSE.