The library
All 73 pieces so far, with more on the way: 35 free, the rest with Pro. Open one to play with it live, copy the install command, or copy it for your AI agent. New here? Get set up in two minutes.
73 items
ProCommand centerFull-screen operations screen: key-figure strip, attention queue rail with morning brief and shift handover, the High Command map (exception lens, lanes, status-ring clusters, own fleet, queue marks, edge chips, hover cards, map key), a right-hand panel stack and the activity bar, all driven by one clock with live speeds and a shift replay. Texas-triangle sample data in data.ts.
ProFleetHigh Command's Fleet workspace as a page: app shell with a replay clock that moves the day, fleet key figures (today, vehicles, drivers, cost, exceptions), routes ranked by risk with stop bars and delays, the map with every vehicle (kind glyph, heading, status shape) and the depots, the open route's planned road dashed and driven road solid with numbered stops, its panel with the trip timetable (scheduled, expected, actual, fix age), and the route's 3D hologram (Flat map / Hologram, Whole route / Near the truck). Austin TX sample data on real streets.
ProCustomer trackingMobile-first "where's my delivery" page on the High Command map: the van gliding along the remaining real-street road, an honest arrival range that widens while GPS is quiet, delay against the first estimate, a plain stale-GPS line, and the trip timetable with other deliveries unnamed. No other customers shown.
ProField serviceTechnician day board in High Command's design: schedule grid with windows, hatched off-shift and a now line; map of service zones (worst status inside), vans, the selected tech's road and unassigned jobs; job queue with drag, menu and ranked assign that books the first slot that fits; what needs attention.
ProApp shellThe application frame: top bar (brand slot, tenant, page actions, clock and ⌘K search), icon rail of workspaces with travelling name tooltips, phone bottom bar with More, skip links, panel column; ThemeToggle and useTheme, ShellClock, the rail slot context, slow-loading state and pop-out windows (Document Picture-in-Picture).
ProOps modelAttention-queue types and pure logic: filters, money-and-time sort with bands, stories of related items counted once per record, snooze presets, item state with the acknowledgement timer, brief and handover types, when a handover is due.
ProAttention queueThe queue of what needs attention: severity chips, money at stake and time to cost per row, bands (Now, Next 2 h...), grouped stories, assign / acknowledge / snooze / resolve, filters, keyboard selection, a status scroll rail, the folded 56px rail. AttentionQueue keeps its own state; Queue takes it all as props.
ProMorning briefWhat changed since you left: at most five numbered lines, worst first, each with its money at stake and source chips; what could not be checked; read aloud with the browser's speech; a panel with every source.
ProShift handoverThe signed shift handover: the last note (read only) with acknowledgement and one question back, this shift's draft in four fixed sections to edit and sign, and the line under the queue when one is due. Callbacks instead of API calls.
ProLane panelA lane in the panel stack: shipments on it now worst first, late and at-risk counts, money at stake, on-time share and transit against plan over 90 days by carrier, open exceptions.
ProOwn-fleet partsOwn-fleet pieces: routes ranked by risk with stop bar and delay, status tags, the driver's day as a duty-status strip, hours-of-service meters, stops planned against actual with missed windows, trackers, and vehicle-register cells (status, ownership, payments left, remaining, next due).
ProAgent action barApprove, reject, override or reverse an agent's proposed action. The confirmation says what will run, the records, count and total it touches, who approves and whether it can be undone, read from the action's parameters; disabled buttons always say why.
ProCustomizable dashboardWidgets in zones that people reorder (drag or arrow keys), resize, switch display and hide; an editor sheet with Add widgets, reset and an optional company default; saved to localStorage or your onChange with a save status.
FreePMTiles basemapMapLibre style + protocol for a self-hosted .pmtiles basemap (Protomaps flavors or your own layers).
FreePMTiles routeNext.js route handler serving .pmtiles from PMTILES_DIR with HTTP Range.
ProTrip hologramA trip flies up out of the map as a 3D model: real streets, glowing driven road, stop beams, vehicle token. Three themes.
FreeBasemap styleHigh Command's dark/light basemap style over OpenFreeMap (free, keyless, worldwide) or a self-hosted Overture PMTiles archive; curated place labels; provider adapters.
FreeMap geometryGreat-circle lanes, antimeridian-safe framing, playback tracks, risk contours (marching squares), edge-chip spreading and Fleet map features.
FreeMapMapLibre map provider (useCommandMap) that follows the theme, draws status-ring clusters on demand and runs one hover-card system for every layer.
ProLand texture and dot lensA dot grid on land that brightens where the operation is busy, and the dot lens: dots that light up and lean away under the pointer.
ProException heatmap and risk contoursWhere exceptions bunch up: a warm density glow at low zoom and isobar-style risk contours.
ProLane arcsLanes as great-circle arcs or stored roads: width = volume, colour = worst status, chevrons, and marching dashes while a lane matters.
FreeShipment layerStatus-ring clusters with a worst-status badge, mode chips, doubt rings for estimated positions, the selected route done/ahead with off-route trail, and vehicle trails.
ProOwn fleet layerYour own vehicles as calm rounded chips (status only when the route needs attention), depot stacks and dotted routes ahead.
FreeFleet map layersVehicles by kind with heading ticks and status-ring clusters, a route planned vs driven with numbered stops and depot, and the Fleet map key.
FreeCurated place labels and sitesCurated cities, ports and air hubs plus every place you use, instead of the tiles' own labels; your DCs as hub marks with cards.
FreeRoute traceA trip drawn on as a glowing line with stop marks and a "now" beam; the camera tilts in and comes back exactly where it was.
ProEdge chipsFlagged things off the screen as chips on the map edge, kept apart and off the controls; a click frames them.
FreeMap key, filters and paddingThe collapsible map key with the risk-contours switch, the map filter bar (lens, status, layers, mode, account) and map padding under glass panels.
ProMap kitEvery High Command map piece with one import: @/components/highcommand/map.
FreeTime and trip modelsPure logistics models: trips (a shipment's legs, hubs and stops, or an own-fleet route) placed along the road with fix age and dead reckoning; the event field's binning and typical band; the bar's zoom and pan window; split rows; in-transit Gantt rows; the impact line's layout; week stepping.
ProEvent fieldThe signature canvas: one hairline per minute (or 5, 15 min zoomed out) as tall as it was busy, late and at-risk segments at its base, the typical band behind, decisions as pins, and the ahead field of what falls due. Repaints with the theme.
ProIn-transit rowsA Gantt row per shipment under way and per own route on the road: left, arrives, window, status with how late, and its trip on the time scale (travelled solid, to come dashed, stops as ticks, now as a dot).
ProImpact lineOne flat line on the bar's time axis for a record: the trip's stops (tripStops) and your business dates, done solid and expected dashed, labels that never collide, edge markers, Fit and Back, keyboard walk.
ProActivity barThe activity bar: the event field over the shift with since-you-left and the next 8 hours due, zoom and pan like an audio timeline (15m, 1h, 6h, Shift), split tracks by area, source or status, In transit rows, headlines, the activity log, replay playhead, folded waveform strip.
FreeReplay clockA simulated clock: runs at 1x, 60x or 600x, pauses, seeks, optionally bounded (a replay stops at its end). Feed it to the time components.
FreeTime controlThe clock pill: live, paused or reconnecting, the clock in the viewer's zone running between updates, speed 1x/60x/600x and play or pause, and Replay with its own speeds, playhead and Back to live. Props-driven; optional provider for a shell that owns time.
ProPlayback overlayThe night played back: the playhead, speed, how many events matter, the latest moments up to the playhead (each opens its record), and gaps in the position record.
ProTrip timetableEvery station on one rail: scheduled, expected and actual times with how far off, dwell, windows, the now row moved on along the road from the last fix (never past the next stop), and the fix's age with 'Position estimated' past twice the usual gap.
FreeStage rowLifecycle stage counts in order, numbered, for selling or buying; counts open their records.
ProWeek cursorA compact week scrubber: Today, the week with a step either side, the full slider on hover or focus, and Play (a week a second).
FreeSourced valueA number that is its records: SourcedValue buttons that flash and strike the figure they replace, plus one provider for what figures open (onSelect) and how links render (renderLink).
FreeKey-figure tileThe key-figure strip: tiles edge to edge in the pixel face, status shape before the value, qualifier, sub-line, trace, struck-and-replaced value, one shared size per strip, ticker dropdown on desktop.
FreeFigure groupOne question answered by one or two hero figures, with a trace at the right, a part bar and two lines of facts; every hero and fact opens its records.
FreePart barA ratio as one thin bar split into its parts, each with its colour, words and a status texture (never colour alone), each opening its own records.
FreeBand sparklineA word-sized rounded step trace of the last 7 days and today over the figure's normal band; grey unless off normal the way that needs action.
ProKPI stripData-driven grouped key figures (shipments, on time, receivables, payables, orders, attention): heroes with the change since you left, normal bands, sparklines, part bars, one-line ticker with glass dropdowns.
FreeChart kitHand-built SVG charts, no chart library: ColumnChart, BarList (clipped scale), LineChart with status markers, ChartTable, ChartCard with chart/table toggle, ViewSwitch. Keyboard readable; every mark opens its records.
FreePop barA stacked bar of figures whose multi-part segment lifts and unfolds a zoomed bar of its parts on hover, focus or tap; labels fit by width.
FreeWaterfall cascadeA waterfall for any start, steps and end: rows keep their place at rest, steps drop in on the first hover and stay; broken axis for bridges.
ProMargin chartsFreight-aware margin: revenue distribution (bar with freight pop-out, or waterfall), the margin band histogram with its tail by customer, lane or mode, the month-on-month margin bridge, month trend bars.
Pro13-week cash ladderReceipts and payments per week (estimated parts hatched), ending cash with its early-to-late range and the floor, lowest week, opening balance and last week's forecast against actual; chart or table.
ProWork tableThe working table: sortable headers, text and column filters, totals over the rows shown, CSV and Excel export of exactly those rows, one-Tab-stop keyboard rows, phone cards, expand to a sheet.
ProField railA list's own scroll rail: one hairline per row in its status colour, so trouble further down shows before anyone scrolls; drag the window or click the track.
ProHorizon gridInventory planning heat map: a SKU-site per row, the next weeks as columns, days of cover or units, calm colouring, runs of stockout weeks as one band, supply landing marks, a week cursor; keyboard grid, virtualised past 300 rows.
FreeZones modelPure zone geometry: point in polygon, geodesic circles and service-ring bands, spherical area and its words, centroids, zone features with status, the worst status inside a zone, and enter/exit diffs of a vehicle feed.
ProDispatch modelJobs, stops and drivers with pure helpers: late and at-risk against windows, a stop's status as High Command's five, priority order and tone, driver ranking by distance, load and skills, and moving a stop without crossing work done or under way.
FreeGeofence layerZones on the High Command map: hairline outlines and a faint wash in each zone's status (neutral is a quiet grey outline), the status shape over its name, inactive zones dashed, the selected one heavier, High Command's hover card and click.
FreeGeofence eventsEnter and exit events from a live vehicle feed against zones: seeds silently on the first update and for new vehicles or zones, counts vehicles inside each zone.
ProGeofence drawDraw a zone on the High Command map: click points, drag to adjust, Enter or the first point to finish, Backspace to take back, Escape to cancel; a glass panel with the live point count and area, key hints and buttons as the keyboard-only path.
FreeService ringsService-area rings around a hub as true geodesic circles: hairline dashed rings, a wash fading band by band, distance labels; structure, never status colour.
FreeDensity heatmapWeighted density on the High Command map: demand glows in the accent, exceptions warm from at risk to late; fades out by a zoom you set.
ProJob queueUnassigned jobs in High Command's row language: priority as a status shape and word, window in mono, passed windows flagged; drag a job onto a driver chip or use its Assign menu (arrow keys, Enter, Escape), with what a driver lacks said in the menu.
ProAssign dialogWho should take a job: on-duty drivers ranked by distance and open stops, those who lack a needed skill or are full sorted last with the reason, load meters with status shape; a native modal dialog where arrow keys pick and Enter assigns.
ProStop listA route's stops in order with each stop's status shape, window, ETA or arrival in mono; open stops reorder by drag or keyboard with screen-reader announcements, stops done or under way locked.
FreeThemeHigh Command design tokens (dark-first, colour-blind-tested status colours and shapes), Geist fonts and component styles. Import the CSS in your globals.
FreeShared helpersStatus and money types, formatters, road snapping and CSV/Excel export used by High Command components.
FreeUI primitivesStatus pill and dot (shape + colour), buttons, KPI, sparkline, segmented control, tabs, data table, command palette, panel stack, splitter, chart patterns, monogram.
FreeOffline road routerA* driving routes over a compact road graph. No routing API, ~2 ms per city route.
FreeAustin road graphCentral Austin drivable roads (OpenStreetMap, ODbL) for demos and templates.
FreeAustin areasNamed Austin outlines (Downtown, UT, Domain, airport, neighborhoods, service territories) for geofence demos.
FreeFleet coreShared types and helpers: vehicles, freshness, distance, clocks.
FreeRoute coreStops, tracks and time windows: interpolation, honest ETA ranges, window status, deviation.