🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@intent-driven/engine

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@intent-driven/engine

Intent-Driven Frontend — engine: Φ-lifecycle, validator, ruleEngine, timeEngine (experimental)

latest
Source
npmnpm
Version
0.5.0
Version published
Maintainers
1
Created
Source

@intent-driven/engine

Status: experimental (0.1.0) — API может меняться до 1.0.

Φ-lifecycle для парадигмы Intent-Driven Frontend: validator, ruleEngine, timeEngine. Доменно-агностичный; транспорт (HTTP/SSE), персистентность (SQLite/Postgres/in-memory) и auth — на стороне host'а.

Usage

import { createEngine, createInMemoryPersistence } from "@intent-driven/engine";

const engine = createEngine({
  domain,
  persistence: createInMemoryPersistence(),
  clock: () => Date.now(),
  callbacks: {
    onEffectConfirmed(effect) { /* host → SSE */ },
    onEffectRejected(effect, { reason, cascaded }) { /* ... */ },
  },
});

await engine.hydrate();
const result = await engine.submit(effect, { viewer });

См. src/persistence/types.js для полного описания Persistence interface.

License

BUSL-1.1 (как @intent-driven/core).

Keywords

idf

FAQs

Package last updated on 09 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts