Skip to content

openapi-ng

Generate TypeScript models and Angular services from OpenAPI 3.x specs — fast, deterministic, Rust-powered.

Rust-powered codegen

The engine is a native binary loaded via NAPI-RS. The same input always produces identical output.

Angular-first output

Each operation comes with three flavors — .observable(), .resource(), and .request() — matching Angular’s current HTTP primitives.

Strict OpenAPI subset

A focused 3.x subset with clear diagnostics. No silent misgeneration.

Configurable naming

Tune method names and service grouping with template + regex rules, via YAML, JSON, or TypeScript config.

Thin, pass-through helpers

Generated methods build the request and forward every HttpClient.request / httpResource option through unchanged. The response reaches you untouched.

Terminal window
# pnpm
pnpm add -D @avsystem/openapi-ng
# npm
npm install -D @avsystem/openapi-ng
# bun
bun add -d @avsystem/openapi-ng
# yarn
yarn add -D @avsystem/openapi-ng

Requires Node.js 18+. Pre-built binaries are published for macOS, Linux, and Windows (x64 and ARM64), with a WASI fallback for other hosts. See Runtime & platforms.