Requires Node.js >= 22.
- Download sources
- Install yarn 4 via Corepack (bundled with Node.js).
corepack enablecorepack install(reads thepackageManagerfield inpackage.jsonand installs the pinned yarn version)
- Install dependencies.
yarn install
- Build the project using our yarn script.
yarn build
- Run the server and the live reload using our yarn script.
yarn dev. Examples will be available onhttp://localhost:8000/examples/index.html
Start coding
- Debug using your favorite browser dev tools. The sources will be available under the webpack source folder (for chrome dev tools). Every change in sources will trigger a rebuild with linter and basic tests.
Useful commands
yarn lint— lint sourcesyarn test:unit— run unit tests (Jest)yarn test:examples— run end-to-end tests (Playwright)yarn build:docs— generate API documentation (TypeDoc)
Prefix Helper
- T: correspond to TypeScript type (ex: TInkCanvasConfiguration, TStyle...)
- I: correspond to Ink with HTTPClientV2 (IWriterManager, IModel, IHistoryManager...)
- II: correspond to Interactive Ink with WebSocketClient (IIModek, IIHistoryManager, IITextManager...)
- InteractiveInkSSR: correspond to Interactive Ink Server Side Rengering with WebSocketSSRClient