Skip to content

Expose goodread as a kit domain driver#6

Merged
tamnd merged 2 commits into
mainfrom
add-kit-driver
Jun 14, 2026
Merged

Expose goodread as a kit domain driver#6
tamnd merged 2 commits into
mainfrom
add-kit-driver

Conversation

@tamnd

@tamnd tamnd commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Adds a goodread Domain so the package can be blank-imported as a database/sql-style driver — the basis for addressing Goodreads records by URI from a host like ant.

  • goodread/domain.go registers the Domain in init(): scheme goodreads, the book/author/series record types, their resolver and list ops, and the URL↔URI mapping.
  • The record structs gain kit struct tags (id, link, body) so the host can mint URIs, follow typed edges, and render bodies.
  • The existing goodread binary and its cli package are untouched; the driver is purely additive.
  • Pins any-cli to v0.2.0.

tamnd added 2 commits June 14, 2026 09:13
Add goodread/domain.go: a kit.Domain that registers itself from init(),
so a multi-domain host (ant) enables Goodreads with a single blank
import, database/sql style. Register installs the client factory and
the read operations (book/author/series/list/user/genre/shelf/quote,
the series/list/reviews list ops, and search); Classify/Locate reuse
ids.go so the URI-native verbs touch no network. types.go gains kit:id,
kit:link, and kit:body tags so records are URI-addressable and their
graph edges are discoverable by reflection. The standalone goodread
binary is untouched and still ships as-is.

NOTE: go.mod carries a temporary replace to ../any-cli; it is swapped
for a tagged version before this branch opens a PR.
@tamnd
tamnd merged commit be1c3b6 into main Jun 14, 2026
7 checks passed
@tamnd
tamnd deleted the add-kit-driver branch June 14, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant