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.
- 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
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
| 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 |
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
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
- Node.js 18+
- npm 9+
# 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 devOpen http://localhost:3000 to see the app.
| Variable | Description | Example |
|---|---|---|
DATABASE_URL |
SQLite database path | file:./dev.db |
JWT_SECRET |
Secret key for JWT tokens | your-secret-key |
| 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 |
- Passwords hashed with bcryptjs
- JWT tokens with configurable expiry
- Role-based API authorization
- Input validation on all endpoints
.envexcluded from version control
This project is licensed under the MIT License β see the LICENSE file for details.
| Role | Name |
|---|---|
| Developer | @Gpar377 |
βοΈ JurisNode β Navigate any legal situation with confidence