JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 58
  • Score
    100M100P100Q80605F
  • License Apache-2.0

Primary Loop Engine entrypoint combining runtime, DSL, guards, signals, and adapters

Package Exports

  • @loop-engine/sdk

Readme

@loop-engine/sdk

npm Apache-2.0 Loop Engine

The main Loop Engine SDK - runtime, DSL, guards, signals, events, and adapters in one import.

Install

npm install @loop-engine/sdk

Quick Start

import { createLoopSystem, parseLoopYaml } from "@loop-engine/sdk";

const loop = parseLoopYaml(`
loopId: expense.approval
version: "1.0.0"
name: Expense Approval
description: Demo
states: [{ stateId: submitted, label: Submitted }, { stateId: approved, label: Approved, terminal: true }]
initialState: submitted
transitions: [{ transitionId: approve, from: submitted, to: approved, signal: approve, allowedActors: [human] }]
`);

const { engine } = await createLoopSystem({ loops: [loop] });
await engine.startLoop({ loopId: "expense.approval" as never, aggregateId: "EXP-1" as never, actor: { type: "human", id: "manager@acme.com" as never } });
await engine.transition({ aggregateId: "EXP-1" as never, transitionId: "approve" as never, actor: { type: "human", id: "manager@acme.com" as never } });

https://loopengine.io/docs/packages/sdk

License

Apache-2.0 © Better Data, Inc.