L
LocalMode

Device Badge · LocalMode

A local-first capability badge. Detects WebGPU / WASM / IndexedDB support via a bundled useCapabilities() hook (copy-owned, reads navigator — no @localmode dependency) and renders a themed status pill. Use it to gate model-download UIs behind device support.

npx shadcn@latest add https://localmode.ai/r/ui/local-first/device-badge.json
Preview Device Badge on LocalMode's site (opens in a new tab)
Loading the source for ui/local-first/device-badge…

ui/local-first/device-badge