Inspiration
During typhoons, floods, or power outages, life-critical resources are scattered across independent websites: shelter capacities live on civic portals, insulin/oxygen stocks live on independent clinic directories, bridge closures live on transit feeds, and volunteer drivers coordinate on mutual-aid sites. Small civic organizations cannot afford proprietary LLM backends for thousands of residents. CivicMesh uses the Open Agentic Web to turn independent static websites into a decentralized, verifiable, human-safe multi-agent network running 100% in the browser.
What it does
- Live Interactive Host Relief Hub: Displays real-time community shelters (bed counts, wheelchair ADA access, backup power, pet friendliness), supply hubs, and an auditable ledger of human-approved reservations and dispatches.
- Declarative MVS Specifications: Publishes
agent-manifest.jsonandagent-network.jsondefiningrelief_coordinator,shelter_specialist,dispatch_planner, localsite_actions(readvs.write), andallowed_peers. - Live Multi-Site Peer Federation: Dynamically fetches, validates, and SHA-256 hashes two independent peer networks (Metro Clinic & Pharmacy Network and SafeRoute Transit & Hazard Network)—plus lets users attach any external CORS-enabled
agent-network.jsonURL (including our 3rd-party Neighborhood Volunteer Mutual-Aid Mesh peer) at runtime. - Strict JSON Schema Security Guard: Validates every agent, peer, and site-action call against strict JSON Schema before execution. Includes a one-click Test Schema Guard red-team button proving malformed/injected payloads are blocked client-side before reaching HITL or host state handlers.
- Human-in-the-Loop (HITL) Approval Gate: Every
effect: "write"action (reserve_shelter_bed,create_aid_dispatch) pauses execution with an explicit JSON payload modal so the user can Approve & Execute or Decline safely. - BYOK LLM Gateway + Zero-Key Demo Mode: Supports Mozilla Otari, OpenAI-compatible APIs, Google Gemini, and Local Ollama directly in-browser ($0 host LLM cost), plus a Zero-Key Demo Mode for instant testing.
How we built it
- Standalone Browser Runtime (
dist/runtime/*.js): Zero-dependency ES modules (engine.js,runner.js,schemaValidator.js,llmClient.js) conforming tocognizant-ai-labs/agentic-webMVS concepts and exposed globally viawindow.CivicMeshAgenticWeb. - Frontend & Topology UI: React 19, TypeScript, Tailwind CSS v4, Lucide icons, animated SVG multi-agent topology graph, live protocol trace console, and MVS JSON spec inspector.
- Verification: Vitest suite validating all manifest/network JSON documents, strict schema rejection, SHA-256 digests, HITL approve/decline flows, and dynamic peer federation.
Challenges we ran into
- Keeping zero-server static builds compatible with both root domains and GitHub Pages subpaths while serving standalone ES runtime modules publicly.
- Exposing JSON Schema validation and HITL safety as tangible, auditable UI primitives rather than hidden logs.
Accomplishments that we're proud of
- 100% static, MIT-licensed, and reusable: any civic website can adopt
runtime/engine.jsand publish anagent-network.jsonwith zero backend infrastructure. - Genuine multi-organization federation solving a real-world social-good coordination challenge.
What's next for CivicMesh
- Cryptographic signature verification aligned with MIT NANDA packages, live municipal open-data adapters (GTFS-RT / CAP alerts), and WebMCP browser extension interop.
Built With
- javascript
- json-schema
- mozilla-otari
- react
- tailwindcss
- typescript
- vite
- vitest