How chandrasekharreddy-basireddy/lnf works
L&F is a lost-and-found platform for a campus or office. People browse and search listings, report lost or found property, submit claims for staffed verification, and collect approved items using a one-time handover code. Staff manage intake, custody, matching, disputes, and disposal; administrators oversee roles, audits, and metrics. Supabase provides auth, database, and photo storage, while scheduled jobs handle retention and notification delivery. The graph combines documented capabilities with relationships visible in the supplied excerpts and SOURCE INDEX; unsampled implementation links are omitted where not established.
Main entry points: supabase-server.ts Supabase clients · data.ts Application data access · route.ts Retention and outbox job · signin.ts Sign-in flow
Components 34
Public board and intake
- Search and browse
src/app/browse/page.tsx - Home board
src/app/page.tsx - Item listing
src/app/items/[ref]/page.tsx - Lost/found intake
src/components/report-form.tsx - Report actions
src/lib/actions/reports.ts
Claims and communication
- Claim review flow
src/app/claims/[ref]/page.tsx - Claim actions
src/lib/actions/claims.ts - Masked messaging
src/components/chat-thread.tsx - Disputes
src/app/disputes/page.tsx
Staff and administration
- Staff desk
src/app/staff/page.tsx - Staff controls
src/components/staff-actions.tsx - Custody and matching
src/app/staff - Institution analytics
src/app/staff/analytics/page.tsx - Admin console
src/app/admin/page.tsx - Admin actions
src/lib/actions/admin.ts - Monthly report generation
src/lib/monthly-report.ts
Data and security
- Application data access
src/lib/data.ts - Supabase clients
src/lib/supabase-server.ts - Input and path validation
src/lib/validation.ts - Sign-in flow
src/lib/auth/signin.ts - Magic-link confirmation
src/app/auth/confirm/route.ts - Supabase database and storage
- Runtime configuration
src/lib/env.ts - Request security helpers
src/lib/http.ts - Shared product copy
src/lib/copy.ts
Notifications and offline
- Email delivery
src/lib/email.ts - Retention and outbox job
src/app/api/cron/housekeeping/route.ts - Push dispatcher
src/app/api/cron/push/route.ts - Push services
src/lib/push.ts - Offline desk sheet
src/lib/offline.ts - Service worker policy
public/sw-policy.js - Brevo email service
- Web push services
Other components
- Visitor or reporter
Connections 44
- Visitor or reporter → Home board: opens board
README.md - Visitor or reporter → Search and browse: searches listings
README.md - Visitor or reporter → Lost/found intake: reports property
README.md - Home board → Application data access: loads board data
src/app/page.tsx - Search and browse → Application data access: loads results
- Item listing → Application data access: loads item
- Lost/found intake → Report actions: submits intake
src/components/report-form.tsx - Report actions → Supabase clients: writes reports
src/lib/actions/reports.ts - Visitor or reporter → Claim review flow: submits claim
README.md - Claim review flow → Claim actions: reviews claim
- Visitor or reporter → Masked messaging: uses message thread
README.md - Masked messaging → Supabase clients: loads conversations
src/components/chat-thread.tsx - Visitor or reporter → Disputes: raises dispute
README.md - Staff desk → Application data access: loads desk queue
src/app/staff/page.tsx - Staff desk → Staff controls: offers controls
src/app/staff/page.tsx - Staff controls → Supabase clients: updates listings
- Custody and matching → Application data access: loads operations data
src/lib/data.ts - Institution analytics → Application data access: loads analytics
src/app/staff/analytics/page.tsx - Institution analytics → Monthly report generation: renders reports
src/app/staff/analytics/page.tsx - Admin console → Application data access: loads admin data
src/app/admin/page.tsx - Admin console → Admin actions: offers review actions
src/app/admin/page.tsx - Admin actions → Supabase clients: applies admin changes
- Application data access → Supabase clients: queries and invokes RPCs
src/lib/data.ts - Supabase clients → Supabase database and storage: accesses database
src/lib/supabase-server.ts - Report actions → Input and path validation: validates input
src/lib/actions/reports.ts - Magic-link confirmation → Supabase clients: verifies OTP
src/app/auth/confirm/route.ts - Magic-link confirmation → Sign-in flow: sends welcome
src/app/auth/confirm/route.ts - Sign-in flow → Email delivery: sends sign-in mail
src/lib/auth/signin.ts - Email delivery → Brevo email service: delivers mail
README.md - Retention and outbox job → Supabase clients: runs housekeeping RPC
src/app/api/cron/housekeeping/route.ts - Retention and outbox job → Email delivery: retries outbox mail
src/app/api/cron/housekeeping/route.ts - Retention and outbox job → Supabase database and storage: deletes queued photos
src/app/api/cron/housekeeping/route.ts - Push dispatcher → Supabase clients: claims push batches
src/app/api/cron/push/route.ts - Push dispatcher → Push services: builds push payload
src/app/api/cron/push/route.ts - Push services → Web push services: delivers notifications
- Custody and matching → Offline desk sheet: provides desk sheet
README.md - Service worker policy → Offline desk sheet: serves saved sheet
- Runtime configuration → Supabase clients: configures clients
src/lib/supabase-server.ts - Retention and outbox job → Request security helpers: checks cron secret
src/app/api/cron/housekeeping/route.ts - Push dispatcher → Request security helpers: checks cron secret
src/app/api/cron/push/route.ts - Visitor or reporter → Sign-in flow: requests sign-in code
README.md - Sign-in flow → Supabase database and storage: mints auth token
src/lib/auth/signin.ts - Disputes → Application data access: loads dispute data
src/app/disputes/page.tsx - Staff desk → Shared product copy: uses status labels