Loop Engine

Packages

@loop-engine/adapter-http

@loop-engine/adapter-http sends runtime events to an outbound webhook endpoint.

Install

1npm install @loop-engine/adapter-http

Event bus factory

1httpEventBus(options: {
2 webhookUrl: string
3 headers?: Record<string, string>
4 retries?: number
5}): EventBus
  • emit() posts JSON payloads to webhookUrl.
  • Retries default to 3, with exponential backoff.
  • subscribe() throws because this adapter is push-only.
1import { httpEventBus } from "@loop-engine/adapter-http"
2 
3const bus = httpEventBus({
4 webhookUrl: "https:">//hooks.example.com/loop-events",
5 headers: { Authorization: "Bearer webhook-token" },
6 retries: 3
7})

Delivery model

Use this adapter for outbound integrations (webhooks, automation tools, monitoring sinks) where event replay is handled outside Loop Engine.