Codebase
Full source on GitHub. Developed by Akshay Dighe.
Stack
- WebNext.js 15 · App Router · TypeScript · Tailwind · Recharts · Framer Motion
- MobileExpo Router · React Native · NativeWind · Reanimated
- BackendNext.js Route Handlers · Edge SSE for AI streaming · Prisma (Postgres)
- DatabaseSupabase Postgres · Prisma migrations
- AIGemini 1.5 Flash (free tier) via SSE · provider-agnostic SSE contract
- HostingVercel (web + APIs) · Expo EAS (mobile) · Supabase (DB)
- Sharedpnpm + turborepo · @agentdynamics/ui (tokens) · @agentdynamics/types
Key files
Click any row to open the file on GitHub.
- KPIs + Recharts line/pie charts + period selector
Dashboard view
apps/web/components/DashboardView.tsx
- lg+ navigation
Desktop sidebar
apps/web/components/Sidebar.tsx
- Bottom tab bar + more sheet (sub-lg)
Mobile nav
apps/web/components/MobileNav.tsx
- Fixed navy strip with credit (desktop)
Brand footer
apps/web/components/Footer.tsx
- Gemini streaming SSE; template fallback
AI chat route
apps/web/app/api/ai/chat/route.ts
- Live timer + transcript + barge-in
Live calls page
apps/web/app/(app)/live/page.tsx
- Full timeline view
Lead detail
apps/web/app/(app)/leads/[id]/page.tsx
- Week view, color-coded
Appointments calendar
apps/web/app/(app)/appointments/page.tsx
- Lot vehicles, status badges
Inventory
apps/web/app/(app)/inventory/page.tsx
- Brand-aligned colors / typography / shadows
Design tokens
packages/ui/src/tokens.ts
- Lead / Call / Appointment / Vehicle / etc.
Domain types
packages/types/src/index.ts
- Deterministic fixtures for web + mobile
Mock fixtures
packages/types/src/mock.ts
- Dealerships, leads, calls, AI usage
Prisma schema
apps/backend/prisma/schema.prisma
- Expo Router stack + safe-area footer
Mobile root layout
apps/mobile/app/_layout.tsx
Status
- Monorepo + workspaces (pnpm + turbo)done
- Brand tokens, Tailwind preset (shared web ↔ mobile)done
- Dashboard (KPIs, line + pie charts, period selector)done
- Mobile-friendly nav (bottom tabs + more sheet, sticky top brand bar)done
- Leads list + clickable lead detail timelinedone
- Live calls panel (ticking timer, transcript, barge-in)done
- Call history + AI handoff summariesdone
- Appointments week calendardone
- Inventory list (lot vehicles, status badges)done
- AI Assistant — Gemini streaming with template fallbackdone (free Gemini key activates real LLM)
- Prisma schema + seeddone
- Mobile shell: sign-in + Overview / Leads / Calls tabsdone
- Real auth (Google / Microsoft / Apple / magic link)stub — UI only
- AgentDynamics core telephony integrationnot wired
- Push notificationsnot wired
Local development
git clone https://github.com/adighe0605/agentdynamics-ai cd agentdynamics-ai pnpm install cp .env.example .env.local # Web (http://localhost:3000) pnpm dev:web # Mobile (Expo Go / iOS / Android) pnpm dev:mobile