mirror of
https://github.com/0xMarcio/cve.git
synced 2026-10-27 16:51:03 +00:00
The README opened on a bare heading and five year tables, said nothing about what the project is, and never linked the site. Anyone landing on the repo had to guess. It now leads with a generated banner carrying the live index totals, a badge row, and tables trimmed to what fits a table cell. hero.py draws the banner and the social card as self-contained SVG, since GitHub proxies README images and drops anything the file has to fetch for itself. It counts the corpus through build_site's own parser rather than a second guess at what counts as a PoC, so the banner cannot drift from the site header, and leaves the figures in docs/stats.json for the README build to quote. If the count fails it falls back to the deployed site and, failing that, writes nothing at all: a banner reading zero is worse than yesterday's. Badges describing the index are baked in at build time so they always match the banner and cannot degrade to "resource not found"; the two that describe live GitHub state carry a stamp that defeats the image proxy cache. The sweep now runs hourly instead of every six hours. It takes under two minutes and the repository shows up in "recently updated" far more often. Also adds the OpenGraph tags the site never had, so a shared link renders a card instead of a bare URL.
6 lines
62 B
JSON
6 lines
62 B
JSON
{
|
|
"kev": 1110,
|
|
"total_cves": 154097,
|
|
"with_pocs": 101809
|
|
}
|