bescatter
v0.1.0
Published
Install responsive React + D3 chart components from the Bescatter gallery.
Maintainers
Readme
Bescatter CLI
Install responsive React + D3 chart components from the Bescatter gallery — shadcn-style, you own the code.
Usage
# List all available charts
npx bescatter list
# Inspect a chart (description, files, peer deps)
npx bescatter info sankey
# Install a chart's source into your project
npx bescatter add sankey
# Then install peer deps
npm install react framer-motion d3-sankeyFlags
| Flag | Description |
|------|-------------|
| --force, -f | Overwrite existing files without prompting |
| --dir=<path> | Install into a directory other than cwd |
What gets installed
Each chart ships with its dependencies — _shared/ primitives (palettes, tooltip), lib/ helpers (useResize, formatters). All files land under src/ in your project:
src/
components/
charts/
SankeyChart.tsx
_shared/
Tooltip.tsx
palettes.ts
lib/
useResize.ts
formatters.tsDrop them in, install the listed peer deps, and import the chart.
Configuration
Override the manifest URL (for local dev or self-hosted gallery):
BESCATTER_MANIFEST_URL=http://localhost:5173/cli-manifest.json npx bescatter add donutLicense
MIT
