🛡️ TenantShield
AI-Powered Tenant Rights & Advocacy Platform
Live Demo •
Report Bug
📖 About The Project
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.
✨ Key Features
- 📸 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
🛠️ Built With
Frontend

Backend & Services

APIs
– Multimodal analysis and report generation
– Location services and legal aid discovery
Deployment

🚀 Getting Started
Installation
-
Clone the repository
git clone https://github.com/YourUsername/TenantShield.git
cd TenantShield
-
Install dependencies
Backend:
cd server
npm install
Frontend:
cd ../client
npm install
-
Set up environment variables
Create a .env file 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 .env file 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:
-
Start the development server
cd server
node index.js
cd client
npm run dev
-
Open your browser
Navigate to: http://localhost:3000
💡 Usage
- 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
👨💻 Team
Built with ❤️ at CSHub Hack Day by:
📄 License
Distributed under the MIT License. See LICENSE for more information.
🙏 Acknowledgments
- CSHub Hack Day for hosting an amazing hackathon
- Google AI Studio for the Gemini API
- Google Maps Platform for location services
评论