TypeScript code generator for Ecore models using emf.ts.
Ecore aligns with the OMG MOF/EMOF specification; .genconfig.xmi configuration files use OMG XMI.
- Generate TypeScript interfaces and classes from
.ecoremodels - Support for multiple generation modes (plain, decorator-based, EMF-style)
- REST client generation from Ecore models
- CLI tool for easy integration into build pipelines
- Configurable via
.genconfig.xmifiles
npm install @emfts/codegenThis installs the emfts-codegen CLI binary.
# Generate TypeScript code from an Ecore model
emfts-codegen generate -m model/my-model.ecore -c model/my-model.genconfig.xmi -o src/generated
# Initialize a new genconfig
emfts-codegen initimport { CodeGenerator } from '@emfts/codegen';| Registry | npmjs.com |
| Package | @emfts/codegen (public) |
| CLI binary | emfts-codegen |
| Build output | dist/ (ESM, tsc) — only dist is published (see files in package.json) |
| Source | https://github.com/eclipse-fennec/emf.ts.codegen (default branch main) |
| Project | Eclipse Fennec |
Releases are published to the npm registry under the @emfts scope.