Codeboard.
Start here

Installation

Codeboard is published as codeboard-studio on npm. One package provides the JavaScript/TypeScript library and the codeboard CLI. Install Node.js 22.22 or later and npm first. No npm account is needed to install the public package.

Install the CLI

Code
npm install -g codeboard-studio
codeboard --version

The npm package supplies both the CLI and library. See runtime requirements for native rendering and optional media tools.

Create your first drawing

Choose a working folder for your artwork:

Code
mkdir my-film
cd my-film
codeboard init scene.ts
codeboard run scene.ts

Continue with the quickstart. The CLI resolves the library for authored scripts, so a global installation does not require a dependency in every artwork folder.

Install in a project

For a library dependency or a project-specific CLI version:

Code
npm install --save-exact codeboard-studio
npx codeboard init scene.ts
npx codeboard run scene.ts

Commit package.json and package-lock.json; use npm ci in CI or on another machine. Use npx codeboard in place of codeboard throughout these guides when using a local installation. npm scripts can call codeboard directly because npm adds the project's binaries to PATH.

JavaScript modules can import the installed library directly:

Code
import { StoryboardProject } from 'codeboard-studio';

A global installation alone does not make imports available to plain node scripts. Either install locally or run the script through codeboard run.

Pin, update, or uninstall

Select a specific version by adding it to the package name, using npm install -g codeboard-studio@<version> with the version required by your project.

For a global CLI:

Code
npm outdated -g codeboard-studio
npm install -g codeboard-studio@latest
npm uninstall -g codeboard-studio

For a project dependency:

Code
npm outdated codeboard-studio
npm install --save-exact codeboard-studio@latest
npm uninstall codeboard-studio

Review and commit lockfile changes when updating a project. npm manages updates. Uninstalling the package leaves artwork in your working folders intact.

Connect your coding agent

Install the Codeboard skills through your agent host. Plugin/skill discovery follows the host's installation mechanism; npm installs the engine and CLI. Install the npm package in the environment where the agent executes commands, including remote containers or CI runners.

Runtime requirements

The same npm package is used across operating systems. Availability depends on the actual runtime and dependencies, not a separate Codeboard installer.

OperationRequirements and environment differences
CLI and authored scriptsNode.js 22.22 or later. Use codeboard run for the CLI's library resolution.
Drawing and PNG renderingNative skia-canvas and sharp dependencies must install for the target OS and architecture. Allow their install scripts and downloads.
Editable .cboard storageNode's SQLite runtime and filesystem access. File permissions, locks and link handling depend on the environment.
Movie encodingFFmpeg with the encoder required by the export. Put it on PATH, set FFMPEG_PATH, or supply the executable path.
Built-in audio decodingFFmpeg and ffprobe; set FFPROBE_PATH if ffprobe is not on PATH. Supported source media depends on their installed build.
Text renderingFonts available to the renderer. Font availability and rendered pixels can differ between machines.

Drawing, PNG rendering and saving projects do not require FFmpeg or ffprobe. Check media tool startup with:

Code
codeboard capabilities --probe-dependencies

This reports runtime identity and dependency startup availability. It does not certify installed codecs or guarantee that a particular export will succeed. See export and troubleshooting for operation-specific requirements.

On this page