Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

ng-diagram-performance

Skill by synergycodes

Guides developers on keeping large ng-diagram editors fast, covering virtualization, batched updates, cheap node templates and measurement. It is for Angular developers working with ng-diagram.

  • Score 73
  • 593 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install ng-diagram-performance

Built from the published package, never by AI.

git clone --depth 1 https://github.com/synergycodes/ng-diagram /tmp/ng-diagram && mkdir -p ~/.claude/skills && cp -r /tmp/ng-diagram/skills/ng-diagram-performance ~/.claude/skills/ng-diagram-performance

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install ng-diagram-performance in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill is a guide for the ng-diagram Angular library. It explains how to keep large diagrams responsive: enabling and tuning virtualization with padding and idleDelay, batching changes into one update pass or one transaction, and keeping a single model instead of re-creating it. It also covers lighter node templates using OnPush and computed signals, minimap settings, and the debugMode option for measuring render cost.

The skill lists the effects of virtualization on the DOM, measurement, zoomToFit, ngDiagramHidden, the minimap and image export. It includes code examples, a table of symptoms with fixes, and version notes. It is written for Angular developers who build or maintain ng-diagram editors with hundreds or thousands of nodes.

Written from the project's SKILL.md and checked against it.

What it can do

  • Virtualization setupExplains how to enable virtualization with padding and idleDelay and re-initialize the model.
  • Batch updatesShows how to group many node changes into one updateNodes call or one transaction.
  • Cheap node templatesDescribes OnPush change detection and computed signals for node templates.
  • Minimap tuningCovers deferNodeUpdates and nodeStyle options for minimaps on large diagrams.
  • Performance measurementDescribes the debugMode logs and how to profile drag and pan in the browser.
  • Symptom troubleshootingMaps common slow-diagram symptoms to causes and fixes in a table.

What you need

  • ng-diagram library installed in an Angular project

Try asking

  • How do I turn on virtualization for my 2000-node ng-diagram?
  • Batch my ng-diagram position updates so the layout apply is faster.
  • Why does my ng-diagram minimap stop showing nodes after I enable virtualization?

Good to know

  • Virtualization is chosen at model init and cannot be switched with updateConfig alone.
  • zoomToFit is disabled when virtualization is enabled.
  • ngDiagramHidden is ignored under virtualization; use the model hidden flag.
  • The skill describes ng-diagram 1.4.0; newer APIs do not exist in older versions.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/ng-diagram-performance/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to ng-diagram-performance

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

ng-diagram-performance: common questions

When does ng-diagram need virtualization?

The source says the library is built for hundreds of nodes without virtualization. For more, turn on virtualization.

Can I toggle virtualization at runtime?

Not with updateConfig alone. The source says to change the config and re-initialize the model from plain data, because enabled is read at model init.

Why is my drag laggy in ng-diagram?

The source says heavy templates or middlewares run on every frame during drag. Use OnPush with computed signals and make middlewares return early.

How do I install ng-diagram-performance?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is ng-diagram-performance free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is ng-diagram-performance safe to use?

It scores 73 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to ng-diagram-performance?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

ng-diagram-performance Install

Add to stack

Loading.