JointJS is a JavaScript library for creating interactive diagrams and visual interfaces from SVG elements. Developers use it for diagramming, charts, and other browser-based visualizations.
Borrowing it
Nothing to install: this file belongs to clientIO/joint. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/clientIO/joint/master/CLAUDE.mdgit clone --depth 1 https://github.com/clientIO/jointWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/clientio/joint/claude-md)<a href="https://agentmods.dev/instructions/clientio/joint/claude-md"><img src="https://agentmods.dev/badge/instructions/clientio/joint/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/clientio/joint/claude-md"><img src="https://agentmods.dev/badge/instructions/clientio/joint/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01173 | $0.01173 |
| Opus 5.5 | $0.00469 | $0.00469 |
| Sonnet 5.5 | $0.00235 | $0.00235 |
| Haiku 4.5 | $0.00117 | $0.00117 |
Grade A, and why
joint CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
JointJS is a JavaScript/TypeScript diagramming library for building visual and no-code/low-code applications. It's a Yarn workspace monorepo with multiple packages.
Stack: Node 22.14.0, Yarn 4.18.0, TypeScript 5.8 (5.9 in joint-react),
Grunt (build), QUnit/Karma/Mocha/Jest (testing)
Common Commands
# Install dependencies
yarn install
# Build distribution files (runs Grunt)
yarn dist
# Run all tests (QUnit + Jest + TypeScript checks)
yarn test
# Run specific test types
yarn test-server # Server-side tests (Node.js)
yarn test-client # Client-side tests (Browser with Karma)
yarn test-ts # TypeScript type definition tests
# Linting
yarn lint # Check all packages
yarn lint-fix # Auto-fix errors
# Build bundles
yarn build
Running Single Tests
For joint-react Jest tests:
cd packages/joint-react
yarn jest --testPathPatterns="ComponentName"
Architecture
Monorepo Packages (/packages)
- @joint/core - Main diagramming library (MVC architecture, SVG rendering)
- @joint/react - React bindings and hooks (Rollup + esbuild, Storybook)
- @joint/layout-directed-graph - Graph layout algorithms
- @joint/layout-msagl - Microsoft MSAGL layout integration
- @joint/shapes-general - General-purpose diagram shapes
- @joint/eslint-config - Shared ESLint configuration
Core Library Structure (/packages/joint-core/src)
The library follows an MVC pattern:
mvc/- Base MVC components: Model, View, Collection, Events, Domdia/- Diagramming API built on MVC:Graph.mjs- Graph data structure and cell managementPaper.mjs- SVG canvas and rendering engineElement.mjs/ElementView.mjs- Diagram nodesLink.mjs/LinkView.mjs- Connections between elements
g/- Geometry library (points, lines, curves, polygons, matrices)V/- Vectorizer for SVG manipulationconnectors/- Link path strategies (line, curve, bezier, jumpover)routers/- Link routing algorithms (manhattan, orthogonal, metro)anchors/- Connection point anchors on elementshighlighters/- Visual highlighting mechanismslinkTools/,elementTools/- Interactive manipulation toolsshapes/- Built-in shapes (standard)layout/- Built-in layouts (port, port label)alg/- Graph algorithms (DFS, BFS, shortest path)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago Changed · -1 lines · -7 tokens per session ba57c4b2a46b
- 1mo ago Changed · -2 lines · -40 tokens per session 2b948210ef4c
- 2mo ago First seen · 122 lines · 1,220 tokens per session scan A c846690b9999
joint CLAUDE.md is an instructions file published in the GitHub repository clientIO/joint (5,398 stars, last pushed 2d ago), licensed MPL-2.0. It adds 1,173 tokens to every session, about $0.0047 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
joint CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| joint CLAUDE.mdclientIO/joint | Instructions file | 5.4k | 2d ago | MPL-2.0 | A | 1,173 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |