Skip to content

SpectrrT/counsel

Repository files navigation

Counsel

AI-powered legal advocate for NYC tenants. Describe your housing situation in plain English (or speak it in your language), and Counsel instantly analyzes your legal rights, pulls real-time building violation data, generates a formal complaint letter, and creates a step-by-step action plan.

Features

  • Legal Rights Analysis — Claude analyzes your situation against NYC housing law (Warranty of Habitability, Rent Stabilization, anti-harassment protections, and more) and identifies specific violations with law citations
  • Building Intelligence — Linkup API searches for real-time HPD violations, complaints, and landlord history for your building
  • Action Plan — Step-by-step timeline with deadlines, agencies to contact, and filing instructions
  • Complaint Letter Generator — Produces a formal, legally-grounded complaint letter addressed to the right party. Fully editable in-browser with PDF download and copy-to-clipboard
  • Multilingual Voice Input — BizCrush WebSocket STT integration supports 11 languages with real-time transcription. Speak in Spanish, Mandarin, Arabic, Korean, and more

Tech Stack

  • Frontend: Next.js (App Router) + Tailwind CSS + Framer Motion
  • AI: Anthropic Claude API (claude-sonnet-4-20250514)
  • Search: Linkup API for real-time building data
  • Voice: BizCrush WebSocket STT (live streaming, multilingual)
  • PDF: jsPDF for client-side letter export

Getting Started

  1. Clone the repo:

    git clone https://github.com/TenSae/counsel.git
    cd counsel
  2. Install dependencies:

    npm install
  3. Create .env.local with your API keys:

    ANTHROPIC_API_KEY=your_key
    LINKUP_API_KEY=your_key
    NEXT_PUBLIC_BIZCRUSH_API_KEY=your_key
    
  4. Run the dev server:

    npm run dev
  5. Open http://localhost:3000

Disclaimer

Counsel is an informational tool and does not constitute legal advice. Always consult a licensed attorney for legal matters.

About

AI Legal Advocate for Tenants

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors