项目 / jayanthmb14/forthepeople

jayanthmb14/forthepeople

行业推荐
语言 TypeScript标签 civic-techgovernmentindiakarnatakanextjsopen-datatransparencydistrict-dashboardndsap数据更新 2026-11-13 17:41:28 · 仓库 2026-11-13

一段话介绍

面向印度各县的开源公共数据看板,把分散在多个政府门户中的公开数据汇总到一处,覆盖作物价格、水库水位、预算支出、学校表现、基础设施项目、政府计划与招标等信息。数据按来源发布或按日更新,各模块会标明最近刷新时间;来源不可用时不编造数据。也可查看[全国汇总看板](https://forthepeople.in/en/india)。源文写明目标是覆盖全国各县,已上线的县数以[站点](https://forthepeople.in)为准。若要本地运行,可按[仓库 README](https://github.com/jayanthmb14/forthepeople)在 Node.js 24 环境下安装依赖、配置数据库后执行 `npm run dev`。

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
India's free, real-time district-level civic transparency platform. 29 dashboards per district.
318累计星
67Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

政务事项办理与一网通办

适配系统:政务服务平台、工作流引擎 · 得分 2.8

以事项流程编排与表单驱动为核心,可支撑跨部门联办与办件全流程跟踪。

BI 可视化与自助分析

适配系统:BI/报表平台、自助分析平台 · 得分 1.2

提供图表渲染与自助取数能力,可作为业务看板与经营管理分析的展示层。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
可先运行 npm run dev,再运行 npm run lint && npx tsc --noEmit && npm test。
特点或设计要点
项目说明文档见 https://forthepeople.in。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-12 · 语言 TypeScript · 贡献者 —
typescript

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 7,734 字节。

<div align="center">

# 🇮🇳 ForThePeople.in

### Your District. Your Data. Your Right.

**India's free, open-source, district-level civic transparency platform.**

[Live Site](https://forthepeople.in) · [Watch the Platform Walkthrough](https://www.instagram.com/reel/DW0UIkWvmxq/) · [Vote for Features](https://forthepeople.in/en/features) · [Support the Project](https://forthepeople.in/en/support)

![License](https://img.shields.io/badge/license-MIT-blue.svg)
![Districts](https://img.shields.io/badge/districts_live-10-green.svg)
![Modules](https://img.shields.io/badge/dashboards-30%2B_per_district-orange.svg)
![CI](https://github.com/jayanthmb14/forthepeople/actions/workflows/ci.yml/badge.svg)

</div>

---

## What is ForThePeople.in?

ForThePeople.in aggregates publicly available Indian government data into clean, citizen-friendly dashboards — one for every district. Instead of navigating 50+ government portals, citizens get a single platform for crop prices, dam levels, budget spending, school performance, infrastructure projects, government schemes, tenders and more.

Data is **updated daily or when sources publish** — every module shows when its data was last refreshed, and nothing is invented when a source is down.

**Currently live: 10 districts across 7 states** (see the [live site](https://forthepeople.in) for the current number — it changes as districts go live):
- **Karnataka:** Mandya, Mysuru, Bengaluru Urban
- **Tamil Nadu:** Chennai
- **Maharashtra:** Mumbai, Pune
- **Delhi:** New Delhi
- **West Bengal:** Kolkata
- **Telangana:** Hyderabad
- **Uttar Pradesh:** Lucknow

There is also an [India-wide dashboard](https://forthepeople.in/en/india) that rolls the same modules up to the national level.

**Goal:** All 780+ districts across 28 states and 8 UTs.

## Dashboard Modules

Each district has 30+ modules (the sidebar on any district page is the authoritative list). Grouped roughly:

| Category | Modules |
|----------|---------|
| **Data** | Overview, Interactive Map, Water & Dams, Crop Prices, Weather & Rainfall, Finance & Budget, Population, Power |
| **Governance** | Leadership, Police & Traffic, Schools, Courts, RTI Tracker, Gram Panchayat, Health, Responsibility, Tenders |
| **Services** | Gov. Schemes, Services Guide, Elections, Exams, Transport, JJM Water Supply, Housing, Industries, Farm |
| **Community** | Local Alerts, Offices, Citizen Corner, Famous Personalities, News, Contributors, Data Sources, Update Log |

## Tech Stack

| Layer | Technology |
|-------|------------|
| Frontend | Next.js (App Router), React, TypeScript, Tailwind CSS v4, react-simple-maps, Recharts |
| Database | PostgreSQL (Neon), Prisma ORM (108 models) |
| Cache | Upstash Redis (REST) |
| AI | OpenRouter (free-tier models for news classification, low-cost models for insights) with Anthropic fallback — see `src/lib/ai-provider.ts` |
| Data collection | Vercel Cron jobs, Google News RSS, Cheerio |
| Hosting | Vercel (Mumbai region) |
| Payments | Razorpay (supporter contributions, India only) |
| Monitoring | Sentry (errors), Plausible (analytics, cookieless) |
| Email | Resend (admin alerts) |
| Tests | Vitest (pure helpers), ESLint, TypeScript strict |

See [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) for how the pieces fit together.

## Getting Started

Requires **Node.js 24** (see `.nvmrc`; run `nvm use`).

```bash
# Clone
git clone https://github.com/jayanthmb14/forthepeople.git
cd forthepeople

# Install
npm install

# Set up environment (see .env.example — it is the only list of variables)
cp .env.example .env.local
# Fill in DATABASE_URL at minimum

# Database
npx prisma generate
npx prisma db push          # your OWN dev database only

# Run
npm run dev

# Checks
npm run lint && npx tsc --noEmit && npm test
```

## Project Structure

```
docs/                       # Architecture, runbooks, trackers (docs/ARCHITECTURE.md first)
prompts/                    # Claude Code prompts archive (completed + pending)
tests/                      # Vitest unit tests for pure helpers
src/
├── app/                    # Next.js App Router pages + API routes
│   ├── api/
│   │   ├── data/[module]/  # Unified per-module data API
│   │   ├── cron/           # Scheduled jobs (news, crops, insights, exams, budget)
│   │   └── admin/          # Admin endpoints (health, alerts, analytics, vault)
│   └── [locale]/[state]/[district]/  # District dashboard pages
├── components/             # Reusable React components
├── lib/                    # Core utilities (DB, Redis, AI, alerts, health score, tenders)
└── scraper/                # Background data collection jobs
prisma/
├── schema.prisma           # Database schema (108 models)
└── seed*.ts                # Seed data per district / module
```

## Legal

ForThePeople.in is an **independent citizen transparency initiative**. It is NOT an official government website. All data is sourced from publicly available government portals under India's Open Data Policy (NDSAP) and the Right to Information (Article 19(1)(a) of the Indian Constitution).

## Support

Running this platform for all 780+ districts costs approximately ₹12 lakh/year. You can help:

- **One-Time Contribution** — any amount from ₹10
- **District Champion** — ₹99/mo, name on your chosen district page
- **State Champion** — ₹999/mo, name on every district in that state
- **All-India Patron** — ₹9,999/mo, featured on every district page
- **Founding Builder** — ₹50,000/mo, permanent homepage spotlight

[Support page →](https://forthepeople.in/en/support) · [Contributor leaderboard →](https://forthepeople.in/en/contributors) · [funding.json →](https://forthepeople.in/funding.json)

## Contributing

We welcome contributions from developers of all skill levels! Whether you want to add a new district, fix a bug, improve the UI, or add translations — every contribution helps.

- Read the [Contributing Guide](CONTRIBUTING.md) to get started
- Check out [`good-first-issue`](https://github.com/jayanthmb14/forthepeople/labels/good-first-issue) and [`help-wanted`](https://github.com/jayanthmb14/forthepeople/labels/help-wanted) issues
- Review our [Code of Conduct](CODE_OF_CONDUCT.md)
- Report security issues privately via [SECURITY.md](SECURITY.md)

Thank you to everyone who has opened a pull request or issue so far — including @AmanSurushe, @threatner, @joellui, @Ronithkumar, @tiwarikaran, @abhiprd2000 and @rigsutra. Open PRs are being reviewed in order; see the pinned STATUS issue for where things stand.

**Goal:** Cover all 780+ districts across India. Currently at 10 — help us get there!

## Creator

**Jayanth M B** — Entrepreneur from Karnataka, India.

Built with the belief that every Indian citizen deserves free, transparent access to their district's government data.

- Instagram: [@jayanth_m_b](https://www.instagram.com/jayanth_m_b/)
- Project: [forthepeople.in](https://forthepeople.in)
- Contact: support@forthepeople.in

## License

[MIT](LICENSE) — Copyright (c) 2026 Jayanth M B. Use it, fork it, build on it.

### Attribution (a request, not a licence condition)

The MIT licence only requires you to keep the copyright notice. Beyond that, if you fork or deploy this project, the creator would appreciate — but does not legally require — that you:

1. Keep the "Originally created by Jayanth M B" line in your README or About page.
2. Link back to [github.com/jayanthmb14/forthepeople](https://github.com/jayanthmb14/forthepeople) so improvements can flow back upstream.
3. Keep the platform free for citizens and never present it as an official government service.
↑