@kitionstage/sdk
v0.1.1-stage.20
Published
The Kition SDK's TypeScript libraries in one package: embed editors, script documents, KDM, sync, kit editor and host, each a subpath (@kition/sdk/embed, @kition/sdk/script, ...).
Maintainers
Readme
@kition/sdk
The Kition SDK's TypeScript libraries in one package: embed Kition's kit editors in a page, script documents, the Kit Data Model, sync, and the kit editor and host, each a subpath. ES modules with type declarations, for Node and for bundlers. There is no root module: import a subpath.
npm install @kition/sdkimport { KitionEmbed } from '@kition/sdk/embed'
import { openDocument } from '@kition/sdk/script'
import { Replica } from '@kition/sdk/kdm'| Subpath | What it is |
| --- | --- |
| @kition/sdk/embed | Kit editors in any web page (KitionEmbed.mount); self-contained, so no bundler setup |
| @kition/sdk/embed/server | The embed server and its signed callbacks (/embed/server/callbacks), for Node only; the kition-embed-server command |
| @kition/sdk/sync | The kition-sync/1 client, with /sync/openToken |
| @kition/sdk/script | Documents by script: /script/node, /script/proxy, /script/kits and /script/kits/<kit> for each kit; /script/standalone for a page without a bundler |
| @kition/sdk/extensions | Kit extensions: their host, /extensions/runtime (with the built sandbox worker WORKER_RUNTIME), and the sandbox pages /extensions/sandbox.html and /extensions/panel.html |
| @kition/sdk/kdm | The Kit Data Model, read-only: a kit document's typed objects as its engine writes them |
| @kition/sdk/editor | The kit editor shell, with /editor/styles.css and /editor/workspaceTree; needs React and Kition Tessera |
| @kition/sdk/host | The Kit UI protocol host |
| @kition/sdk/dev-host | The development host, with /dev-host/check-ui-ids, /dev-host/mode-smoke and /dev-host/watch-page |
| @kition/sdk/protocol | The Kit UI protocol's types and messages |
@kition/sdk/kdm, /sync, /script and /extensions share their code, so an app that imports
several of them holds one KDM. @kition/sdk/embed and @kition/sdk/script/standalone are
self-contained instead: they import nothing, for a <script type="module"> page without a bundler
(/script/standalone registers every kit; its types are those of /script and /script/kits).
Each carries its own KDM, so an app with a bundler imports /script.
A host of extensions serves the sandbox and panel pages as static files: copy
node_modules/@kition/sdk/dist/lib/extensions/sandbox.html and panel.html (the exports
@kition/sdk/extensions/sandbox.html and /extensions/panel.html; in Node,
import.meta.resolve('@kition/sdk/extensions/sandbox.html')) into your public folder at build time,
and give their URLs to iframeSandbox and openPanelFrame.
Only @kition/sdk/editor needs React, React DOM and Kition Tessera (@kition/tessera): they are
optional peer dependencies, so install them beside it when you use the editor. A bundler that builds
a page from @kition/sdk/embed takes nothing of the editor.
The editor runs each document in a module worker: your bundler builds the worker (with Vite, set
worker: { format: 'es' }).
Documentation: https://developer.kition.ai/docs
Part of the Kition SDK
@kition/sdk is a package of the Kition SDK (its source), which lets you put Kition's editors in your product, and give the same files to your AI agent. Guides and reference: developer.kition.ai.
The Kition family
Kition is the open pro suite for AI: 16 kits, editors that people and AI agents use on the same files, and the products around them (all repositories).
| Product | What it is | Links |
| --- | --- | --- |
| Kition Desktop | The open pro suite for AI: 16 editors and an agent in one desktop app | GitHub · kition.ai |
| Kition Showcase | Sample files for every kit | GitHub · kition.ai/showcase |
| Kition SDK | Put Kition's editors in your product, and give the same files to your AI agent | GitHub · developer.kition.ai |
| kition command line | Install kits on demand and run them for your agent: npx @kition/cli | developer.kition.ai · Guide |
| Kition One | A self-hosted team workspace built on Kition's kits, with real-time co-editing | one.kition.ai |
| Kit Harness Protocol (KHP) | The open protocol between a kit and its host | GitHub · kitharness.org |
| Kition Tessera | The design system for kits | GitHub · tessera.kition.ai |
| Kition Universe | A 3D map of the kits and what they make | GitHub · universe.kition.ai |
| Kition Fonts | The open fonts the editors use | GitHub |
| Product line | Kits | | --- | --- | | Office | Note · Table · Board · Doc · Sheet · Slide · PDF · HTML | | Design | Photo · Vector · Layout · Design | | Media | Film · Motion | | Engineering | CAD · Scene |
License
Apache-2.0 (LICENSE).
