Integrations
HTTP Adapter
Communitynpm: @loop-engine/adapter-http
What it does
The @1.0.0-rc.0 package exports httpEventBus — a webhook-oriented EventBus that can emit loop lifecycle events to an HTTP endpoint. (A generic LoopStore over HTTP is not in this release surface.)
Adapter protocol
Expected backend endpoints:
POST /loops/:id/startGET /loops/:idPOST /loops/:id/transitionGET /loops/:id/events
Quick setup
-
Install
1npm install @loop-engine/adapter-http -
Create an
httpEventBusfor outbound webhook emission1import { httpEventBus } from "@loop-engine/adapter-http";23const events = httpEventBus({4 webhookUrl: "https:">//observability.internal/loop-engine/events"5});6"cmt">// Wire `events` with your `LoopEngine` / `InMemoryEventBus` composition in application code.7void events;
Note
If your backend is in the same process, implementing LoopStore directly is usually simpler than standing up the HTTP protocol.
Configuration reference
| Option | Type | Default | Description |
|---|---|---|---|
| baseUrl | string | required | Base URL for storage API |
| timeoutMs | number | 5000 | Request timeout |
| headers | Record<string, string> | — | Additional auth or routing headers |