๐Ÿš€ Inspiration

Every day, millions of people encounter legal issues but are left without guidance due to the complexity and inaccessibility of legal information. Whether it's a property dispute, a criminal accusation, or a question of contract interpretation โ€” most people donโ€™t know where to start.

Legal-Lens was inspired by the need to bridge the gap between common users and robust legal research. By enabling users to describe their legal scenario in natural language and selecting relevant filters like jurisdiction or law field, Legal-Lens acts as a full-spectrum legal intelligence engine.


๐Ÿ” What it Does

Legal-Lens is an AI-powered legal research tool that provides comprehensive legal analysis for user-described cases. It offers:

  • ๐Ÿ“š Statutory References: Relevant legal provisions, current standing of the applicable act (e.g., Contract Act, IPC, etc.), amendments, and historical laws.
  • ๐Ÿ›๏ธ Case Laws & Citations: Landmark, similar, and overruling case laws with authentic citation styles and links.
  • โš–๏ธ Balanced Argumentation: Structured legal arguments for both sides, key facts, evidentiary analysis, and jurisprudential theories.
  • ๐Ÿ”Ž Real-time Research: Uses Perplexity AI APIs to fetch real-time, authentic resources โ€” statutes, judgments, and scholarly articles.
  • ๐ŸŒ Country & Domain-Specific Analysis: Supports fields like Criminal Law, Contract Law, Family Law, and more across different jurisdictions.
  • ๐Ÿ“„ Judgment Predictions: Outlines possible outcomes, compensation, punishments, and remedies based on precedent and statutory interpretation.
  • ๐Ÿง  Smart Issue Framing: Generates a clear statement of issues and structures the legal argumentation logically.

๐Ÿ› ๏ธ How We Built It

  • Frontend + Backend: Built using Next.js for a unified server-side rendered web experience.
  • Styling: Designed with Tailwind CSS, focusing on a sleek dark theme with modern UI/UX principles.

    • ๐ŸŽจ Color Palette:
    • Deep Charcoal (#1A1A1D)
    • Muted Gold/Copper (#D4AF37, #B87333)
    • Off-White Texts (#E0E0E0, #F5F5F5)
  • Deployment: Hosted on Netlify for seamless CI/CD and global performance.

  • AI Integration: Leveraged Perplexity AI APIs for dynamic legal data aggregation, grounded in trustworthy legal databases and sources.

  • UI Features:

    • Typewriter input animation for natural language queries.
    • Rounded input fields and buttons for an elegant, tech-inspired feel.
    • Icons/imagery like gavel, scales of justice, legal scrolls.
    • Dynamic spatial background and interactive elements.
    • Functional header with navigation (Home, History, Bookmarked Cases).
    • Footer with contact info, social links, licensing, and updates.

๐Ÿง—โ€โ™€๏ธ Challenges We Ran Into

  • Interpreting unstructured legal queries and translating them into actionable legal research prompts.
  • Fetching jurisdiction-specific laws while maintaining citation accuracy.
  • Balancing UI elegance with informational density.
  • API rate limits and latency when working with dynamic research tools like Perplexity AI.

๐Ÿ† Accomplishments That We're Proud Of

  • Designed an end-to-end intelligent legal assistant that gives meaningful, structured legal output for real-world cases.
  • Developed a full-stack, production-ready platform in a hackathon timeframe.
  • Implemented authentic legal citations and fetched dynamically amended laws.
  • Created a unique blend of technology, law, and user empathy.

๐Ÿ“š What We Learned

  • The immense potential of AI in the legal domain, especially in reducing the research time from hours to minutes.
  • Challenges around ensuring the authenticity and jurisdictional accuracy of legal information.
  • How to design user-centric tools that can make complex data elegantly digestible.
  • The value of cross-domain synergy โ€” combining legal knowledge with cutting-edge web development.

๐Ÿ”ฎ Whatโ€™s Next for Legal-Lens

  • User Authentication & Saved Profiles: Allow users to save, edit, and revisit their legal queries.
  • AI-Powered Document Upload: Users will be able to upload FIRs, notices, or contracts and receive breakdowns.
  • Lawyer Connect Feature: Match users with relevant legal professionals.
  • Multilingual Support for regional laws and dialects.
  • Mobile App Development for quick on-the-go legal queries.
  • Community Q&A Section curated by verified lawyers and scholars.

โš–๏ธ Legal-Lens is not just a tool โ€” itโ€™s a companion for justice, clarity, and empowerment.

Built With

  • netlify
  • nextjs
  • perplexity
Share this project:

Updates

Submission history