
Security News
Suno Breached via Shai-Hulud Worm, Leaked Code Exposes AI Music Scraping
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.
@antv/x6
Advanced tools
English | 简体中文
Official Documentation • Quick Start • Graph Examples • FAQ • Demo Template • Awesome X6
AntV X6 is a graph editing engine based on HTML and SVG, providing low-cost customization capabilities and out-of-the-box built-in extensions that make it easy to quickly build applications such as DAG diagrams, ER diagrams, flowcharts, lineage graphs, and more. We hope developers can use X6 to rapidly build various graph editing applications they need, making process relationship data controllable, interactive, and visualized.
As a professional graph editing and visualization engine, X6 has the following features:
event system that allows listening to any events occurring within the chart.10+ graph editing extensions, such as lasso selection, alignment lines, minimap, etc.MVC architecture, allowing users to focus more on data logic and business logic.You can install via package managers like NPM or Yarn.
# npm
$ npm install @antv/x6 --save
# yarn
$ yarn add @antv/x6
After successful installation, you can import the Graph object using import.
<div id="container" style="width: 600px; height: 400px"></div>
import { Graph } from '@antv/x6'
const graph = new Graph({
container: document.getElementById('container'),
grid: true,
})
const source = graph.addNode({
x: 300,
y: 40,
width: 80,
height: 40,
label: 'Hello',
});
const target = graph.addNode({
x: 420,
y: 180,
width: 80,
height: 40,
label: 'World',
});
graph.addEdge({
source,
target,
});
If everything goes smoothly, you will get a simple flowchart canvas as shown below.
# Install project dependencies and initialize build
$ pnpm install
# Start examples to view results
pnpm run start:examples
Thank you to everyone who has contributed to this project and all supporters! 🙏
MIT.
FAQs
JavaScript diagramming library that uses SVG and HTML for rendering
The npm package @antv/x6 receives a total of 38,059 weekly downloads. As such, @antv/x6 popularity was classified as popular.
We found that @antv/x6 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 72 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.

Security News
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.