Foblex Flow
Introduction
Introducing Foblex Flow
Installation and Rendering
Angular Compatibility
Changelog
Roadmap
Errors and Warnings
AI Agents
Styling
Styling Overview
Mixins and Scoping
Tokens and Overrides
Styling Recipes
Concepts
Event System
Selection System
Managed Flow State
New
Large-Flow Performance
Containers
Flow
Canvas
Nodes
Node
Drag Handle
Group
Resize Handle
Rotate Handle
Connectors
Connector
New
Output
Deprecated
Input
Deprecated
Outlet
Deprecated
Connection Rules
Migrate to Unified Connectors
Connections
Connection
Create Connection
Connection Marker
Snap Connection
Connection Waypoints
Interaction
Drag and Drop
Auto Pan
External Item
Zoom
Selection Area
Control Scheme
Accessibility
Integration
Shadow DOM and Angular Elements
New
Helpers
Background
Magnetic Lines
Magnetic Rects
Line Alignment (Legacy)
Minimap
Use Cases
Angular Node-Based UI Library
Angular Node Editor Library
Angular Workflow Builder
Angular Diagram Library
Angular AI Agent Builder
Angular Flowchart Library
React Flow Alternative
ngx-graph Alternative
React Flow vs Foblex Flow
ngx-vflow vs Foblex Flow
Foblex Flow

Using AI Agents with Foblex Flow

Foblex Flow ships several channels that teach LLMs and AI coding agents the current API, so generated code matches the installed version instead of outdated training data or React Flow patterns.

In your project (recommended)

ng add @foblex/flow writes a marker-delimited Foblex Flow section into your workspace AGENTS.md. This is the canonical shared instruction block for tools that support AGENTS.md, and it points agents at the guide bundled inside the package:

  • node_modules/@foblex/flow/AI.md — verified API surface, hard rules, a minimal working setup, and a checklist of common silent failures.
  • node_modules/@foblex/flow/STYLING.md — runtime CSS classes and safe selector strategy.

Because Claude Code loads project instructions from CLAUDE.md, the schematic also ensures that the root CLAUDE.md contains an @AGENTS.md import. Existing CLAUDE.md content is preserved, and re-running ng add does not duplicate the import.

The bundled guide matches the installed package version, so agents can verify the API locally instead of relying on outdated examples. Re-running ng add refreshes only the managed AGENTS.md block and keeps both instruction files idempotent. Pass --skip-agent-rules to skip changes to both AGENTS.md and CLAUDE.md.

Already installed? Re-run ng add @foblex/flow; its dependency, theme, and agent-instruction updates are idempotent.

Hosted LLM docs

  • llms.txt — docs index in the llms.txt format.
  • llms-full.txt — a full curated LLM-readable reference covering core app-facing API tables, events, types, styling, and code examples. Point a custom agent, GPT, or RAG pipeline here.

MCP / Context7

The repository ships a context7.json, so Foblex Flow is indexed on Context7 — agents with the Context7 MCP server installed can resolve @foblex/flow docs on demand.

Diagnostics agents can act on

In dev mode the library reports misconfigurations with stable FFxxxx codes — an unresolved connection endpoint, a zero-height host, a connector outside a node — each linking to the errors reference with the fix. An agent iterating on console output self-corrects instead of guessing.

Verifying generated code

Use three separate checks for generated flows:

  1. Wait until (fFullRendered) fires on <f-flow> so the full render cycle has settled.
  2. Compare the node, group, and connection ids from flow.getState() with the expected graph.
  3. Fail on any FFxxxx console diagnostic; FF1001 identifies an unresolved connection endpoint.

getState() exports registered graph records; it does not by itself prove that connection endpoints resolved. These checks are cheap enough to run in e2e tests and agent verification loops alike.

Edit this page on GitHub
In this article