A free, open-source control surface for the PlayStation DualSense 5 controller — a beautiful, web-based alternative to paid tools like DualSense M. Tune the lightbar, adaptive triggers, rumble, and mic/player LEDs live from your browser over WebHID, with no data leaving your machine.
Built to grow into a native macOS app (Electron) without rewriting the core: the protocol is a pure-TypeScript package behind a transport abstraction, so the same engine that drives WebHID in the browser will drive node-hid on the desktop.
flowchart TB
subgraph UI["apps/web — Next.js 16 · Tailwind v4 · shadcn (Base UI) · Framer Motion"]
P[Panels: Lightbar · Triggers · Rumble · LEDs]
V[Animated controller visual]
PR[Presets incl. Forza Horizon 6]
CTX["ControllerProvider (React context)"]
P --> CTX
PR --> CTX
CTX --> V
end
subgraph CORE["@ds5/protocol — pure TypeScript, zero deps"]
PROF[Profile → OutputState]
ENC[Report encoder]
CRC[DualSense CRC-32]
TRG[Adaptive-trigger builders]
CTL[DualSenseController + keep-alive]
ENC --> CRC
end
subgraph T["Transport (interface)"]
WH[WebHidTransport — browser today]
NH["node-hid transport — Electron (roadmap)"]
end
CTX --> CTL
CTL --> PROF --> ENC --> T
T --> HW(["DualSense 5 · Bluetooth / USB"])
Everything in the reference app except audio & options (for now):
- Touchpad Lightbar — solid color (picker, hex, swatches) or animated rainbow, with brightness and sweep speed.
- Adaptive Triggers (L2 / R2) — Feedback, Weapon, Vibration, Slope, Bow, Galloping, Machine, with per-effect parameter sliders and a live zone strip.
- Rumble — independent low/high-frequency motors with a one-tap test pulse.
- Player LEDs — toggle individual dots, quick player presets, and brightness.
- Mic LED — off / solid / pulse.
- Presets — one-tap starting points, including dedicated Forza Horizon 6 race & off-road profiles. Everything stays editable after you apply.
- Input Monitor — a live readout of the full input report: both analog sticks, every button & the D-pad, analog triggers, the two-finger touchpad, and the gyroscope/accelerometer. Reading input is non-exclusive, so it coexists with a game using the controller.
- Battery — live battery percentage and charging state, parsed from the input stream.
- Bun workspace monorepo (use
bun/bunxeverywhere). @ds5/protocol— pure-TS DualSense protocol: CRC, report encoder, trigger builders, transport interface, controller engine. Hardware-verified, unit-tested.apps/web— Next.js 16 (Turbopack) · TypeScript · Tailwind v4 · shadcn/ui (Base UI primitives) · Framer Motion.
.
├── packages/
│ └── protocol/ @ds5/protocol — pure-TS protocol (CRC, encoder,
│ triggers, input parser, transport, controller). Tested.
├── apps/
│ └── web/ Next.js app (the UI). Becomes the Electron renderer.
│ └── src/
│ ├── app/ routes, layout, theme
│ ├── components/
│ │ ├── ds5/ feature components (panels, monitor, preview)
│ │ └── ui/ shadcn primitives
│ └── lib/ds5/ React layer over @ds5/protocol (hook, profile, presets)
└── playground/ standalone node-hid POC scripts used to verify the
protocol on real hardware (not part of the workspace)
- A Chromium-based browser (Chrome, Edge, Arc) — WebHID is required.
- A DualSense 5 connected over Bluetooth or USB.
- Close any other controller app (e.g. DualSense M) first — only one program can hold the HID device at a time.
bun install
bun run dev # Next.js dev server (Turbopack) on :3000
bun run build # production build
bun run typecheck # protocol + web
bun test # protocol unit testsThe DualSense's true voice-coil HD haptics (the Astro Bot effect) are streamed over the USB audio interface, not Bluetooth HID. Over Bluetooth/HID we drive the rumble motors and the adaptive-trigger actuators — which still feel great. Full PCM HD haptics are on the roadmap once a USB-audio transport lands.
- Electron shell targeting macOS (node-hid transport).
- USB-audio transport for true HD haptics.
- Saveable profiles & game auto-switching.
Not affiliated with Sony Interactive Entertainment. DualSense is a trademark of SIE.