morphir-elm is an NPM package providing a CLI and Elm integration for the Morphir ecosystem (v2.100.0, active development, releases every few weeks). It parses Elm source code into Morphir IR (intermediate representation), enabling transpilation to Scala, TypeScript, and other languages, as well as visualization. Key differentiators: it bridges Elm's type system with FINOS's technology-agnostic Morphir format, supports both NPM and Elm package distribution, and includes a TypeScript SDK for structural equality and Maybe types. Alternatives include custom transpilers, but morphir-elm provides a standardised, multi-language pipeline.
npm install morphir-elmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a minimal Elm project, generates Morphir IR JSON via the CLI.
Use -f flag: morphir-elm make -f
Use Mise and Bun for building; Gulp scripts no longer available.
Monitor releases; update scripts to handle both old and new CLI.
Import from 'morphir-elm/ts-sdk/Basics' etc.
Use bun test instead of jest.
Ensure morphir.json exists in project directory with required fields.
Use import from 'morphir-elm/ts-sdk/...' or install the Elm package.
Use npx morphir-elm or install globally: npm install -g morphir-elm
Add -f flag: morphir-elm make -f
Check morphir.json sourceDirectory and ensure Elm files are placed correctly.