Repository navigation
v0.1.0
Hacker News as ordinary DuckDB tables: the front page and every other ranking, any story or comment by id, whole discussion threads, and user profiles. Read-only, no credentials.
FORCE INSTALL vgi FROM community;
LOAD vgi;
ATTACH 'hackernews' (TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-hackernews@v0.1.0 vgi-hackernews');
SELECT rank, title, score, descendants AS comments
FROM (SELECT * FROM hackernews.top_stories LIMIT 30) ORDER BY rank;Surface
- Rankings as tables —
top_stories,new_stories,best_stories,ask_stories,show_stories,job_stories: arankplus the full item, streamed 100 rows per batch so aLIMITstops early. - The change feed —
updated_itemsandupdated_users, hydrated;max_itemfor the newest id. - Lookups that compose —
item(id),user(username)andcomments(id)take a literal, a scalar subquery or aLATERALcolumn.comments()walks the whole reply tree and returns apaththat sorts it into the order the site displays it. - Walks that stream —
submissions(username)andrecent_items(count). html_to_text()— comment bodies are entity-escaped HTML, so a plain-text search on them silently misses without it.
For agents
llms.txt is a self-contained guide in the llmstxt.org format: every object and column, the argument-passing rules, the traps that give wrong answers, and recipes the live test suite runs verbatim.
Validation
- vgi-lint with every rule enabled: 100/100, no findings, assurance level L2, one audited waiver.
- A 17-task agent suite covering every table and function, with its references verified stable.
- 232 offline tests against a fake Hacker News; 25 live tests of SQL through a real ATTACH.