Chimera-Framework
raw JSON → 0.0.94 verified Sat Apr 25 auth: no javascript maintenance
Chimera-Framework is a language-agnostic framework for standalone and distributed computing, written in Node.js. Version 0.0.94 is the latest stable release, with low release cadence (last commit in 2018). It uses a component-based approach where components can be written in any language or even be binary executables. Orchestration is done via CHIML, a YAML superset. Key differentiators: language-agnostic components, CHIML-based workflow definition, supports both standalone and distributed modes.
Common errors
error Cannot find module 'chimera-framework' ↓
cause Package not installed or incorrect import path.
fix
Run 'npm install chimera-framework' and ensure using import syntax.
error SyntaxError: Cannot use import statement outside a module ↓
cause Node.js is not configured for ESM.
fix
Add 'type': 'module' to package.json or use .mjs extension.
Warnings
gotcha Package uses ESM modules; require() will throw an error. ↓
fix Use import syntax or enable ESM in your project.
deprecated The CLI global command 'chimera' may not work with newer Node versions due to breaking changes in global package execution. ↓
fix Use npx chimera or run via import in a script.
gotcha Workflow execution is asynchronous; forgetting await may lead to undefined results. ↓
fix Always await chimera.run() or use .then().
Install
npm install chimera-framework yarn add chimera-framework pnpm add chimera-framework Imports
- default wrong
const chimera = require('chimera-framework')correctimport chimera from 'chimera-framework' - Chimera wrong
const { Chimera } = require('chimera-framework')correctimport { Chimera } from 'chimera-framework' - CLI
import { CLI } from 'chimera-framework'
Quickstart
import { Chimera } from 'chimera-framework';
const chimera = new Chimera();
const workflow = `
ins: name
out: output
do:
- |echo Hello, {name}! -> output
`;
const result = await chimera.run(workflow, { name: 'World' });
console.log(result); // "Hello, World!"