Installation
Chartory charts install from a shadcn registry. Free charts come from the public registry. The 100 free charts (MIT) need no token. Paid items need one: the licence key from your purchase email, or a token you create in Account · Access. Add it to .env, point components.json at the @chartory registry, then add a chart by its slug.
Before you start
- A React project where the shadcn CLI runs. It reads components.json.
- For paid items, a registry token: the licence key from your Code or Complete email, or one you create in Account · Access (AI Ops · Code buyers create one there). The 100 free charts need none.
1Add your token
Use the licence key from your purchase email, or create a token in Account · Access. Keep it out of git.
CHARTORY_TOKEN=••••••••2Add the registry
Tell shadcn where @chartory lives and send the token with every request. For free charts the URL alone is enough: leave out the headers block.
"registries": { "@chartory": { "url": "https://usechartory.com/r/{name}.json", "headers": { "Authorization": "Bearer ${CHARTORY_TOKEN}" } }}3Add a chart
Every chart has one slug, the same in Figma, in code and in the URL.
npx shadcn add @chartory/waterfall4Use it
Import chartory.css once in your global CSS: it holds the Hearth tokens for light and dark (with Code or Complete, add @chartory/signal: chartory-signal.css after it, and the Signal module imported once). Props are named like the Figma variants: size and legend; collection picks Signal.
/* globals.css, once */@import "../chartory.css";@import "../chartory-signal.css"; /* Signal: Code and Complete */// layout.tsx, once (Signal: Code and Complete)import "@/lib/chartory/charts/signal"import { Waterfall } from "@/components/chartory/waterfall"<Waterfall size="m" legend /><Waterfall size="m" collection="signal" />Install several
List the slugs in one command; shared parts install once.
npx shadcn add @chartory/waterfall @chartory/bump @chartory/donutGet the latest release
Run the add command again with --overwrite to replace a chart with its newest version.
npx shadcn add @chartory/waterfall --overwriteTroubleshooting
Other ways
- Your coding agent installs charts through MCP. See Agents: MCP and llms.txt.
- Free charts (100 types, Hearth, MIT licensed; source at github.com/chartory/charts) install from the public registry with the command on each chart page. Signal (Code and Complete): npx shadcn add @chartory/signal, then import "@/lib/chartory/charts/signal" once (your root layout) and chartory-signal.css after chartory.css.
- Sector packs and dashboards (Complete): @chartory/sector-fintech adds the sector's charts, widgets, dashboard and sample datasets; @chartory/dashboard-fintech adds the dashboard alone.
- The AI Ops template (AI Ops · Code or Complete): in a new Next.js app with a src directory, delete src/app/page.tsx, then run npx shadcn add @chartory/ai-ops.
- Interactive widgets (Code and Complete): add -interactive to a slug, for example @chartory/waterfall-interactive, for the period menu, date range picker and tooltips.
- The Figma file opens from the link in your purchase email.