Bitcoin Data Labs is a non-profit focused on research and open-source projects for the Bitcoin and Lightning Network ecosystems. We provide data analytics, tools, and insights.
Live at bitcoindatalabs.org. This repo serves two things:
- The landing site:
index.html(the story),work.html(full catalog),research.html(papers),support.html(funders).styles/bdl.cssholds the landing-only styles.scripts/site.jshandles the header nav, scroll reveal, and live numbers fetched from the tracker, Lightning and TWIB JSON. Every live value ships with a dated static fallback in the HTML.scripts/projects.jsis the project registry behindwork.html. Add new work there.scripts/papers.jsis the paper registry behindresearch.html, the brief and the deck. Each new paper also needs its cover and key figure inassets/research/, a card inindex.html#researchand an entry inprojects.js. Its numbers must match the paper.- After any change to
papers.jsorprojects.js, runpython tools/prerender_research.py. Most AI crawlers don't run JavaScript, so without it they see an empty research page. It saves the rendered paper list intoresearch.html(between theprerender:markers), writes the papers' schema.org JSON-LD into its<head>, and regeneratesllms.txt.robots.txtwelcomes all crawlers and points tositemap.xml; add new top-level pages there. deck/is a 6-slide presentation at bitcoindatalabs.org/deck/, unlinked and set tonoindex. Use the arrow keys or Space to move, F for full screen, and Print → Save as PDF for an offline copy. It shows the same live numbers as the homepage.brief/is a two-page lab brief for journalists and funders at bitcoindatalabs.org/brief/, unlinked and set tonoindex. The page is the master copy;python tools/build_brief_pdf.pyprints it tobrief/bitcoin-data-labs-brief.pdf(US Letter, live numbers of the day) and fails if a page overflows. Rebuild the PDF whenever the page or a paper changes.screenshots/live/holds product captures.screenshots/reports/holds fallback copies of report slides, which the pages otherwise hot-link frombdl-report-assets.
- The shared UI shell used by every child app:
components/app-components.js,components/*.htmlandstyles/styles.css. Changes here affect all*.bitcoindatalabs.orgsites. SeeBITCOIN-DATA-LABS-INTEGRATION.md.