Inspiration
Every time our team takes on a project or participates in research, our number one priority is simple: learn and master a brand-new skill by the end of the experience.
Going into this project, hardware had always been the intimidating unknown—the frontier we hadn't yet crossed—so tackling physical hardware was at the absolute top of our list. On top of that, cybersecurity was entirely new territory where we had zero prior experience.
Motivated by this steep learning curve and the challenge of building something resilient when corporate networks fail, we set out to build OffGrid: a portable, offline incident command center that forced us to dive headfirst into microcontrollers, RFID hardware, custom captive portals, and secure server architectures.
What it does
- Live Dashboard: Features a building workstation map (Unchecked, Suspected, Infected, Contained, Clean), system status tracking, automated task escalation (2-minute unacknowledged timer), team paging, in-dashboard chat, and an append-only incident timeline.
- Legal Clocks: Real-time countdowns for regulatory notice requirements (such as a GDPR-style 72-hour window and an SEC disclosure clock), plus a printable report for legal counsel.
- Panic Button Support: The hardware can declare a full incident state with a single
!Phardware signal. - Calm by Design: Interfaces feature clear, numbered step-by-step instructions, large typography, and color-coded status labels to guide responders smoothly through high-stress moments.
How we built it
- Design First: Before writing code, we drafted a comprehensive 24-page software design document covering user personas, 9 scenarios, 14 use cases, requirements, data models, state models, and 21 test cases with full traceability.
- Backend: Built using SpacetimeDB (TypeScript module) with tables for members, badges, access requests, approval windows, incidents, machines, assets, tasks, messages, legal deadlines, and logs. All core rules are enforced via server reducers (e.g., locking card tap processing to the registered Lead console, managing 30-second approval windows, and ensuring logs/messages are immutable).
- Frontend: Built with React, Vite, TypeScript, Tailwind CSS, and React Router, utilizing generated SpacetimeDB TypeScript bindings. Includes a mock data mode for offline demoing and styled with a dark command-center aesthetic and pre-bundled offline fonts.
- RFID Hardware: A Raspberry Pi Pico 2 W paired with an RC522 RFID reader. The Pico acts as a USB keyboard, typing short input lines into the Lead console (
!F<card ID>for badge taps,!Pfor panic,!C<code>for join codes) with zero driver requirements. - Network Infrastructure: An ESP32-S3 acts as a Wi-Fi access point featuring a custom DNS responder and captive portal that intercepts traffic and routes users directly to the dashboard.
Challenges we ran into
- One Reader, Two User Types: Bridging physical badge taps at the box with requests typed on separate employee laptops.
- "Localhost" Resolution: Ensuring employee laptops routed correctly to the Lead laptop's fixed network address rather than themselves.
- Captive Portal Quirks: Writing a custom DNS responder on the ESP32 to correctly handle operating system connectivity checks.
- Hardware Realities for Software Engineers: Managing RC522 pin layouts, power voltage dips during Wi-Fi initialization, keyboard focus, and flash debugging.
- Fully Offline Constraints: Pre-bundling all packages, fonts, and the database ahead of time without external internet access.
- Scope Discipline: Deferring non-essential hardware features (keypads, OLED screens, buzzers, load simulators) to nail the core end-to-end experience.
Accomplishments that we're proud of
- True Physical Gatekeeping: Complete lockdown of data until the Lead authenticates via key fob, backed by human approval.
- Modern Experience Without Internet: Responsive real-time app performance with zero corporate network or internet dependency.
- Server-Enforced Security: Security logic embedded directly into SpacetimeDB reducers so UI bypasses grant no access.
- Immutable Audit Trail: Append-only log architecture ensuring zero code paths allow edits or deletions of timeline entries or messages.
- Calm UX Design: A stress-reducing interface built with clear guidance, high-contrast cues, and step-by-step instructions.
- Rigorous Workflow: Successfully executed an end-to-end integration of design, hardware, network, and software within a single weekend.
What we learned
- Leveraging SpacetimeDB as a single source of truth via server reducers and live subscriptions.
- How captive portals, DNS, and DHCP function at a low level under the hood.
- Using a microcontroller as a USB keyboard for reliable, driverless browser input.
- The immense value of writing a comprehensive design document first to streamline parallel development.
- Recognizing that incident response is as much a people coordination challenge as it is a technical one.
What's next for OffGrid
- Fully Self-Contained Box: Migrate the server to an internal Raspberry Pi 5 with a battery, eliminating the Lead laptop.
- Complete Control Panel Hardware: Add keypad join codes, an OLED status display, alert lights/buzzers, and lid tamper detection.
- Tamper-Evident Timeline: Cryptographically chain log entries with hashes and physical fingerprints recorded on paper by the Lead.
- Scale & Coverage: Build a load simulator for 300 machines and 30 responders, multi-AP building support, and encrypted storage.
- Extended Reach & Evidence: Integrate cellular paging and secure USB log/alert imports.