From 14 Weeks to 14 Minutes: The AI-Powered Civic Permit Navigator for Local Businesses.
- Node.js 18+
- A Google AI Studio API key
- (Optional) A Supabase project for data persistence
- Clone and configure:
git clone <your-repo-url>
cd PermitPilot- Set your API keys:
Edit
.env.localin the project root:
GEMINI_API_KEY=your_actual_gemini_key
SUPABASE_URL=your_supabase_url # optional
SUPABASE_SERVICE_ROLE_KEY=your_key # optional- Start the backend:
cd backend
npm install
npm run devThe API gateway starts at http://localhost:8080.
- Start the frontend (new terminal):
cd frontend
npm install
npm run devThe app opens at http://localhost:5173.
User → Intake Form → POST /api/evaluate
↓
┌─────────────┐
│ Orchestrator │
└──────┬──────┘
┌───────────────┼───────────────┐
│ │ │ │ │
Zoning Health Fire Building Licensing
Agent Agent Agent Agent Agent
│ │ │ │ │
└───────────────┼───────────────┘
┌──────┴──────┐
│ Conflict │
│ Detection │
└──────┬──────┘
┌──────┴──────┐
│ Checklist │
│ Generator │
└──────┬──────┘
↓
Unified Response → Review Page
| Agent | Domain | What It Checks |
|---|---|---|
| 🗺️ Zoning Authority | Land use | Districts, setbacks, proximity, hours |
| 🏥 Health Department | Food safety | Sanitation, commissary, certifications |
| 🔥 Fire Marshal | Life safety | Propane, suppression, ventilation |
| 🏗️ Building Dept | Structural | Electrical, plumbing, ADA compliance |
| 📜 Business Licensing | Legal | Licenses, insurance, tax registration |
- Frontend: Vite + React 19 + TypeScript + TanStack Router + Tailwind CSS + Framer Motion
- Backend: Node.js + Express
- AI: Google Gemini 2.0 Flash
- Database: Supabase (PostgreSQL)
PermitPilot/
├── backend/
│ ├── agents/ # 5 domain agent modules
│ ├── data/ # Municipal code JSON files
│ ├── utils/ # Gemini & Supabase clients
│ └── index.js # Express server + orchestrator
├── frontend/
│ └── src/
│ ├── routes/ # Pages (landing, intake, review)
│ ├── components/ # Shared UI components
│ └── lib/ # Types, API client
└── .env.local # API keys (not committed)
MIT