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.
- 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
| 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.
- Framework: Next.js 15 (App Router)
- Styling: Tailwind CSS v4
- Content: Gray Matter (YAML frontmatter) + MDX
- Hosting: Vercel
- CI/CD: GitHub Actions
# Clone the repo
git clone https://github.com/Darkstrike03/LawGuide.git
cd LawGuide
# Install dependencies
npm install
# Run development server
npm run devOpen http://localhost:3000.
See CONTRIBUTING.md for full instructions.
Quick version:
- Fork this repo
- Create
laws/india/<act>/section-<n>.md - Fill in the frontmatter and law text
- Submit a Pull Request
GitHub Actions will validate your file automatically.
- 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
- Code: MIT License
- Law content: CC BY 4.0
Laws are public domain — the structured format and metadata are CC BY 4.0.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen 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.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
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.