Repository navigation
Releases
v0.4.0
- Speaks VGI protocol 3.4: require vgi-python
>=0.55.2,<0.56; uv.lock re-locked. This release
needs Haybarn 2.0.1 (or stock DuckDB 2.0 withINSTALL vgi FROM query_farm): Haybarn 2.0.0
loads a 3.3vgiextension that cannot attach it. - SQL tests run on haybarn-unittest 2.0.1rc3 (CI and Makefile).
- New
serveextra (vgi-python[http,oauth]); the Docker image installs it, so the image runs in
Orchard hosted mode (VGI_ORCHARD_HOSTED=1with VGI_JWT_ISSUER, VGI_JWT_AUDIENCE,
VGI_JWT_JWKS_URI and VGI_SIGNING_KEY). The Docker HEALTHCHECK usesHEAD /health, which
stays anonymous in hosted mode.
v0.3.2
v0.3.1
Bump vgi-python to 0.52.2 (vgi-rpc 0.53.1). Protocol unchanged (vgi.v3 / 3.3); no SQL surface changes.
v0.3.0
Speaks VGI protocol 3.3 (vgi-python 0.51.0) and requires the current VGI DuckDB extension; 3.2 extensions are incompatible. No SQL surface changes.
v0.2.0
Speaks VGI protocol 3.2, on vgi-python 0.50.0 and vgi-rpc 0.53.1 (up from 0.34.1 and 0.46.0). The published vgi extension requires an exact protocol match, so the current extension rejects 0.1.x workers at ATTACH. Upgrade to this release to keep attaching.
FORCE INSTALL vgi FROM community;
LOAD vgi;
ATTACH 'hackernews' (TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-hackernews@v0.2.0 vgi-hackernews');- Table keys (primary keys, the unique
rank, the not-null columns) are now declared as canonical constraint records, the form protocol vgi.v3 uses for them. The keys themselves have not changed. - The live test tier attaches through haybarn 2.0, whose community channel serves the 3.2 extension.
- The catalog's display title is now "Hacker News API", and it has a one-line subtitle for listings.
v0.1.2
Documentation only; the worker is unchanged from 0.1.1.
The README now leads with the no-clone install. All it needs is uv: the worker is fetched from GitHub, built once, and run from the cache.
FORCE INSTALL vgi FROM community;
LOAD vgi;
ATTACH 'hackernews' (TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-hackernews@v0.1.2 vgi-hackernews');Drop the @v0.1.2 to track main instead: each launch asks GitHub for the current commit and rebuilds only when it has moved.
The HTTP server has the same no-clone form. Pass --port explicitly, because the default of 0 picks a random free port:
uvx --from git+https://github.com/Query-farm/vgi-hackernews@v0.1.2 vgi-hackernews-http --port 8000Running from a checkout (uv run hackernews_worker.py) now has its own section, as the way to try local changes.
The container image is also published as ghcr.io/query-farm/vgi-hackernews:0.1.2.
v0.1.1
A container image, so the worker runs anywhere Docker does.
docker run -p 8000:8000 ghcr.io/query-farm/vgi-hackernews:0.1.1FORCE INSTALL vgi FROM community;
LOAD vgi;
-- Against the running container, over HTTP
ATTACH 'hackernews' (TYPE vgi, LOCATION 'http://localhost:8000');
-- Or let DuckDB spawn the container itself, over stdio
ATTACH 'hackernews' (TYPE vgi,
LOCATION 'docker run -i --rm ghcr.io/query-farm/vgi-hackernews:0.1.1 stdio');The image
- One image, both transports: HTTP by default (with
/healthfor probes), stdio with thestdioargument. linux/amd64andlinux/arm64, built by the fleet's shareddocker-publishworkflow, which boots each architecture and checks/healthbefore anything is pushed. Tags:0.1.1,0.1,latest;edgetracksmain.- Runs as an unprivileged user. No credentials in the image, and none needed: it only reaches
hacker-news.firebaseio.com.
Requires vgi-python 0.34.1
Building the image surfaced a bug in vgi-python: import vgi created its state database under $HOME, so a worker whose home was not writable died before it could start. That is fixed in vgi-python 0.34.1, which this release requires.
Also
ci/check-version.shrefuses a release tag that does not match the package version.- The container was linted over HTTP with vgi-lint: 100/100, no findings, assurance level L2.
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.