JSPM

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

Core domain model and schemas for Loop Engine

Package Exports

  • @loop-engine/core

Readme

@loop-engine/core

npm Apache-2.0 Loop Engine

Branded ID types, Zod schemas, and core domain types for Loop Engine.

Install

npm install @loop-engine/core

Quick Start

import { LoopIdSchema, LoopDefinitionSchema } from "@loop-engine/core";

const loopId = LoopIdSchema.parse("expense.approval");

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

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

License

Apache-2.0 © Better Data, Inc.