How falekartik418/project-loop works
LOOP is a multi-tenant customer-feedback intelligence platform. Users submit feedback or import it, then review classified feedback, explore analytics and theme trends, ask questions grounded in feedback, and generate shareable Voice-of-Customer reports. Its server-side API routes enforce workspace and role access while coordinating persistence and AI services. The README documents the overall browser-to-API architecture; source excerpts confirm several route-level calls. Other feature connections are omitted where the sampled source does not show the exact request wiring.
Main entry points: db.ts Prisma client · ai.ts AI capabilities · feedback/route.ts Feedback intake · ask/route.ts Grounded Q&A
Components 24
User experience
- Feedback inbox
app/feedback/page.tsx - Analytics dashboard
app/dashboard/page.tsx - Trend explorer
app/trends/page.tsx - Theme manager
app/themes/page.tsx - Ask LOOP
app/ask/page.tsx - VOC reports
app/reports/page.tsx - Workspace settings
app/workspace/page.tsx - Member management
app/members/page.tsx
Feedback intelligence
- Feedback intake
app/api/feedback/route.ts - CSV ingestion
app/api/feedback/import/route.ts - Dashboard analytics
app/api/insights/route.ts - Theme trends
app/api/trends/route.ts - Grounded Q&A
app/api/ask/route.ts - Report generation
app/api/reports/route.ts - Theme routes
app/api/themes
Workspace operations
- Workspace routes
app/api/workspace
Platform services
- Authentication
lib/auth.ts - Session and role guards
lib/guard.ts - AI capabilities
lib/ai.ts - Semantic retrieval
lib/search.ts - Prisma client
lib/db.ts
Other components
- Workspace user
- PostgreSQL
- Google Gemini
Connections 29
- Workspace user → Feedback inbox: submits feedback
- Workspace user → Ask LOOP: asks questions
- Workspace user → VOC reports: requests reports
- Feedback inbox → Feedback intake: uses app API
- Analytics dashboard → Dashboard analytics: uses app API
- Trend explorer → Theme trends: uses app API
- Theme manager → Theme routes: uses app API
- Ask LOOP → Grounded Q&A: uses app API
- VOC reports → Report generation: uses app API
- Workspace settings → Workspace routes: uses app API
- Member management → Workspace routes: uses app API
- Feedback intake → Session and role guards: checks roles
app/api/feedback/route.ts - Feedback intake → AI capabilities: classifies and embeds
app/api/feedback/route.ts - CSV ingestion → AI capabilities: classifies feedback
app/api/feedback/import/route.ts - Grounded Q&A → AI capabilities: answers questions
app/api/ask/route.ts - Grounded Q&A → Semantic retrieval: retrieves context
- Report generation → AI capabilities: generates narrative
app/api/reports/route.ts - Report generation → Prisma client: reads and writes
app/api/reports/route.ts - Feedback intake → Prisma client: reads and writes
app/api/feedback/route.ts - Dashboard analytics → Prisma client: queries metrics
app/api/insights/route.ts - Theme trends → Prisma client: queries themes
app/api/trends/route.ts - Theme routes → Prisma client: persists themes
app/api/themes/route.ts - Workspace routes → Prisma client: persists workspace data
app/api/workspace/route.ts - Prisma client → PostgreSQL: queries
- AI capabilities → Google Gemini: calls model API
lib/ai.ts - Semantic retrieval → AI capabilities: embeds queries
lib/search.ts - Semantic retrieval → Prisma client: retrieves feedback
lib/search.ts - Session and role guards → Authentication: loads session
lib/guard.ts - Authentication → Prisma client: looks up user
lib/auth.ts