Install
$ agentstack add mcp-nishant-chaudhary5338-dashcraft ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
dashcraft
[](https://github.com/Nishant-Chaudhary5338/dashcraft/actions/workflows/ci.yml) [](https://www.npmjs.com/package/dashcraft-core) [](LICENSE) [](CONTRIBUTING.md)
Headless React dashboard library. Four boolean props. Your styles.
dashcraft gives you drag-and-drop grids, resizable widgets, KPI cards, recharts charts (bar, line, area, pie, scatter, radar) + hierarchy charts (heatmap, treemap, sunburst), persistent layouts, and an MCP codegen server — without touching your design system.
→ Live site & playground · Docs · npm
Why dashcraft?
| Pain | dashcraft | | ------------------------------------------------ | -------------------------------------------------------- | | Every dashboard library forces its design system | Fully headless — bring Tailwind, CSS Modules, or nothing | | Wiring recharts to drag-drop takes days | drag resize settings delete — four props, done | | AI tools don't know your component API | llms.txt + MCP codegen server built in | | Saving layouts is a custom build every time | persistenceKey="key" — one prop, localStorage automatic |
Install
npm install dashcraft-core
# Chart peer dependency (bar, line, area, pie, scatter, radar + hierarchy charts)
npm install recharts
Quick start
Widgets render their own card, so drop them straight into ` and position them with defaultPosition / defaultSize`:
import { Dashboard } from "dashcraft-core";
import { KPIWidget } from "dashcraft-core/widgets/kpi";
import { RechartsWidget } from "dashcraft-core/widgets/recharts";
import "dashcraft-core/styles.css";
const data = [
{ month: "Jan", revenue: 12400 },
{ month: "Feb", revenue: 15600 },
{ month: "Mar", revenue: 18200 },
];
export function SalesDashboard() {
return (
);
}
The boolean API
Every interactive behaviour is a single boolean prop on DashboardCard:
| Prop | What it does | | ------------ | ---------------------------------- | | drag | Enables drag-and-drop via @dnd-kit | | resize | Shows resize handles | | settings | Shows settings gear icon | | delete | Shows delete button | | viewSizes | Cycles preset sizes on double-click |
No config objects. No verbose prop names. Just booleans.
Components
| Component | Purpose | | ------------------- | ------------------------------------------------ | | ` | Root grid container, manages state + persistence | | | Widget wrapper with all behaviour props | | | Metric card with trend indicators | | | recharts (bar, line, area, pie, scatter, radar) | | ` | heatmap, treemap, sunburst (built-in) |
Hooks
| Hook | Purpose | | --------------------- | ----------------------------------------------- | | useDashboard(id) | Access state, toggle edit mode | | usePersistedState(k) | Local state auto-persisted to storage | | useWidgetEvents(id) | Subscribe to settings/delete/resize/drag events | | usePersistence(key) | Manual save/restore with custom storage | | useDraggable(id) | Raw @dnd-kit drag state | | useResize(id) | Raw resize state |
AI-native
dashcraft is built to work with AI tools out of the box:
llms.txtat/llms.txt— machine-readable API reference any LLM can fetchAGENTS.mdat/AGENTS.md— full agent guide for code generation- MCP server —
dashcraft-mcp-codegenfor Claude Desktop, Cursor, and any MCP client
MCP setup
npm install -g dashcraft-mcp-codegen
Add to claude_desktop_config.json:
{
"mcpServers": {
"dashcraft": {
"command": "dashcraft-codegen"
}
}
}
Tools: analyze_dashboard · generate_code · generate_project
Monorepo structure
packages/
core/ dashcraft-core — the React library
apps/
site/ Product site (Next.js 15)
tools/
codegen/ dashcraft-mcp-codegen — MCP server
Development
# Install dependencies
pnpm install
# Start all apps
pnpm dev
# Start just the site
pnpm --filter site dev
# Build the library
pnpm --filter dashcraft-core build
# Run library tests
pnpm --filter dashcraft-core test
Requires Node.js 20+, pnpm 9+.
Contributing
Contributions are very welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for the full guide.
Short version:
- Fork → branch → code
pnpm --filter dashcraft-core buildmust passpnpm --filter dashcraft-core testmust pass- Open a PR with the checklist filled out
License
MIT © Nishant Chaudhary
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Nishant-Chaudhary5338
- Source: Nishant-Chaudhary5338/dashcraft
- License: MIT
- Homepage: https://dashcraft.digitribe.world
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.