Angular diagram tips for building flow and node editors. Join us on Discord now.

NATIVE. FLEXIBLE. EXTENSIBLE.

Build Powerful Diagrams – Natively in Angular

Use Angular components for diagram elements, style with CSS, extend any behavior through middleware architecture.

What is ngDiagram?

ngDiagram is an open-source diagramming library built from the ground up for Angular 18+, with zero external dependencies. Unlike black-box solutions, it provides composable building blocks – nodes, edges, groups – with complete visibility and control over every component. You combine these primitives to create any diagramming interface your application needs.

Core Elements
  • Nodes with configurable ports
  • Edges with arrowheads
  • Nested groups
  • Smart edge labels 
  • Grid & dot grid backgrounds
Interactions
  • Drag & drop
  • Multi-select (box) 
  • Resize & rotate handles 
  • Copy & paste
  • Pan & zoom
  • Snapping nodes to grid
Extensibility
  • Custom node/edge components 
  • Middleware pipeline 
  • Lifecycle hooks 
  • Model adapter pattern
Performance
  • Signal-based change detection 
  • Spatial hashing (O(1) lookups)
  • Batch operations
  • Zero external dependencies
Developer Experience
  • CSS variables & themes
  • Context-driven services
  • Signal-based updates
  • Atomic state transactions
  • Customizable hotkeys

Applications You Can Create with ngDiagram

  • Industrial & Technical Schematics

    Build electrical circuits, P&ID diagrams, audio-visual system designs, and more with industry-standard symbols and validation rules.

  • Workflow Automation Builder

    Create drag-and-drop automation interfaces. Connect triggers and actions that non-technical users understand.

  • Organizational Charts

    Generate dynamic org charts from data. Expandable branches, searchable nodes, department-based styling.

  • Facility Management Systems

    Design interactive floor plans with IoT sensors. Track equipment status and visualize live data.

  • And more...

    Network topologies, mind maps, real-time dashboards, custom data visualizations – wherever you need interactive diagrams, ngDiagram delivers the building blocks.

Electronic circuit diagram showing resistors, capacitors, diodes, transformers, and an IC labeled TDA1083 connected with annotated voltage and ground points.Workflow diagram starting with an event-based trigger, checking client source, branching to confirm request or notify platform, and leading to a recurring customer decision.Diagram showing ownership links between entities Alpha Group Holding, Jordan Taylor, Novatek Holding NV, and Novatek Systems BV with percentages and addresses in Belgium.Digital floor plan interface indicating Wi-Fi and computer device locations in a home with sections for kitchen, bathroom, bedroom, and living room.Dark-themed software interface displaying flowcharts, data tables, and a global statistics dashboard with a 74.3% progress ring.

Get Started
in Under 5 Minutes

npm install ng-diagram

copy icon

Copy

pnpm add ng-diagram

copy icon

Copy

yarn add ng-diagram

copy icon

Copy

bun add ng-diagram

copy icon

Copy

View Documentation

Why ngDiagram?

Native Angular Components

Build diagrams with familiar Angular patterns. Components, services, dependency injection – manage every aspect without learning new syntax.

HTML & CSS First

Every node is DOM-based: inspectable, accessible, SEO-friendly. Apply your CSS, design tokens, and themes from day one.

code icon

Performance That Scales

Handles hundreds of nodes smoothly using signals, spatial indexing, and batch processing. Built for production, not just demos.

Gauge icon

Architecture Designed for Extension

Hook into any lifecycle with middlewares. Replace handlers, customize templates, and stay fully reactive with built-in signals. Works with any state management – no forks needed.

Git Branch icon

Developer Experience First

Full TypeScript support, Angular DI integration, atomic transactions. Built-in themes, keyboard shortcuts, and extensive documentation with examples.

Lightning bolt icon

Open Source & Community-Powered

Licensed under Apache 2.0. Shaped by community input and real developer needs for practical, production-ready features.

What Early Adopters Say

Just launched! Be among the first to shape ngDiagram's future.

Started testing this for work and lost track of time – spent 5 hours just playing around with it. Since it's built for Angular, I think even devs who never touched diagrams before can jump in and connect stuff pretty easily.

Adam Kowalski
Adam Kowalski
Senior Angular Architect

The best thing is it's truly Angular-native. Nodes are just regular Angular components with HTML and CSS, so you stick to what you know – no weird context switching. Makes onboarding way easier and maintenance less painful.

Emil Małńczak
Emil Małańczak
Senior Frontend Developer

ngDiagram gives you more control than other libraries. The middleware lets you override basically anything – try doing that with closed-source tools where you can't even peek under the hood.

Wojciech Krzesaj
Wojciech Krzesaj
Software Engineer 

Love ngDiagram?

You're in good company.

Add Your Star on GitHub

Join the Community

Get Help

Ask questions and get answers from maintainers and community.

Report Bugs

Help us improve by reporting issues on GitHub.

Share Ideas

Join our Discord to discuss features and share your use cases.

Open Source & Transparent Roadmap

Certificate icon

Apache 2.0 Licence

Everything we ship in the community edition – current features and roadmap items – stays free under Apache 2.0 with no relicensing.

Path icon

Public Roadmap

See what’s planned for the open-source edition: upcoming features, milestones, and status. Updated regularly –  check the roadmap here.

Arrows Clockwise icon

Up-to-Date

ngDiagram always stays compatible with the three latest Angular releases. We ship new versions frequently and respond to issues quickly.

Created by Diagramming Veterans

ngDiagram is developed by Synergy Codesa team with 10+ years of diagramming expertise who:

Built production diagram editors for Fortune 500 companies.

Delivered 150+ diagram solutions across manufacturing, automation, and analytics.

Co-organize Angular meetups and teach at bootcamps and universities.

ngDiagram carries a decade oflessons learned: what works in production, what developers actually need, and what separates prototypes from products.

Every API decision, every default behavior, every interaction reflects real-world experience. 

Design team photo