The SDK is developed and validated on Node.js 22+, and the local workflow is intended to work on Windows, macOS, and Linux.
git clone https://github.com/serverlessworkflow/sdk-typescript.git
cd sdk-typescript
npm installnpm run lint
npm run test
npm run build
npm run validate:packagenpm run lintchecks the Oxlint and Oxfmt baselines.npm run testruns the manual-code typecheck and Vitest.npm run buildcreates the distributable package underdist/.npm run validate:packagebuilds the package, runs package-shape validation, and smoke-tests the packed tarball.
The SDK tracks generated files under src/lib/generated/. These files are derived from the Serverless Workflow schema and should not be edited by hand.
Use the following command when the schema or generator logic changes:
npm run codegenTo verify that generated files are up to date, run:
npm run codegen:checkThe tooling architecture and generator rationale are documented in tools/README.md.
The package ships browser examples for both the native ESM build and the standalone UMD bundle. To build the package and open the browser examples locally:
npm run serveIf you prefer a hosted environment, Gitpod support is still available: