ai

Verdict Nest

AI-powered legal services platform connecting clients with verified lawyers through intelligent case analysis and real-time communication

About the Project

Secure legal services platform connecting clients with verified lawyers in Pakistan
Three user roles (Admin, Lawyers, Clients) with comprehensive role-based access control
AI-powered Case Query System analyzing scenarios in natural language using OpenAI GPT
Identifies case types, suggests lawyers, highlights relevant Pakistani laws, and recommends courts
Real-time messaging via Socket.IO with contract lifecycle management
Community blog with AI content moderation and geolocation-based lawyer discovery via Google Maps
Verdict Nest - Image 1

Key Highlights

Built an AI Case Query System using OpenAI GPT-4o with function calling for structured legal analysis and lawyer recommendations
Implemented dual AI personas for clients (simplified legal guidance) and lawyers (detailed legal research) with conversation history
Developed real-time chat system with Socket.IO and Redis adapter supporting text, images, documents, typing indicators, and read receipts
Created a contract lifecycle management system with dual-consent workflows and role-based access control
Built a community blog platform with AI-powered content moderation via OpenAI
Integrated geolocation-based lawyer discovery using Google Maps API and Haversine formula
Designed a token economy system for AI usage metering with admin-approved token purchase workflows
Implemented JWT + cookie dual auth strategy with email verification, role-based authorization, and lawyer approval workflows
Built the Admin Panel for user verification, platform monitoring, announcements, and token request management
Managed 28 PostgreSQL migrations with node-pg-migrate covering chat, AI, blog, contracts, and notification schemas

Technologies Used

Frontend

ReactReactReduxReduxShadcn UIShadcn UI

Backend

Node.jsNode.jsExpressExpressSocket.IOSocket.IOKnex.jsKnex.js

Database

PostgreSQLPostgreSQLNeonNeonRedisRedis

AI / LLM

OpenAIOpenAI

Cloud & DevOps

AWS S3AWS S3RenderRender

Other

Google MapsGoogle Maps