Skip to content

Core concepts

This topic defines the vocabulary and relationships between the main runtime types — the same role as Angular’s Essentials topics that name the framework’s core building blocks.

omega-angular maps the Omega mental model to Angular: a shared channel for OmegaEvent, OmegaIntent objects for user/system requests, flows for feature orchestration, agents for reactions and IO, and a flow manager that ties routing of intents to whichever flows are active. For why this exists and when it pays off, read Vision & why Omega first.

Glossary

TermMeaning
ChannelBroadcast bus (OmegaChannel) — no replay; everyone subscribed sees each emission.
IntentRequest object (OmegaIntent) with a name and optional payload — handled by active flows.
FlowOmegaFlow subclass: implements onIntent and optionally onEvent for one feature id.
Active flowRegistered on OmegaFlowManager; receives intents and forwarded channel events.
AgentListens to all channel events and runs behavior rules → reactions (your code does HTTP/storage).
NamespaceOptional tag on events (OmegaChannelNamespace) to partition traffic on the same channel.
Wire nameStable string for event/intent names (constants or enums + helpers).

How the pieces relate

mermaid
flowchart LR
  UI[Components / templates]
  Mgr[OmegaFlowManager]
  Flow[OmegaFlow instances]
  Ch[OmegaChannel]
  Ag[OmegaAgent]

  UI -->|handleIntent| Mgr
  Mgr -->|onIntent| Flow
  Flow -->|emit events| Ch
  Ch -->|events| Mgr
  Mgr -->|onEvent| Flow
  Ch -->|events| Ag
  Ag -->|emit results| Ch
  • Intents enter through handleIntent only (not automatically from Router).
  • Events are broadcast: flows and agents both observe; the manager also forwards events to active flows’ onEvent.
  1. Views — trigger intents or subscribe to state; avoid embedding HTTP when ESLint rules are enabled.
  2. Flows (**/omega/*.flow.ts) — validation, orchestration, channel emissions.
  3. Agents + services — side effects: REST, storage, analytics.
  4. omega-setup.ts — composition: provideOmega, router bridges, guards.

Across multiple features in one Angular codebase, the same vocabulary (intents, events, flows, agents) keeps reviews and onboarding predictable.

What’s next

TopicGuide
End-to-end sequenceData flow
Channel APIChannel & events
Intents & managerIntents, flows & manager
AgentsAgents & behaviors
Router integrationNavigation & Router
Exports cheat sheetAPI reference

Omega Angular — by Yeferson Segura. Documentation for the npm package and this repository.