KJDRAW / INSTALLATION
Installation
Choose the npm channel, runtime and import path that match your application.
Requirements
- Node.js 22 or newer for server-side and command-line applications.
- A modern browser with ES modules, Canvas 2D, WebAssembly and Web Crypto for browser products.
- npm, pnpm or another package manager that understands package exports.
KJDraw's core has no runtime npm dependencies. React and Vue are optional peer dependencies: install the framework your application uses when importing /react or /vue. Headless and plain TypeScript applications do not need either framework.
Release channels
| Intent | Command |
|---|---|
| Try the published release-candidate channel | npm install @kanjieteam/kjdraw@next |
| Check available version tags | npm view @kanjieteam/kjdraw dist-tags |
| Install a built local checkout | npm install /path/to/kjdraw/packages/kjdraw-sdk |
These source documents may describe APIs newer than the published next package. Check the resolved version with npm list @kanjieteam/kjdraw before using version-marked APIs. The npm latest tag is not a stable 1.0 release yet. For the documented candidate, clone the repository, run npm install && npm run build:runtime && npm run build:types there, then install its packages/kjdraw-sdk directory into your application. Pin an exact published version for reproducible builds.
Verify the installation
Run the packaged quickstart directly from a clean project:
node node_modules/@kanjieteam/kjdraw/examples/quickstart.mjs
A successful run prints JSON containing the installed SDK version, document ID and one created line. It needs no browser, model or API key.
Public imports
Use the root for the common SDK surface and subpaths when you want a smaller, explicit contract.
import { createKJDrawSDK } from '@kanjieteam/kjdraw'
import { createDXFFileAdapter } from '@kanjieteam/kjdraw/file/dxf'
import { KJDeploymentRegistry } from '@kanjieteam/kjdraw/deployment'
The API Reference lists every supported package entry and its public types.