Skip to content

v0.1.0

Choose a tag to compare

@rustyconover rustyconover released this 18 Sep 03:35
· 21 commits to main since this release

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: a rank plus the full item, streamed 100 rows per batch so a LIMIT stops early.
  • The change feed — updated_items and updated_users, hydrated; max_item for the newest id.
  • Lookups that compose — item(id), user(username) and comments(id) take a literal, a scalar subquery or a LATERAL column. comments() walks the whole reply tree and returns a path that sorts it into the order the site displays it.
  • Walks that stream — submissions(username) and recent_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.