Skip to content

dougdevitre/legal-resource-discovery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔍 Legal Resource Discovery Engine — Find the Right Help Instantly

License: MIT TypeScript 5.0 Contributions Welcome PRs Welcome

The Problem

People in legal crisis cannot find trusted resources -- legal aid has waitlists, services vary by location, eligibility rules are complex, and urgency is not triaged. A person facing eviction in 48 hours gets the same response as someone exploring a minor dispute months away. The help exists, but the connection is broken.

The Solution

A geo-based legal resource search engine with eligibility filtering, urgency prioritization, and "best next help" recommendations tailored to the user's specific situation. It connects people to the right resource at the right time, with realistic wait-time estimates and eligibility pre-screening.

Architecture

flowchart LR
    subgraph Input["User Context"]
        LOC[Location]
        CT[Case Type]
        INC[Income]
        URG[Urgency]
    end

    subgraph Engine["Search Engine"]
        GF[Geo Filter]
        EM[Eligibility Matcher]
        US[Urgency Scorer]
        GF --> EM --> US
    end

    subgraph DB["Resource Database"]
        LA[Legal Aid]
        PB[Pro Bono]
        CH[Court Help]
        CO[Community Orgs]
    end

    subgraph Ranking["Ranking Engine"]
        RK[Relevance + Urgency Score]
    end

    subgraph Output["Results"]
        PL[Prioritized List]
        DI[Distance + Wait Times]
        EL[Eligibility %]
        REF[Referral Tracker]
    end

    Input --> Engine
    DB --> Engine
    Engine --> Ranking
    Ranking --> Output
Loading

Who This Helps

  • People in legal crisis -- find help fast when every hour counts
  • Legal aid intake staff -- triage and route referrals efficiently
  • Court navigators -- connect litigants to the right services
  • 211/hotline operators -- provide accurate legal resource referrals
  • Community health workers -- bridge the gap between health and legal needs

Features

  • Geo-based legal aid search with radius filtering -- find resources near any address, zip code, or county
  • Income/eligibility pre-screening -- check qualification before sending someone to a waitlist
  • Urgency-based prioritization -- emergency situations surface faster, more relevant results
  • "Best next help" recommendations -- when the first choice is full, suggest realistic alternatives
  • Wait time and capacity indicators -- know what to expect before calling
  • Referral tracking and follow-up -- track whether referrals led to actual help

Quick Start

npm install @justice-os/resource-discovery
import { SearchEngine, EligibilityMatcher } from '@justice-os/resource-discovery';
import type { SearchQuery, SearchResult } from '@justice-os/resource-discovery';

// Search for eviction help near a zip code
const engine = new SearchEngine();

const results: SearchResult[] = await engine.search({
  location: { zipCode: '64108' },
  caseType: 'eviction',
  urgency: 'emergency',
  income: { annual: 28000, householdSize: 3 },
  radiusMiles: 25,
});

console.log(`Found ${results.length} resources:\n`);

for (const result of results) {
  console.log(`${result.resource.name}`);
  console.log(`  Distance: ${result.distanceMiles} mi`);
  console.log(`  Eligibility: ${result.eligibilityScore}%`);
  console.log(`  Wait time: ${result.estimatedWaitDays} days`);
  console.log(`  Phone: ${result.resource.phone}`);
  console.log();
}

Roadmap

  • Real-time capacity feeds from legal aid organizations
  • SMS/text-based search for low-connectivity users
  • Integration with 211 and court self-help center databases
  • Multi-language search interface via multilingual-justice
  • AI-powered "what you need to bring" preparation checklists
  • Outcome tracking to measure referral-to-help conversion rates

Project Structure

src/
├── index.ts
├── search/
│   ├── search-engine.ts       # SearchEngine — main orchestrator
│   ├── geo-filter.ts          # GeoFilter — radius, zip, county
│   └── ranking-engine.ts      # RankingEngine — urgency + relevance scoring
├── eligibility/
│   ├── matcher.ts             # EligibilityMatcher — income, case type, demographics
│   └── rules/
│       └── README.md          # How to add eligibility rules
├── resources/
│   ├── database.ts            # ResourceDatabase — CRUD
│   ├── provider-types.ts      # Legal aid, pro bono, court help, community org types
│   └── capacity-tracker.ts    # CapacityTracker — wait times, availability
├── referrals/
│   └── referral-tracker.ts    # ReferralTracker — follow-up tracking
├── components/
│   ├── ResourceSearch.tsx     # Search interface
│   ├── ResourceCard.tsx       # Individual result
│   └── MapView.tsx            # Map with pins
└── types/
    └── index.ts

Justice OS Ecosystem

This repository is part of the Justice OS open-source ecosystem — 32 interconnected projects building the infrastructure for accessible justice technology.

Core System Layer

Repository Description
justice-os Core modular platform — the foundation
justice-api-gateway Interoperability layer for courts
legal-identity-layer Universal legal identity and auth
case-continuity-engine Never lose case history across systems
offline-justice-sync Works without internet — local-first sync

User Experience Layer

Repository Description
justice-navigator Google Maps for legal problems
mobile-court-access Mobile-first court access kit
cognitive-load-ui Design system for stressed users
multilingual-justice Real-time legal translation
voice-legal-interface Justice without reading or typing
legal-plain-language Turn legalese into human language

AI + Intelligence Layer

Repository Description
vetted-legal-ai RAG engine with citation validation
justice-knowledge-graph Open data layer for laws and procedures
legal-ai-guardrails AI safety SDK for justice use
emotional-intelligence-ai Reduce conflict, improve outcomes
ai-reasoning-engine Show your work for AI decisions

Infrastructure + Trust Layer

Repository Description
evidence-vault Privacy-first secure evidence storage
court-notification-engine Smart deadline and hearing alerts
justice-analytics Bias detection and disparity dashboards
evidence-timeline Evidence timeline builder

Tools + Automation Layer

Repository Description
court-doc-engine TurboTax for legal filings
justice-workflow-engine Zapier for legal processes
pro-se-toolkit Self-represented litigant tools
justice-score-engine Access-to-justice measurement
justice-app-generator No-code builder for justice tools

Quality + Testing Layer

Repository Description
justice-persona-simulator Test products against real human realities
justice-experiment-lab A/B testing for justice outcomes

Adoption Layer

Repository Description
digital-literacy-sim Digital literacy simulator
legal-resource-discovery Find the right help instantly
court-simulation-sandbox Practice before the real thing
justice-components Reusable component library
justice-dev-starter-kit Ultimate boilerplate for justice tech builders

Built with purpose. Open by design. Justice for all.


⚠️ Disclaimer

This project is provided for informational and educational purposes only and does not constitute legal advice, legal representation, or an attorney-client relationship. No warranty is made regarding accuracy, completeness, or fitness for any particular legal matter. Always consult a licensed attorney in your jurisdiction before making legal decisions. Use of this software does not create any professional-client relationship.


Built by Doug Devitre

I build AI-powered platforms that solve real problems. I also speak about it.

CoTrackPro · [email protected]

Hire me: AI platform development · Strategic consulting · Keynote speaking

AWS AI/Cloud/Dev Certified · UX Certified (NNg) · Certified Speaking Professional (NSA) Author of Screen to Screen Selling (McGraw Hill) · 100,000+ professionals trained

About

Find the right help instantly — geo-based legal resource discovery engine

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors