Use Node.js 24 for development and distribution. CI also verifies Node.js 22.12 or later in the 22.x series. Install the locked dependencies at the repository root.
npm ci
npm run devBefore submitting changes, run the same checks as CI.
npm run lint
npm run typecheck
npm test -- --run
npm run build
npm run check:sdk-distThe build writes the site to dist/, the offline application to dist/decodebox.html, and
the SDK to the distribution paths. Use npm run preview for
the site, or open the standalone file from disk. npm run build:sdk rebuilds the SDK alone.
The distribution check executes both module formats and verifies alias bytes and release hashes.
CI also loads every JavaScript entry point in Chrome and checks SHA-256 with the Java provider.
To run the browser check against a local preview, use the URL printed by Vite.
node scripts/check-sdk-browser.mjs http://localhost:4173/Add operations to the existing registry and supply operation-specific regression vectors.
Keep platform-dependent services in the runtime providers. Changes to public SDK functions
also need contract tests in src/sdk/sdk.test.ts and an API reference
update. Submit changes on a temporary branch targeting main.
Release Please manages the project version. The SDK's API major is independent of that version.
The Pages workflow builds from source, carries forward previous SDK releases and the configured
custom domain, and publishes generated files to the root of gh-pages. It stops if an existing
version directory would change. A changed release artifact needs a new engine version through
the normal release process. For tags that contain the SDK, the release workflow attaches
the matching checksum manifest. Production bundles and test output stay outside the source tree.