尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Tracking congressional ideology across states and over time
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
insidegov.fyi ·
every member of Congress's voting record reduced to a point in a
two-dimensional ideology space, from the 1st Congress (1789) to the 119th
(2025–27).
Political scientists have spent decades boiling roll-call votes down to a
low-dimensional "ideal point" per legislator — the DW-NOMINATE score. This
site makes that data explorable:檢視完整 README ↗insidegov.fyi · the U.S. government, by the numbers: public records from all three branches, turned into charts you can explore. The presidency, Congress (1789 to today) and the Supreme Court, without reading the raw files.
The site is organised by branch. Each branch has several pages, each built around one question.
/presidency/…)/congress/…)/congress/laws) — every
public law since the 93rd Congress (1973), by policy area and by how close the
final-passage vote was, with David Mayhew's major laws marked and a page for
each law showing who voted for it./congress/wealth)
— first vs. latest net worth on a shared signed-log scale, highest and
lowest lists, and the actual assets and liabilities on every current
member's profile, estimated from their annual financial disclosures./supreme-court/…)| Branch | Source | Used for |
|---|---|---|
| Congress | Voteview (Lewis, Poole, Rosenthal, Boche, Rudkin & Sonnet) | DW-NOMINATE ideal points — the static career score and the per-Congress (Nokken–Poole) score |
| Congress | @unitedstates/congress-legislators | Names, states, parties, terms, leadership, the icpsr ↔ bioguide_id crosswalk, and current committees and rosters |
| Congress | @unitedstates/images | Official member portraits (current members only), committed under public/images/members/ |
| Congress | House Clerk (disclosures-clerk.house.gov) and Senate eFD (efdsearch.senate.gov) | Annual financial disclosures behind /congress/wealth and each profile's net worth card |
| Congress | GovInfo Bill Status (108th on), the Congress.gov API (93rd–107th) and Voteview roll calls | Public laws, sponsors and cosponsors, policy areas and final-passage votes behind /congress/laws |
| Court | Martin–Quinn scores | Per-term ideal points for every justice |
| Court | Supreme Court Database (Washington University) |
The full list, with notes on what each source covers, is on
/methodology.
Lewis, Jeffrey B., Keith Poole, Howard Rosenthal, Adam Boche, Aaron Rudkin, and Luke Sonnet (2026). Voteview: Congressional Roll-Call Votes Database. voteview.com
Raw snapshots are committed under pipeline/raw/, so builds are reproducible
and don't touch the network. Scheduled GitHub Actions
(.github/workflows/) re-fetch each source on its own
cadence and open a PR only when something material changed; the PR merges
itself only after the same checks CI runs have passed. Hand-curated data
(tariff and energy actions, ICE figures) has review reminders instead.
Data conventions (why each track has its own join key, why the two
DW-NOMINATE scores must not be conflated) are written down in
docs/DATA_CONVENTIONS.md, with a methodology doc
per topic alongside it.
pipeline/ fetches the raw
files, validates every row against a Zod schema, and transforms them into
normalized JSON, one set of files per track (Congress, the Court, executive
orders, indicators, energy, trade, immigration, foreign aid, troops, court
decisions). The app reads those at build time and statically prerenders every page — there is no
runtime data fetching and nothing to operate. Financial disclosures are a
separate Python sidecar (pipeline/financial_disclosures/, PDF/HTML parsing
is easier there) producing financial_disclosures.json (one row per member
per reporting year, band-count grain) and line-items/<year>.json (the
verbatim per-asset/per-liability grain, sharded by year) — both validated
the same way (Zod on the TS side, a dependency-free schema check on the
Python side) before the app reads them.d3-scale, d3-shape, d3-force) — scales, path
strings, and the beeswarm collision layout. Every <circle>, <path> and
<line> is plain JSX, so React owns the DOM. Low-level primitives
(ChartFrame, Axis, Tooltip) plus the ScatterPlot and SwarmRows
chart bodies back every view — the member and committee compasses are the
same ScatterPlot with different accessors, not separate charts..github/workflows/ci.yml) type-checks, lints, runs the unit tests,
re-runs the pipeline and fails if the committed output drifts, then builds.app/ routes — the hub (/), the explorer (/congress/ideology), the Court (/supreme-court/ideology), executive orders (/presidency/executive-orders), foreign aid (/presidency/foreign-aid), member profiles, committee pages, /congress/wealth
components/ charts/ (primitives), senate/ (the ideology views), profile/, committee/, wealth/
lib/ the build-time data layer + shared helpers
pipeline/ fetch → validate → transform → pipeline/output/*.json
financial_disclosures/ — Python sidecar (PDF/HTML parsing) for
financial_disclosures.json + line-items/<year>.json
public/ static assets, incl. committed member photos (images/members/)
docs/ DATA_CONVENTIONS.md, CREDITS.md, and a *_METHODOLOGY.md per topic
See ARCHITECTURE_MAP.md for the data-layer, route, and
shared-component maps.
pnpm install
pnpm dev # http://localhost:3000
Node ≥ 20.9. Other commands:
pnpm build # production build
pnpm typecheck # next typegen && tsc --noEmit
pnpm test # vitest
pnpm pipeline # fetch + validate + transform (re-fetches from source)
pnpm pipeline:check # validate + transform + assert pipeline/output is unchanged
Still future work: a per-member record of every roll-call vote (profiles list the laws a member sponsored or cosponsored, not their votes).
Personal project — the code isn't licensed for reuse yet. The underlying data belongs to its sources: Voteview data is free for scholarly and public use with attribution; congress-legislators is public-domain (CC0).
| Case counts, dissents, issue areas, outcomes and each justice's vote |
| Court | Federal Judicial Center | Justice biographies |
| Presidency | Federal Register | Executive orders (topics are classified with the Claude API and the result is committed) |
| Presidency | FRED, BLS, Census, OMB, Freddie Mac | The economic indicators |
| Presidency | U.S. Energy Information Administration | Energy series |
| Presidency | U.S. Census Bureau and USITC DataWeb | Trade by country; duties collected (DataWeb for 1993–2009) |
| Presidency | ICE | Removals by year and by country of citizenship |
| Presidency | U.S. Customs and Border Protection | Border encounters: Border Patrol apprehensions, port-of-entry inadmissibles and Title 42 expulsions (port-of-entry figures for FY2004–FY2014 via DHS OHSS) |
| Presidency | DHS Office of Homeland Security Statistics | Green cards (by class and country) and naturalizations: the Yearbook of Immigration Statistics, plus the quarterly report for the newest year |
| Presidency | Presidential Determinations (Federal Register) and the State Department's Refugee Processing Center | Refugee ceilings and admissions |
| Presidency | ForeignAssistance.gov | Foreign aid obligations and disbursements |
| Presidency | Defense Manpower Data Center, troopdata, David Vine's base lists | Troop locations and overseas bases |
| All | Wikipedia (CC BY-SA 4.0) | Short bios on member and justice profiles, and the landmark-case list and case articles, fetched in the pipeline |
| All | Natural Earth | World map outlines |