Live Demo β’ Report Bug
TenantShield is an award-winning web application that empowers tenants to identify potential lease violations, understand their rights, and take informed action. Take a photo. Know your rights. Get justice.
Housing disputes can be overwhelming. TenantShield bridges the gap by using AI to analyze evidence and provide instant legal context. Users can upload photos of issues like mold, pests, or damage, and our platform generates a detailed report including applicable local laws, recommended actions, and even a draft message to their landlord.
Built for the CSHub Hack Day, TenantShield won π₯ 1st Place ($400) and the π Best Use of Gemini AI award.
- πΈ AI-Powered Analysis β Uses Gemini Multimodal capabilities to analyze images and text descriptions of housing issues
- π Location-Aware Justice β Leverages user location to cite specific, relevant local housing laws and ordinances
- π Comprehensive Reporting β Generates detailed reports covering tenant rights, legal citations, and next steps
- βοΈ Automated Drafts β Creates pre-written, professional messages for users to send to their landlords
- βοΈ Legal Aid Locator β Identifies and displays nearby legal aid clinics on a map
- π± Streamlined Interface β Intuitive, step-by-step form for uploading evidence and describing problems
β Multimodal analysis and report generation
β Location services and legal aid discovery
-
Clone the repository
git clone https://github.com/YourUsername/TenantShield.git cd TenantShield -
Install dependencies Backend:
cd server npm installFrontend:
cd ../client npm install -
Set up environment variables
Create a
.envfile in the root directory:PORT=5001 GEMINI_API_KEY=your_gemini_api_key_here GEMINI_MODEL=gemini-2.0-flash GOOGLE_PLACES_API_KEY=your_google_places_api_key_here
Create a
.envfile in the /client directory:VITE_API_URL=http://localhost:5001 VITE_GOOGLE_MAPS_API_KEY=your_google_maps_api_key_here
Note: You'll need to obtain API keys from:
- Google AI Studio (for Gemini)
- Google Cloud Console (for Google Maps & Places APIs)
-
Start the development server
cd server node index.jscd client npm run dev -
Open your browser
Navigate to: http://localhost:3000
- Upload Evidence β Take or upload photos of the housing issue (mold, leaks, damage)
- Add Details β Provide a brief written description of the problem history
- Set Location β Input your address or auto-detect location to find relevant laws
- Run Scan β TenantShield sends the data to Gemini AI for analysis
- View Report β Review your rights, cited laws, and recommended next steps
- Take Action β Use the auto-generated email draft or find a local legal clinic
Built with β€οΈ at CSHub Hack Day by:
- Jason Tan β @Jason-Tan1
- Kurt Jallo β @kurtjallo
- Harit Oza β @harito-git
- Ryan Reddy
Distributed under the MIT License. See LICENSE for more information.
- CSHub Hack Day for hosting an amazing hackathon
- Google AI Studio for the Gemini API
- Google Maps Platform for location services
Made at York University CSHub Hackathon