How shiza176/leadpilott works
LeadPilot is a lead-discovery application: users search for companies and decision-makers, review results, and can manage saved items and search history. The frontend also exposes account, settings, statistics, and AI-assistance features. The sampled search engine excerpt generates a placeholder company result, so the graph does not assume a live lead-data source or a complete search pipeline. Several route and page implementations were not sampled; their presence is represented without asserting uncertain internal wiring.
Main entry points: App.tsx Web application · index.ts API route registry · client.ts API client · Discovery.tsx Discovery search
Components 23
Frontend experience
- Web application
frontend/src/App.tsx - Discovery search
frontend/src/pages/Discovery.tsx - Search controls
frontend/src/components/SearchBar.tsx - Search interpretation
frontend/src/search-engine.ts - AI assistant
frontend/src/components/AiAssistantPanel.tsx - Saved items
frontend/src/pages/Saved.tsx - Search history
frontend/src/pages/SearchHistory.tsx - API client
frontend/src/api/client.ts - AI API adapter
frontend/src/api/ai-search.ts - Saved API adapter
frontend/src/api/saved.ts - History API adapter
frontend/src/api/history.ts - Login and registration
frontend/src/pages/Login.tsx - Auth API adapter
frontend/src/api/auth.ts
Backend API
- HTTP application
backend/src/app.ts - API route registry
backend/src/routes/index.ts - AI endpoints
backend/src/routes/ai.ts - Saved endpoints
backend/src/routes/saved.ts - History endpoints
backend/src/routes/history.ts
Accounts and identity
- Account endpoints
backend/src/routes/auth.ts
Persistence
- Database access
shared/db/src/index.ts - Data schema
shared/db/src/schema/index.ts
Other components
- User
- Email service
Connections 26
- User → Web application: uses
- Web application → Discovery search: routes to
- Web application → Saved items: routes to
- Web application → Search history: routes to
- Web application → Login and registration: routes to
- Web application → Saved API adapter: loads saved items
- Web application → History API adapter: loads history
- Web application → Auth API adapter: submits credentials
- Discovery search → Search controls: renders
- Discovery search → Search interpretation: interprets query
- Discovery search → AI API adapter: requests AI search
- Saved items → Saved API adapter: requests saved items
- Search history → History API adapter: requests history
- API client → HTTP application: sends API requests
- AI API adapter → API client: uses transport
- Saved API adapter → API client: uses transport
- History API adapter → API client: uses transport
- Auth API adapter → API client: uses transport
- HTTP application → API route registry: dispatches API requests
- API route registry → AI endpoints: registers endpoint
- API route registry → Saved endpoints: registers endpoint
- API route registry → History endpoints: registers endpoint
- API route registry → Account endpoints: registers endpoint
- Account endpoints → Database access: reads and writes users
- Account endpoints → Email service: sends reset email
- Database access → Data schema: uses schema