Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

63 Commits

Folders and files

Repository files navigation

βš–οΈ JurisNode

AI-Powered Legal Navigation Platform for India


πŸš€ Overview: The Pursuit of Unbiased Legal Navigation

JurisNode is a next-generation legal tech platform explicitly engineered to tackle the core challenge of Unbiased AI Decision-Making. Designed to bridge the justice gap across India, it empowers citizens β€” especially in rural and underserved communities β€” to access purely procedural, strictly neutral, and highly robust legal triage.

In a sector where AI hallucinations or systemic bias can cause devastating legal consequences, JurisNode utilizes a heavily sandboxed generative AI pipeline. Our architecture ensures that all automated guidance is rendered impartially, devoid of personal assumptions, and rigorously checked for compliance with objective procedural laws.

The Problem

  • 70% of India's population lacks access to affordable legal guidance
  • Legal procedures are complex, vary by state, and are often in English
  • Finding the right lawyer across jurisdictions is nearly impossible for common citizens

Our Solution

JurisNode provides:

  • πŸ€– AI Legal Navigator β€” Procedural guidance powered by an intelligent classification engine
  • πŸ“‹ Step-by-step procedures β€” Time-sensitive actions with urgency indicators
  • βš–οΈ Lawyer Discovery β€” Search & assign lawyers by state, specialization, and experience
  • πŸ“„ Document Management β€” Upload, track, and manage case documents
  • πŸ“… Case Timeline β€” Complete audit trail of every case event

✨ Features

Feature Description
πŸ” Auth System JWT-based registration & login with role-based access (Citizen / Lawyer)
πŸ“ Case Management Create, track, and manage legal cases with category classification
πŸ€– AI Chat Real-time AI guidance with typing indicators and formatted responses
🧠 Auto AI Guidance Automatic procedural analysis triggered on case creation
βš–οΈ Lawyer Search Filter by state, specialization, experience; one-click assignment
πŸ“„ Document Upload Drag-and-drop file uploads with case-specific storage
πŸ“… Timeline Chronological event tracking for complete case history
πŸ”” Toast Notifications Elegant slide-in notifications replacing browser alerts
πŸ“Š Dashboard Role-specific views with pending assignments and case overview

πŸ—οΈ Tech Stack

Frontend:    Next.js 16 (App Router) + React 19
Styling:     Vanilla CSS with custom design system
Backend:     Next.js API Routes (Node.js)
Database:    SQLite via Prisma ORM
Auth:        JWT (jsonwebtoken + bcryptjs)
AI Engine:   Custom rule-based classification + guidance engine

πŸ“ Project Structure

jurisnode/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ api/
β”‚   β”‚   β”œβ”€β”€ ai/chat/          # AI chat endpoint
β”‚   β”‚   β”œβ”€β”€ auth/             # Login & Register
β”‚   β”‚   β”œβ”€β”€ cases/            # CRUD + assign + chat + documents + timeline
β”‚   β”‚   β”œβ”€β”€ categories/       # Legal categories
β”‚   β”‚   └── lawyers/          # Search + assignments
β”‚   β”œβ”€β”€ cases/                # Case detail & new case pages
β”‚   β”œβ”€β”€ dashboard/            # User dashboard
β”‚   β”œβ”€β”€ lawyers/              # Lawyer search page
β”‚   β”œβ”€β”€ login/                # Login page
β”‚   β”œβ”€β”€ register/             # Registration page
β”‚   β”œβ”€β”€ globals.css           # Design system & styles
β”‚   β”œβ”€β”€ layout.js             # Root layout
β”‚   └── page.js               # Landing page
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ ClientLayout.js       # Auth + Toast providers
β”‚   β”œβ”€β”€ Navbar.js             # Navigation bar
β”‚   └── Toast.js              # Toast notification system
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ ai-engine.js          # AI classification & guidance
β”‚   β”œβ”€β”€ auth.js               # JWT utilities
β”‚   β”œβ”€β”€ AuthContext.js         # React auth context
β”‚   └── prisma.js             # Prisma client
β”œβ”€β”€ prisma/
β”‚   β”œβ”€β”€ schema.prisma         # Database schema
β”‚   └── seed.js               # Seed data (categories, sample users)
└── public/                   # Static assets

πŸ› οΈ Setup & Installation

Prerequisites

  • Node.js 18+
  • npm 9+

Quick Start

# 1. Clone the repository
git clone https://github.com/Gpar377/jurisnode.git
cd jurisnode

# 2. Install dependencies
npm install

# 3. Set up environment
cp .env.example .env
# Edit .env with your JWT_SECRET

# 4. Initialize database
npx prisma generate
npx prisma db push
npm run seed

# 5. Start development server
npm run dev

Open http://localhost:3000 to see the app.

Environment Variables

Variable Description Example
DATABASE_URL SQLite database path file:./dev.db
JWT_SECRET Secret key for JWT tokens your-secret-key

πŸ“Έ Legal Categories Covered

Category Icon Key Procedures
Criminal Law πŸ”΄ FIR filing, bail, chargesheet
Family Law πŸ‘¨β€πŸ‘©β€πŸ‘§ Divorce, custody, maintenance
Property & Land 🏠 Title disputes, encroachment, registration
Consumer Rights πŸ›’ Product complaints, deficiency of service
Labour & Employment πŸ‘· Wage disputes, wrongful termination
Cyber Crime πŸ’» Online fraud, data theft, harassment
Constitutional Rights πŸ“œ Fundamental rights, PIL, RTI
Banking & Finance 🏦 Loan disputes, insurance claims
Tenant & Rental 🏒 Eviction, rent disputes

πŸ”’ Security

  • Passwords hashed with bcryptjs
  • JWT tokens with configurable expiry
  • Role-based API authorization
  • Input validation on all endpoints
  • .env excluded from version control

πŸ“„ License

This project is licensed under the MIT License β€” see the LICENSE file for details.


πŸ‘₯ Team

Role Name
Developer @Gpar377

βš–οΈ JurisNode β€” Navigate any legal situation with confidence

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages