Skip to content

Releases

v0.4.0

Choose a tag to compare

@rustyconover rustyconover released this 25 Nov 18:31
  • 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 with INSTALL vgi FROM query_farm): Haybarn 2.0.0
    loads a 3.3 vgi extension that cannot attach it.
  • SQL tests run on haybarn-unittest 2.0.1rc3 (CI and Makefile).
  • New serve extra (vgi-python[http,oauth]); the Docker image installs it, so the image runs in
    Orchard hosted mode (VGI_ORCHARD_HOSTED=1 with VGI_JWT_ISSUER, VGI_JWT_AUDIENCE,
    VGI_JWT_JWKS_URI and VGI_SIGNING_KEY). The Docker HEALTHCHECK uses HEAD /health, which
    stays anonymous in hosted mode.

v0.3.2

Choose a tag to compare

@rustyconover rustyconover released this 16 Nov 23:55

Full Changelog: v0.3.1...v0.3.2

v0.3.1

Choose a tag to compare

@rustyconover rustyconover released this 16 Nov 20:11

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

Choose a tag to compare

@rustyconover rustyconover released this 12 Nov 15:50

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

Choose a tag to compare

@rustyconover rustyconover released this 09 Nov 20:59

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

Choose a tag to compare

@rustyconover rustyconover released this 18 Sep 13:18

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 8000

Running 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

Choose a tag to compare

@rustyconover rustyconover released this 18 Sep 04:35

A container image, so the worker runs anywhere Docker does.

docker run -p 8000:8000 ghcr.io/query-farm/vgi-hackernews:0.1.1
FORCE 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 /health for probes), stdio with the stdio argument.
  • linux/amd64 and linux/arm64, built by the fleet's shared docker-publish workflow, which boots each architecture and checks /health before anything is pushed. Tags: 0.1.1, 0.1, latest; edge tracks main.
  • 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.sh refuses 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

Choose a tag to compare

@rustyconover rustyconover released this 18 Sep 03:35

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.