Skip to content

Darkstrike03/LawGuide

Repository files navigation

LawGuide

LawGuide

India's Free, Open-Source Legal Reference

MIT License Contributions Welcome Growing


LawGuide is a community-maintained, open-source repository of Indian laws — for the public, lawyers, and law students. Every law is stored as a plain Markdown file in this repository. Anyone can add or correct a law via a Pull Request.

No paywalls. No login. No database. Just laws in files.

Features

  • Browse laws by category, act, and jurisdiction
  • Search across all sections and articles
  • GitHub-native — contribute a law in under 5 minutes
  • Auto-validation — GitHub Actions validates every PR
  • Auto-deploy — site rebuilds and deploys on every merge to main
  • Open Content — all law text is CC BY 4.0

Laws Available

Act Sections
Indian Penal Code, 1860 IPC 299, 300, 302, 376
Code of Criminal Procedure, 1973 CrPC 41
Constitution of India Articles 19, 21
Bharatiya Nyaya Sanhita, 2023 BNS 103

More being added. See CONTRIBUTING.md to help.

Tech Stack

  • Framework: Next.js 15 (App Router)
  • Styling: Tailwind CSS v4
  • Content: Gray Matter (YAML frontmatter) + MDX
  • Hosting: Vercel
  • CI/CD: GitHub Actions

Getting Started

# Clone the repo
git clone https://github.com/Darkstrike03/LawGuide.git
cd LawGuide

# Install dependencies
npm install

# Run development server
npm run dev

Open http://localhost:3000.

Contributing

See CONTRIBUTING.md for full instructions.

Quick version:

  1. Fork this repo
  2. Create laws/india/<act>/section-<n>.md
  3. Fill in the frontmatter and law text
  4. Submit a Pull Request

GitHub Actions will validate your file automatically.

Roadmap

  • Phase 1 — Law repository with search and browsing
  • Phase 2 — Case law linking, landmark judgements, multi-language
  • Phase 3 — AI assistant for legal Q&A, case similarity matching

License

Laws are public domain — the structured format and metadata are CC BY 4.0.


Built with ❤️ for India's 1.4 billion people.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Releases

No releases published

Packages

 
 
 

Contributors