Skip to content

(1ST PLACE AT CSHUB HACKATHON) AI-powered tenant rights assistant. Upload photos of mold, pests, leaks, or damage; the app analyzes evidence, cites local housing laws, and drafts a ready-to-send legal notice for tenants to help confront landlords.

License

Notifications You must be signed in to change notification settings

Jason-Tan1/TenantShield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

59 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ TenantShield

AI-Powered Tenant Rights & Advocacy Platform

Live Demo β€’ Report Bug

Static Badge Static Badge

πŸ“– 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

HTML5 CSS3 JavaScript React Vite

Backend & Services

Node.js Express.js

APIs

Google Gemini – Multimodal analysis and report generation
Google Maps – Location services and legal aid discovery

Deployment

Vercel

πŸš€ Getting Started

Installation

  1. Clone the repository

    git clone https://github.com/YourUsername/TenantShield.git
    cd TenantShield
    
  2. Install dependencies Backend:

    cd server
    npm install

    Frontend:

    cd ../client
    npm install
  3. 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:

  4. Start the development server

    cd server
    node index.js
    cd client
    npm run dev
  5. Open your browser

    Navigate to: http://localhost:3000


πŸ’‘ Usage

  1. Upload Evidence – Take or upload photos of the housing issue (mold, leaks, damage)
  2. Add Details – Provide a brief written description of the problem history
  3. Set Location – Input your address or auto-detect location to find relevant laws
  4. Run Scan – TenantShield sends the data to Gemini AI for analysis
  5. View Report – Review your rights, cited laws, and recommended next steps
  6. 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

Made at York University CSHub Hackathon

⬆ Back to Top

About

(1ST PLACE AT CSHUB HACKATHON) AI-powered tenant rights assistant. Upload photos of mold, pests, leaks, or damage; the app analyzes evidence, cites local housing laws, and drafts a ready-to-send legal notice for tenants to help confront landlords.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages