All projects
Shipped2026

Custom Dashboard Grid

A drag-and-drop dashboard grid for Vue 3, written from scratch and published on npm.

Role
Solo, design and engineering
When
2026
Stack
Vue 3TypeScriptViteVitest
gzipped, Vue is the only dependency
~24 kB
gzipped, Vue is the only dependency
lines of TypeScript and Vue
8k+
lines of TypeScript and Vue
grid features
20+
grid features

At Reveal Security I built a production dashboard on top of GridStack.js. It worked, but I kept running into the edges of someone else's abstraction. So afterwards I wrote my own grid engine and published it on npm as custom-dashboard-grid.

You've already used it: the projects board on this site's home page is a live DashboardGrid. Hit Customize to drag widgets around, resize them, pin them, or drop them on the dock to remove them. Your board is remembered in your browser.

What it does

You give it a list of widgets and a component for each widget type. It handles the rest:

  • Drag and resize from any side or corner, with collision handling and float-up, float-left or static modes
  • Undo and redo, multi-select with Shift+click or a selection box, and snap guides
  • Full keyboard editing with screen reader announcements
  • Responsive layouts for desktop, tablet and phone
  • Dragging between grids, into grids nested inside widgets, and in from a sidebar
  • Pin, lock and resize-lock modes, trash zones, and auto-arrange into the tightest layout
  • Lazy, collapsible and content-sized widgets
  • localStorage persistence, named layout presets, and versioned JSON with migrations
  • Animation presets and arrival effects, all respecting reduced motion
  • Crash-safe widgets and self-repairing layout data

Using it

npm install custom-dashboard-grid
<DashboardGrid v-model="widgets" :components="{ chart: SalesChart }" />

That's the whole integration. Everything else is opt-in props.

How it's built

The library and a demo app live in one workspace. The demo consumes the package exactly like an outside project would, so anything the demo needs has to be a real, documented export. Headless helpers (add menus, pin menus, drag-aware toolbars) let apps build their own chrome on top.

The demo is a fictional security-operations console called Sentinel, and it's live at custom-dashboard.benduffaut.com. Its look (dark surfaces, chamfered panels, teal signal color) is where this site's design comes from.

On this site

The home page's projects section is set up like the library's demo: a 12-column board of widgets in different sizes, one per project plus small KPI tiles for headline numbers. Each widget shows more as it grows, from a tagline at its smallest to the animated visual, stack and metrics when it's big, so resizing one is the fastest way to see what the grid can do. Edit mode adds the demo's command dock with undo, redo, auto-arrange and a trash zone, plus a tray for dragging removed widgets back in. Phones get their own hand-placed board, with tiles paired side by side.

It's open source under the MIT license, and version 0.2.0 is out. Outside this site, it runs the Control Tower home screen in Hangar, and it's going into the Mode & Surface component library next.

Benjamin Duffaut

© 2026 · Served from a laptop in Orlando through a Cloudflare Tunnel