@loomic/runtime
v0.1.5
Published
Core cross-platform runtime for the Loomic agentic app framework
Downloads
593
Readme
@loomic/runtime
Start here. This is the core of the Loomic framework.
The cross-platform agentic runtime that powers the run loop: signal intake → context assembly → AI planning → governor approval → tool execution → UI composition. Works in any JavaScript environment (React Native, Node, web).
What it does
createAgenticRuntime(config)— the single factory that wires everything togetherToolRegistry— register typed tools the agent can callSignalQueue— async ingestion of signals (user actions, lifecycle events, etc.)UIComposer— translates agent plans into incremental UI operationsGovernor— enforces policies, budgets, and approval rules before executionJournal— structured event log of every run-loop cycleProviderRouter— routes between cloud and local AI providers
Install
npm install @loomic/runtime @loomic/typesMinimal setup
import { createAgenticRuntime } from '@loomic/runtime';
import { createOpenAIProvider } from '@loomic/openai';
const runtime = createAgenticRuntime({
provider: createOpenAIProvider({ apiKey: process.env.OPENAI_API_KEY }),
});
await runtime.start();See @loomic/react-native to connect the runtime to your React Native app.
