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 current release candidate | npm install @kanjieteam/kjdraw@next |
| Pin this documented release | npm install @kanjieteam/kjdraw@1.0.0-rc.3 |
| Install the stable channel | npm install @kanjieteam/kjdraw@latest |
| Install a local checkout | npm install /path/to/kjdraw/packages/kjdraw-sdk |
Use next for prereleases and latest for stable releases. Pin an exact version when builds must remain reproducible, and confirm the resolved version with npm list @kanjieteam/kjdraw.
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.