Skip to content

Compatibility ​

Check which versions Golem supports and which APIs stay stable.

Supported versions ​

RequirementVersion
Node.js>=22.15.0
TypeScript>=7.1.0-0 <8 (7.1.0-beta and newer)
NestJS^11.0.0 (@nestjs/common)
OpenAPI input documents3.1, 3.2
OpenAPI output (openapiVersion)3.2.0 (default) or 3.1.2

Every build tool is supported on TypeScript 7.1+ (Build tools).

OpenAPI feature support depends on the document version and generation profile (OpenAPI support).

Windows ​

Windows support is best effort. Golem makes no promise for Windows. When you report a problem on Windows, we fix it.

Stability and public API ​

The configuration format (version: 1) and the public subpaths of @exprtlabs/golem follow semver from 1.1.0. The runtime API page lists the public subpaths.

  • Extension API: generator-api is the contract of an extension generator package. It follows semver, and the package keeps its own version.
  • A path that starts with internal/ may change in any release. Do not import it. Generated files import runtime helpers from such paths, so each built-in generator package needs the exact version of @exprtlabs/golem (Runtime version).

TypeScript resolution ​

Golem uses the typescript package that resolves from the directory of the tsconfig that your golem.yaml names. The golem command and every build tool look there, wherever the process runs from. The build tools are the Vite and esbuild plugins and the Node loader. Every lookup falls back to the copy beside Golem.

Set GOLEM_TYPESCRIPT_ROOT to a directory to use the typescript installed there instead. It overrides every project. Library use outside a build tool looks in GOLEM_TYPESCRIPT_ROOT, or in the current directory when the variable is not set.

A process loads one TypeScript. A build tool fails when it opens a second project whose typescript is a different install. The message tells you to run one build tool for each TypeScript install. Projects that share one install, through a link or a hoisted node_modules, can open in one process.

A typescript version outside the range in the table fails at load:

text
golem supports TypeScript 7.1+; found <version> at <path>.

The project and Golem must resolve one TypeScript 7 install. When they differ, loading fails:

text
golem loads TypeScript 7 (<version>) from <path> but the project uses <version> at <path>; install one TypeScript 7 for both.

When neither the project nor Golem has typescript, a command that needs the compiler fails with golem needs TypeScript 7.1+ installed in <directory>.

Defaults ​

  • Validation and exact are enabled by default. allowAny is disabled by default (which jobs each flag covers). MobX is off until the openapi-ts block turns on the mobx extension.
  • An individual IObject or IModel can override exact, allowAny and validation.
  • Callback and webhook payloads are generated as types, like any other SDK type. The SDK has no handler for them: your application receives the request. An app model over a payload type converts it like any SDK type: in golem mode with the limits of the SDK, in standalone mode without them.
  • Response links are emitted as metadata. Clients do not follow them automatically.