LTB Buddy
Tenant Rights Assistant for Ontario
A free, AI-powered legal guidance tool built on Ontario's Residential Tenancies Act — deployed at ltbbuddy.app and orchestrated by the AgentSync multi-agent protocol.
Loading...
Core Technology Stack
Frontend
React 18.3.1 + TypeScript — type-safe, component-driven UI
Vite 5.4.19 — blazing-fast build tooling
Tailwind CSS + shadcn-ui — utility-first, accessible design system
TanStack Query, React Hook Form, Zod — data, forms & validation
ElevenLabs Voice, PDF.js, Recharts — voice, documents & charts
Backend & Infrastructure
Supabase — PostgreSQL database + authentication
Vercel — deployment platform + Edge Functions
REST API + SSE — real-time Server-Sent Events streaming
Key Features & Capabilities
Legal Guidance
Plain-language answers grounded in Ontario's Residential Tenancies Act, accessible to every tenant regardless of legal background.
Conversational AI
A natural, flowing chat interface powered by multi-agent AI — tenants can ask questions in their own words and get clear, contextual responses.
Voice Interaction
ElevenLabs voice integration enables hands-free, spoken conversations — making legal help more accessible to all users.
Document Processing
PDF.js-powered document parsing lets users upload leases, notices, or forms and receive AI-driven analysis instantly.
Testing & Quality Assurance
Testing Suite
Unit & Component
Vitest with full coverage reporting
End-to-End
Playwright with accessibility testing baked in
Visual Regression
Automated screenshot diffing for UI consistency
SSE Parser
Dedicated tests for real-time streaming reliability
Code Quality Gates
ESLint + TypeScript strict mode on every commit
Bundle analysis with chunk safety validation
Security audit scanning all dependency patterns
CI/CD Pipeline & Deployment
Every code change passes through four automated quality gates before reaching production at ltbbuddy.app on Vercel — with auto-deploy on main and staging environments for every branch.
AgentSync Multi-Agent Protocol
Agents Supported
  • Claude (Anthropic)
  • Codex (OpenAI)
  • GitHub Copilot
Branch Convention
[agent-name]/[feature] — clean isolation per agent per task
Session Workflow
01
Read AgentTracker.md for context
02
Run AgentSync: Start Session
03
Check git status, create feature branch
04
Execute task work with hot-file tracking
05
Run AgentSync: End Session + commit
Development Scripts — 47+ Commands
🔧 Core Dev
  • npm run dev — dev server
  • npm run build — production build
  • npm run preview — local preview
  • npm run lint — code linting
🧪 Testing
  • npm run test — unit tests
  • npm run test:coverage — coverage
  • npm run test:e2e — E2E tests
  • npm run security:audit — security
🚀 Deployment
  • npm run smoke:chat — smoke test
  • npm run verify:prod — full verify
  • npm run preflight:ship — pre-deploy
  • npm run monitor:routes — health checks
MCP Servers & Integrations
Gamma
Presentations, documents & webpages generated via MCP
Figma
Design-to-code with Code Connect integration
Vercel
Deployment management & production monitoring
Linear
Issue tracking & sprint management
Notion
Docs, PM sync & structured databases
Gmail & Calendar
Communication & scheduling automation
Project Structure & Dependencies
Source Structure
src/components — React UI components
src/pages — route-level page views
src/hooks — custom React hooks
src/lib — shared utilities
src/integrations — external service clients
scripts/ — 47+ automation scripts
tests/ — full test suites
docs/ — development guides
102 Total Dependencies
26
Radix UI
Accessible, headless UI primitives
102
Total Packages
Carefully curated dependency tree
Key packages include Supabase for auth & data, React Query for server state, date-fns for date handling, PDF.js for document parsing, ElevenLabs for voice, and Recharts for data visualization.
Built to Ship. Built to Scale.
LTB Buddy combines a production-grade frontend, robust multi-agent orchestration, comprehensive testing, and a fully automated CI/CD pipeline — all in service of one mission: making tenant rights accessible to every Ontarian.
🌐 Live
ltbbuddy.app on Vercel
🤖 AI-Powered
Multi-agent AgentSync protocol
🔒 Quality-Gated
47+ scripts, 4-stage CI/CD
Accessible
Mobile-first, WCAG-aware design