An intelligent lost & found management system built with React and Supabase that leverages AI to automate item discovery, voice-based posting, and smart matching between lost and found items.
View Live Demo | Watch Demo Video
Frontend: React • TypeScript • Vite • Tailwind CSS
Backend: Supabase (PostgreSQL • Authentication • Storage • Real-time)
AI Services: OpenRouter API (GPT-4o-mini) • Web Speech API
BackTrack Campus Find simplifies the process of reuniting students with their lost belongings by eliminating manual searching and providing intelligent matching through AI-powered features. Users can post lost/found items, search using natural language, upload photos for automatic analysis, and use voice commands—all powered by modern web technologies and AI.
📹 Watch Demo Video - See BackTrack in action!
Secure Authentication - Supabase Auth with email/password and Google OAuth support
AI-Powered Search - Natural language search with intelligent keyword extraction using OpenRouter API (GPT-4o-mini)
Voice-Enabled Item Posting - Hands-free item posting with speech-to-text and AI-powered form filling via Web Speech API and OpenRouter
Smart Item Management - Create, edit, delete items with automatic categorization (Phone, Keys, Stationery, Electronics, Wallet, Clothing, Other)
AI Image Analysis - Upload photos and automatically extract item details (title, description, category) using Vision AI
AI Chat Assistant - Interactive chatbot for finding items using conversational queries with access to real item data
Item Claiming System - Submit claims for found items with verification details and status tracking
Advanced Filtering - Filter items by category, search by keywords, and sort by date with automatic claimed items sorting
Real-time Updates - Live updates for new items using Supabase real-time subscriptions
Modern UI/UX - Beautiful, responsive interface with dark mode, smooth animations, and mobile-first design
Admin Panel - Comprehensive admin dashboard for managing items, claims, and user roles
Framework: React 18 with TypeScript
Build Tool: Vite 5
State Management: React Hooks, React Query (TanStack Query)
UI Library: Radix UI components with Tailwind CSS 4
Forms: React Hook Form with Zod validation
Routing: React Router DOM v6
Animations: Framer Motion
Charts: Recharts (for admin analytics)
Voice: Web Speech API (browser-native)
Styling: Tailwind CSS with custom animations and shadcn/ui components
Platform: Supabase (Backend-as-a-Service)
Database: PostgreSQL (via Supabase)
Authentication: Supabase Auth (JWT-based with OAuth)
File Storage: Supabase Storage
Real-time: Supabase Realtime subscriptions
AI Services:
- OpenRouter API (GPT-4o-mini) for AI chat, voice parsing, and image analysis
- Web Speech API for browser-native speech recognition
Validation: Zod schemas
- Node.js (v18 or higher)
- npm, yarn, or bun
- Supabase account
- OpenRouter API key (for AI features)
Clone the repository
git clone https://github.com/iakshkhurana/backtrack-se.git
cd backtrack-seInstall dependencies
npm install
# or
yarn install
# or
bun installCreate a .env file in the root directory:
# Supabase Configuration
VITE_SUPABASE_URL=your_supabase_project_url
VITE_SUPABASE_PUBLISHABLE_KEY=your_supabase_anon_key
# AI Services (OpenRouter)
VITE_OPENROUTER_API_KEY=your_openrouter_api_keyGetting Your Keys:
-
Supabase:
- Create a project at supabase.com
- Go to Project Settings → API
- Copy the Project URL and anon/public key
-
OpenRouter:
- Sign up at openrouter.ai
- Get your API key from the dashboard
- Add credits to your account (required for API usage)
-
Run SQL Schema:
- Go to your Supabase project SQL Editor
- Run the schema files from
DOCUMENTATION/folder:Complete-SQL-Schema.sql(base schema)High-Priority-Features-Schema.sql(extended features)
-
Enable Storage:
- Go to Storage in Supabase dashboard
- Create a bucket named
item-images - Set it to public for image access
-
Configure Authentication:
- Enable Email/Password authentication
- Enable Google OAuth (optional)
- Add redirect URLs in Authentication settings
Start Development Server
npm run dev
# or
yarn dev
# or
bun run devApplication will be available at http://localhost:8080
Build for Production
npm run build
# or
yarn build
# or
bun run buildPreview Production Build
npm run preview
# or
yarn preview
# or
bun previewbacktrack-se/
├── src/
│ ├── components/ # React components
│ │ ├── ui/ # shadcn/ui components
│ │ ├── AIChat.tsx # AI chat assistant
│ │ ├── VoiceAssistant.tsx # Voice posting assistant
│ │ └── ItemCard.tsx # Item display card
│ ├── pages/ # Page components
│ │ ├── Index.tsx # Landing page
│ │ ├── Lost.tsx # Lost items page
│ │ ├── Found.tsx # Found items page
│ │ ├── PostItem.tsx # Post item form
│ │ ├── Profile.tsx # User profile
│ │ └── Admin.tsx # Admin dashboard
│ ├── services/ # API services
│ │ ├── openrouter.ts # OpenRouter API client
│ │ └── speech-to-text.ts # Speech recognition
│ ├── integrations/ # Third-party integrations
│ │ └── supabase/ # Supabase client & types
│ └── lib/ # Utilities
├── public/ # Static assets
├── DOCUMENTATION/ # Setup guides and docs
└── package.json # Dependencies
- Natural Language Processing: Search using everyday language (e.g., "I lost my blue iPhone near the library")
- Keyword Extraction: Automatically extracts relevant keywords from queries
- Smart Matching: Finds items based on description, category, and location
- Contextual Results: Returns results ranked by relevance
- Interactive Q&A: The assistant asks questions about your item
- Automatic Form Filling: Details are automatically extracted and filled in
- Speech Recognition: Works with browser's native Web Speech API
- Text Fallback: Manual text input available if voice isn't supported
- Automatic Detection: Identifies item type, color, and features using Vision AI
- Detail Extraction: Extracts title, description, and category from images
- One-Click Fill: Automatically fills the form with extracted information
- Verification Details: Submit claims with ownership verification
- Status Tracking: Track claim status (pending, approved, rejected, claimed)
- Owner Notifications: Automatic notifications when items are claimed
- Admin Review: Admin panel for reviewing and approving claims
- Automatic Organization: Claimed items automatically sorted to the end
- Date Sorting: Items sorted by date reported (newest first)
- Category Filtering: Filter by 7 different categories
- Search Integration: Real-time search across all item fields
Authentication:
supabase.auth.signUp()- User registrationsupabase.auth.signInWithPassword()- Email/password loginsupabase.auth.signInWithOAuth()- Google OAuthsupabase.auth.signOut()- User logout
Database:
supabase.from('items').select()- Get itemssupabase.from('items').insert()- Create itemsupabase.from('items').update()- Update itemsupabase.from('items').delete()- Delete itemsupabase.from('claims').insert()- Submit claim
Storage:
supabase.storage.from('item-images').upload()- Upload imagessupabase.storage.from('item-images').getPublicUrl()- Get image URL
AI Chat:
- POST to OpenRouter API with user query
- Returns intelligent keyword extraction and search suggestions
Voice Parsing:
- POST transcribed voice text to OpenRouter
- Returns structured item data (title, description, category, location)
Image Analysis:
- POST image to OpenRouter with Vision model
- Returns extracted item details from image
Platform: Vercel (recommended) or Netlify
Live URL: akshkhurana.store
Deployment Steps:
- Push code to GitHub
- Connect repository to Vercel
- Add environment variables in Vercel dashboard:
VITE_SUPABASE_URLVITE_SUPABASE_PUBLISHABLE_KEYVITE_OPENROUTER_API_KEY
- Deploy
Make sure to set all environment variables in your deployment platform's environment settings. Never commit .env files to version control.
- AI Features Documentation
- Supabase Setup Guide
- Voice Assistant Setup
- OAuth Setup
- High Priority Features Setup
✅ Completed Features:
- Authentication & User Management (Email/Password + Google OAuth)
- Item Posting (Lost/Found with images)
- AI-Powered Search & Chat
- Voice-Enabled Item Posting
- Image Analysis with AI
- Item Claiming System
- Advanced Filtering & Sorting
- Admin Panel
- Real-time Updates
- Dark Mode
- Responsive Design
- Profile Management
🔄 In Progress:
- Enhanced matching algorithms
- Push notifications
- Email notifications for claims
📋 Planned Features:
- Mobile app (React Native)
- SMS notifications
- Advanced analytics dashboard
- Item recommendations
- ✅ Chrome (Recommended)
- ✅ Firefox
- ✅ Safari
- ✅ Edge
- ✅ Opera
Contributions are welcome! Please feel free to submit a Pull Request.
This project is developed as part of academic coursework.
Built with ❤️ by Aksh
BackTrack Campus Find - Reuniting students with their belongings, one item at a time.