High Command
LibraryTemplatesGet startedPricing
Get Pro · $79

Guide

Browse everythingGetting startedThemingYour data

Site

HomeTemplatesPricingChangelog

Templates 4

Command centerProFleetProCustomer trackingProField servicePro

Ops and shell 9

App shellProOps modelProAttention queueProMorning briefProShift handoverProLane panelProOwn-fleet partsProAgent action barProCustomizable dashboardPro

Map 17

PMTiles basemapPMTiles routeTrip hologramProBasemap styleMap geometryMapLand texture and dot lensProException heatmap and risk contoursProLane arcsProShipment layerOwn fleet layerProFleet map layersCurated place labels and sitesRoute traceEdge chipsProMap key, filters and paddingMap kitPro

Time and trips 11

Time and trip modelsEvent fieldProIn-transit rowsProImpact lineProActivity barProReplay clockTime controlPlayback overlayProTrip timetableProStage rowWeek cursorPro

Figures, charts and tables 14

Sourced valueKey-figure tileFigure groupPart barBand sparklineKPI stripProChart kitPop barWaterfall cascadeMargin chartsPro13-week cash ladderProWork tableProField railProHorizon gridPro

Zones and dispatch 10

Zones modelDispatch modelProGeofence layerGeofence eventsGeofence drawProService ringsDensity heatmapJob queueProAssign dialogProStop listPro

Design system 3

ThemeShared helpersUI primitives

Routing 3

Offline road routerAustin road graphAustin areas

Libraries 2

Fleet coreRoute core
High Command

Map, fleet and ops-console components for React. Built in-house, copied into your app with the shadcn CLI.

Product

  • Library
  • Templates
  • Pricing
  • Changelog

Build

  • Get started
  • Accessibility
  • Trip hologram

Templates

  • Command center
  • Fleet
  • Field service

New pieces by email. A short note when a release lands.

One email per release. Unsubscribe any time.

© 2026 High Command Pro licenseTermsPrivacyRefundsMap data © OpenStreetMap contributors · OpenFreeMap
Library/Zones and dispatch

Dispatch model

Jobs, 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.

Pro · included in the $79 licenseLibrary@highcommand/dispatch-lib1 file
Get Pro · $79
See it in context
11:200 late2 at risk6 on track2 closed
0810121416
Maria Lopez · Van 12
Mueller Market
Hyde Park
Airport Blvd
Crestview
The Domain
Jamal Carter · Box truck 3
South Congress
Riverside Dr
Montopolis
Priya Shah · Van 7
Zilker Park
Barton Creek Mall
Who takes
Pallet drop · needs liftgate
  1. 1Jamal Carter · Box truck 31.0 mi · 2 open · score 4.6
  2. 2Maria Lopez · Van 124.6 mi · 4 open · score 13.3
  3. 3Priya Shah · Van 72.0 mi · 2 open · lacks liftgate
Pro

Part of High Command Pro. The preview and props are open to everyone; installing it needs your license key. Set up your key · Pricing

Installation

$ npx shadcn@latest add @highcommand/dispatch-lib

Copies the source into your project and pulls in what it needs (3 other items). First time? Add the registry to components.json.

API

13 functions
  • isStopLate(s: DispatchStop, now: number): boolean

    Late: arrived after the window, failed, or (not there yet) the ETA or now past the window's end.

  • isStopAtRisk(s: DispatchStop, now: number, marginMs?: number): boolean

    Still open, ETA within `marginMs` of the window's end, not late yet.

  • stopTone(s: DispatchStop, now: number): StatusColor

    A stop's status: failed blocked, late, at risk, skipped neutral, otherwise on track.

  • stopCounts(stops: readonly DispatchStop[]): { total: number; done: number; failed: number; closed: number; remaining: number; }

    Counts a route's stops: total, done, failed, closed (done, failed or skipped) and remaining (not closed).

  • sortJobs<T extends Job>(jobs: readonly T[]): T[]

    Urgent first, then the earliest window end, then id.

  • distanceM(a: LngLat, b: LngLat): number

    Great-circle metres between two points.

  • distanceText(m: number): string

    Miles for US fleets: "0.4 mi", "12 mi".

  • rankDrivers(job: Job, drivers: readonly DispatchDriver[], distance?: (a: LngLat, b: LngLat) => number, kmPerStop?: number): DriverCandidate[]

    Ranks on-duty drivers for a job: distance plus `kmPerStop` per stop still open (lower is better). Drivers who lack what the job needs sort after the ones who can do it, full ones after those; off-duty drivers are left out. Pass a road distance when you have one.

  • moveStop<T extends DispatchStop>(stops: readonly T[], from: number, to: number): T[]

    Moves the stop at `from` to `to`, unless either end is locked (never resequence ahead of work already done or under way).

  • isClosed(s: DispatchStop): boolean

    True for a stop that is done, failed or skipped.

  • isLocked(s: DispatchStop): boolean

    On site or closed: the driver is committed, so the stop cannot move in the sequence.

  • clock(ms: number): string

    "09:30" (24-hour, as High Command's tables read).

  • windowText(w: TimeWindow): string

    "09:30–11:30".

Dependencies

npm
None beyond React
Builds on
ThemeUI primitivesShared helpers
Used by
Job queueAssign dialogStop listField service
PreviousZones modelNext Geofence layer

On this page

PreviewInstallationAPIDependencies