- Team ID: 6807
- Level of Achievement: Gemini
- Team Members: Gavin & Wei Xiong
- Deployment: finditnus.vercel.app
- Telegram Bot: FindItNUS
- Problem Motivation
- Target Audience & User Stories
- Our Solution
- System Features
- Tech Stack
- System Architecture
- Planning & Version Control
- Technical Proof of Concept
- Testing
- Development Plan
- Frontend Application
- Backend Application
- Database
Lost & found management within campus is traditionally fragmented across informal, unstructured Telegram channels. While these platforms provide a quick way to disseminate information, uploaded posts are often unstructured. Crucial metadata, such as the exact date, time, and precise geographical location of the item is often missing or ambiguous. Furthermore, listings are also not consistently updated after items have been returned to their owners, resulting in outdated or redundant postings. Consequently, users may need to spend significant time manually filtering through irrelevant posts when searching for their belongings. A more organised and visually intuitive digital platform could improve how lost & found information is reported, searched and managed within the NUS community.
Primary Users: NUS students and staff who frequently commute around the school campus and need an immediate, localized way of reporting or tracking misplaced belongings.
Secondary Users: Campus security and student club leaders who manage physical lost & found boxes and need a digital inventory to broadcast unclaimed items.
- The Finder: As a user who has found and kept an item, I want to create a structured listing via the Telegram bot so that the owner can contact me to arrange collection.
- The Loser: As a user who has lost an item, I want to visually browse interactive map listings so I can quickly check if anything was reported near the locations I visited today.
- The Spotter: As a student rushing to a class who spots an item, I want to quickly report it as Spotted via the Telegram Bot to alert the community, without being forced to keep it in my possession.
- The Reclaimer: As a finder who created the listing, I want to use the Telegram Bot to toggle the item's state to reclaimed or delete it completely so it instantly disappears from the map layout.
- The Subscriber: As a user who lost an item, I want to register a subscription ticket via the Telegram Bot containing specific filter tags so the system can instantly send a push notification to my phone the moment a matching item is uploaded.
FindItNUS is an all-in-one lost & found application designed specifically for the NUS Community. The system comprises of an asynchronous Telegram Bot with a responsive React-based web map layout. This allows students to visually track, browse, filter, and reclaim lost items easily.
We aim to bridge this gap by designing a unified, dual-interface platform.
- A structured Telegram Bot Interface that standardizes item reporting right at the point of discovery.
- An interactive Find-My Style Web Interface that maps reported items as precise coordinate pins on top of the campus layout map, showing visual preview cards of corresponding lost items.
FindItNUS makes reclaiming lost possessions predictable, efficient, and reliable.
Feature 1: Conversational Telegram Bot Interface
- Status: Implemented
- User role: Public user / Registered user
- What it does: Provides a user-facing Telegram chat client that routes actions across adaptive workflows (Finders vs. Spotters vs. Losers) with custom buttons and navigation buttons to standardize item reporting.
- Complexity justification: Requires implementing a robust multi-state message router within the Telegram API to manage conversational context, record user inputs accurately, and allow users to backtrack without affecting the database payload.
- Design Decisions: We chose inline dynamic keyboards over raw text parsing to strictly control data validation and eliminate edge-case data corruption before it reaches our database.
Feature 2: Structured Campus Location Navigator
- Status: Implemented
- User role: Public user
- What it does: Replaces messy text and image inputs with a multi-tiered keyboard tree linking broad faculty zones to localized landmark points, automatically converting raw button tags into coordinates and human-readable labels.
- Complexity justification: Requires a robust coordinate registry mapping logic, alongside dynamic routing for custom text spots and pairs them with the baseline coordinates of surrounding faculty zones.
- Design decisions: We implemented a randomized coordinate offset (Jitter) algorithm to ensure predefined landmark map pins dont invisibly stack on top of each other.
Feature 3: Personal Listing Portfolio Manager
- Status: Implemented
- User role: Registered user
- What it does: Provides a
/managecommand dashboard giving students full ownership to view, update statuses (e.g. active → reclaimed), or permanently delete their submitted reports directly inside Telegram. - Complexity justification: Requires asynchronous query scripts to filter database records by chat ID, alongside backend utilities that synchronously wipe documents out of database without manual intervention.
- Design decisions: We attached an inline interaction row directly inside the Telegram bot which allows for rapid, one-click inventory actions without forcing the user to open a separate web portal.
Feature 4: End-to-End Image Processing Pipeline
- Status: Implemented
- User role: Public user / Registered user
- What it does: An automated image pipeline which optimizes and uploads images of found items to Cloudinary and syncing it to the database payload.
- Design decisions: We offloaded image storage completely to Cloudinary instead of Firestore to isolate media bandwidth and bypass Firebase pricing limits.
Feature 5: Live Visual Web Map & Gallery Dashboard
- Status: Implemented
- User role: Public user
- What it does: A public website mapping campus lost & found items across interactive visual coordinates with corresponding visual preview cards.
- Complexity justification: Establishing real-time reading loops connecting the frontend to Firestore database dynamically, ensuring instant pin rendering without browser refresh.
- Design decisions: We built our interface with React and Next.js, utilizing Leaflet and OpenStreetMap integrations to handle the visual map tiles.
Feature 6: Search and Filter Functionality
- Status: Implemented
- User role: Public user
- What it does: Allows users to search and filter lost-and-found items across the campus.
- Complexity & Design: We ensured strict substring parsing rather than loose prefixing, yielding highly accurate localized results.
- Design decisions: We implemented this into the frontend for easier filtering of items on the map.
Feature 7: Intelligent "Lost Ticket" Matchmaking Engine
- Status: Implemented
- User role: Registered user
- What it does: An active notification service that cross-references newly found item reports against missing item requests to dispatch instant push notifications.
- Complexity justification: Requires an automated background query thread across multiple Firestore collections based on category and location of item.
- Design decisions: The engine parses multi-keyword substrings by combining both the newly uploaded Item Name and Item Description. To guarantee relevance, it strictly verifies that the Finder's macro-location matches the Loser's designated search zone. The dispatched alert contains a dynamically formatted URL that opens the web map directly onto the specific item.
Feature 8: Automated Map Cleanup (14-day TTL)
- Status: Implemented
- User role: Admin
- What it does: A custom background Python thread that automatically sweeps and deletes item listings, tickets, and map pins once they expire (14 days).
- Complexity justification: Relying solely on Firestore's native TTL would leave orphaned image Cloudinary database. We built a custom, non-blocking asynchronous thread that wakes up periodically, identifies expired elements, securely executes the Cloudinary deletion API via
public_id, and then drops the Firestore document—ensuring complete data deletion. - Design decisions: Instead of building a custom cron job or relying Firestore's native TTL expiry rules, we had to implement a custom script to avoid the paid subscription for Firestore's TTL.
Feature 9: Continuous Cloud Infrastructure
- Status: Implemented
- User role: Admin
- What it does: Ensures 24/7 Telegram bot uptime without dropping user messages or requiring manual server restarts.
- Complexity & Design: Deployed the Python application on Render with a concurrent handler listening on a designated port. We integrated UptimeRobot to ping the server using
GETrequests every 5 minutes, preventing the container from spinning down due to inactivity and completely eliminating webhook conflicts. - Design decisions: We implemented using UptimeRobot as this allows our backend Telegram Bot to stay active 24/7, complimenting our live frontend visual map dashboard.
| Layer | Technology | Why we chose it |
|---|---|---|
| Frontend | React / Next.js | High component reusability for map UI, excellent state management, and seamless integration with Leaflet mapping libraries. |
| Backend | Python (python-telegram-bot) |
Python offers unparalleled speed for scripting asynchronous state-machines and processing binary image buffers. |
| Database | Firebase Firestore | A NoSQL document database fits our schema perfectly, allowing real-time websocket synchronization directly to the frontend. |
| Storage | Cloudinary API | Offloads heavy image hosting from our database; handles dynamic image down-sampling and secure signature validation. |
| Hosting | Vercel & Render | Vercel hosts the Next.js frontend seamlessly, while Render hosts the continuous Python backend execution environment. |
Figure 1: High-level data flow diagram showing how the Telegram Bot, Database, and React Frontend communicate
Data Flow Explanation: The system is heavily decoupled via Firestore. The Python bot acts as the primary "Write" client, packing user inputs into standard JSON payloads. The React application hosted on Vercel acts as the "Read" client. Cloudinary exists as a parallel storage node to isolate media bandwidth.
The Push Notification Flow (Matchmaking):
When a Finder uploads an item, the backend temporarily halts the success message, queries the lost_tickets collection, concatenates strings to hunt for keyword intersections within the same faculty zone, fires the Telegram API alerts to matching chat_id, and then finalizes the upload.
Key User Journey:
- The Finder (Data Creation):
- Steps: User opens Telegram bot
/start➔ Clicks "I Found an Item" ➔ Navigates "Computing" > "COM1" ➔ Uploads photo ➔ Enters description ➔ Payload is saved to Firestore. - Outcome: The item instantly appears as a clickable pin on the live web map.
- Steps: User opens Telegram bot
- The Loser (Data Retrieval):
- Steps: User launches the web portal via the
/websitecommand ➔ Filters the interactive Leaflet map by the "Computing" zone ➔ Clicks a pin to view the uploaded photo and description. - Outcome: User identifies their item and uses the details to retrieve it.
- Steps: User launches the web portal via the
- The Spotter (Rapid Ping):
- Steps: User opens bot
/start➔ Clicks "I Spotted an Item" ➔ Selects "Central Library" ➔ Takes a quick photo. - Outcome: A
Status: "spotted"pin is added to the map alerting the community, without the user taking the item.
- Steps: User opens bot
- The Reclaimer (Data Cleanup):
- Steps: Finder opens bot ➔ Runs
/manage➔ Selects the active item ➔ Clicks "Mark as Reclaimed". - Outcome: The Firestore status updates to
reclaimed, instantly removing the pin from the active web map.
- Steps: Finder opens bot ➔ Runs
- GitHub Repository: https://github.com/Lokwx/Orbital_FindItNUS
- Branching Strategy: We maintain a
mainbranch for production codes and separate feature branches for isolated development. Manual testing are required before merging to the shared codebase. - Commit Conventions: We enforce strict conventional commits to map updates to specific features, bug fixes, or documentation. Some examples from our development include:
feat: added /website and /manage dashboard logicfix: update the recent icons with google map icons
Live System Demo: https://finditnus.vercel.app
What the POC demonstrates:
- A user can open the Telegram bot, navigate the state-machine, and upload an image of a found item. This data is successfully persisted to our Firestore
listingscollection. - The image is passed through our Cloudinary pipeline and generates a secure URL.
- The React frontend actively listens to the database and instantly renders the Leaflet map pin and sidebar gallery card with the correct image and jitter offsets applied.
- A user can execute the
/managecommand in Telegram to mark their live listing as "reclaimed," which successfully updates the frontend UI dynamically.
To validate the system, we executed comprehensive testing covering standard workflows, negative failure states, and real-world usability.
| Test Case | Steps | Expected Result | Actual Result | Pass? |
|---|---|---|---|---|
| Finder Workflow | 1. Run /start2. Select "Finder" ➔ "UTown" 3. Upload photo/text. 4. Check Web Map. |
Bot confirms upload. Web map instantly displays a new pin at UTown with "Found" indicator. | As expected. | ✅ |
| Spotter Workflow | 1. Run /start2. Select "Spotter" ➔ "Central Library" 3. Upload photo/text. 4. Check Web Map. |
Bot confirms upload. Web map instantly displays a new pin with "Spotted" indicator. | As expected. | ✅ |
| Loser Workflow | 1. Receive Match Notification. 2. Click the provided URL link. |
The Web Map loads seamlessly, bypasses the main layout, and automatically zooms into the exact matching pin/card. | As expected. | ✅ |
| Portfolio Sync | 1. Run /manage2. Select active item. 3. Click "Delete Entirely". |
Item listing is deleted in Firestore & Cloudinary. Frontend UI filters it out. | As expected. | ✅ |
| Test Case | Scenario Trigger | System Mitigation | Pass? |
|---|---|---|---|
| Invalid Text Input | User types manual text messages when the bot expects an inline button click (e.g., choosing a location). | The bot's CommandHandler strictly ignores non-state text inputs, preventing database corruption or application crashes. |
✅ |
| Cloudinary Timeout | The image buffer fails to upload to Cloudinary mid-flow due to network failure. | The backend utilizes try/except blocks. It catches the failure, aborts the database write to prevent empty pins, and prompts the user to try again. |
✅ |
We conducted guided tasks with actual NUS students to identify UX friction points.
- Feedback: Map clutter made clicking pins difficult in dense areas (e.g., COM1).
- Resolution: We added a "View All Listings" sidebar that allows users to click the item text, which triggers a state change to immediately focus the map on the corresponding marker.
Completed (By Milestone 3)
- Feature 1: Conversational Telegram Bot Interface
- Feature 2: Structured Campus Location Navigator
- Feature 3: Personal Listing Portfolio Manager (/manage)
- Feature 4: End-to-End Image Processing Pipeline
- Feature 5: Live Visual Web Map & Gallery Dashboard
- Feature 6: Search and Filter Functionality
- Feature 7: Intelligent "Lost Ticket" Matchmaking Engine
- Feature 8: Automated Map Cleanup (14-day TTL)
- Feature 9: Continuous Cloud Infrastructure
- Comprehensive UI/UX updates across the web dashboard
- Executing user testing to gather feedback
Risks and Mitigations:
- Risk: Data formatting desync between the frontend and backend.
- Mitigation: We established a JSON schema database payload that should not be modified to prevent map rendering crashes.
We use 2 main document collections in Firestore:
listings: Stores active item text descriptions, location labels, coordinates, status flags, and Cloudinary image links.lost_tickets: Stores active search subscription tickets and filter tags created by users.
