joint: Instructions file for Claude Code

CLAUDE.md

joint CLAUDE.md is an instructions file for Claude Code from clientIO/joint. It costs 1,173 tokens per session, scanned A, original, MPL-2.0.

A development guide for JointJS, a JavaScript and TypeScript library for building diagrams and visual applications. It describes the project as a monorepo, meaning one repository that contains several related packages.

In plain words
What is it for?
Use it when installing dependencies, building distribution files, running package or browser tests, checking types, linting, or working on a specific JointJS package.
Why use it?
It gathers the required tools, package layout, build commands, and different test commands, making work in the multi-package project easier to navigate.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is clientIO/joint's own configuration. It tells Claude Code how to work on joint itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything joint configures →

About the project

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.

clientIO/joint · 5,398 stars · on GitHub · jointjs.com

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/clientIO/joint/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/clientIO/joint

Made for: Claude Code.

Wrote 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.

agentmods badge for joint CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/clientio/joint/claude-md/github.svg)](https://agentmods.dev/instructions/clientio/joint/claude-md)
Your own site
<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.

agentmods 80×15 button for joint CLAUDE.md

Your own site · 80×15
<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>
Per session 1,173 This file is loaded in full into every session.
When invoked 1,173 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 10d ago against content hash ba57c4b2a46b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

CLAUDE.md · 119 lines

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, Dom
  • dia/ - Diagramming API built on MVC:
    • Graph.mjs - Graph data structure and cell management
    • Paper.mjs - SVG canvas and rendering engine
    • Element.mjs / ElementView.mjs - Diagram nodes
    • Link.mjs / LinkView.mjs - Connections between elements
  • g/ - Geometry library (points, lines, curves, polygons, matrices)
  • V/ - Vectorizer for SVG manipulation
  • connectors/ - Link path strategies (line, curve, bezier, jumpover)
  • routers/ - Link routing algorithms (manhattan, orthogonal, metro)
  • anchors/ - Connection point anchors on elements
  • highlighters/ - Visual highlighting mechanisms
  • linkTools/, elementTools/ - Interactive manipulation tools
  • shapes/ - Built-in shapes (standard)
  • layout/ - Built-in layouts (port, port label)
  • alg/ - Graph algorithms (DFS, BFS, shortest path)

Read the full file on GitHub · 119 lines

Changes

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.

  1. 10d ago Changed · -1 lines · -7 tokens per session ba57c4b2a46b
  2. 1mo ago Changed · -2 lines · -40 tokens per session 2b948210ef4c
  3. 2mo ago First seen · 122 lines · 1,220 tokens per session scan A c846690b9999

Subscribe to this mod's changes

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.

Related

joint CLAUDE.md compared with instructions from other repositories

joint CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
joint CLAUDE.mdclientIO/jointInstructions file5.4k2d agoMPL-2.0A1,173Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode