@enginehq/core
v0.1.2
Published
EngineJS core runtime primitives: DSL registry, ORM adapter, pipelines, workflows/outbox, RLS/ACL utilities, and engine bootstrap.
Readme
@enginehq/core
EngineJS core runtime primitives: DSL registry, ORM adapter, pipelines, workflows/outbox, RLS/ACL utilities, and engine bootstrap.
Status: Technical Preview (v0.1.2) — Active development; APIs may change.
Install
npm i @enginehq/coreUsage
Create and initialize an EngineJS runtime:
import { createEngine } from '@enginehq/core';
const engine = createEngine({
app: { name: 'my-app', env: 'development' },
db: { url: process.env.DATABASE_URL!, dialect: 'postgres' },
dsl: { schemaPath: 'dsl/schema.json', fragments: { modelsDir: 'dsl/models', metaDir: 'dsl/meta' } },
auth: { jwt: { accessSecret: 'dev', accessTtl: '1h' } },
acl: {},
rls: { subjects: {}, policies: {} },
workflows: { enabled: true },
});
await engine.init();