waffle-charts-cli
v0.1.5
Published
CLI to add WaffleCharts components to your project
Readme
WaffleCharts CLI 🧇
The official CLI for WaffleCharts.
Beautiful, Headless, Copy-Pasteable Charts for React.
Built with Visx and Tailwind CSS.
Why WaffleCharts?
WaffleCharts is not a component library you install and get stuck with. It's a collection of templates. The CLI copies the full source code of the chart directly into your project. You own the code. You can customize the axis, the colors, the tooltip logic—everything.
Usage
Run the add command to interactively select charts:
npx waffle-charts-cli addOr add specific charts directly:
npx waffle-charts-cli add bar-chart line-chartAvailable Charts
| Chart | Command | Description |
| :--- | :--- | :--- |
| Bar Chart | bar-chart | Standard vertical bar chart for categorical data. |
| Line Chart | line-chart | Smooth curves for trends over time. |
| Area Chart | area-chart | Filled area charts for volume visualization. |
| Pie Chart | pie-chart | Donut or Pie charts for proportions. |
| Radar Chart | radar-chart | Spider/Web chart for multi-variable comparison. |
| Scatter Plot | scatter-chart | X/Y plotting for correlation. |
| Bubble Chart | bubble-chart | 3D data visualization (X, Y, Radius). |
| Heatmap | heatmap-chart | Grid-based density visualization. |
| Treemap | treemap-chart | Hierarchical data visualization. |
| Sankey | sankey-chart | Flow and process visualization. |
| Composite | composite-chart | New! Dual-axis Bar + Line combination. |
What it does
- Checks dependencies: Detects if you have the necessary
@visxpackages (shape,scale,axis, etc.) and installs them if missing. - Copies code: Downloads the component source code to
src/components/waffle/(or your configured directory). - Zero Lock-in: Once added, the code is yours.
Requirements
- React 16+
- Tailwind CSS configured in your project.
License
MIT © WaffleCharts
