What it is

A dealer photographs a batch of objects; Curio stages one row per object. Corrections arrive by voice or text and move the estimate only when identity, condition or material actually changes. Pricing is grounded in sold comparables — misses are kept as misses, never quietly filled — then mapped through category bands into a labelled estimate.

A planning pass ages stock, reprices for profit, and routes each piece to booth, eBay, Etsy, Facebook or auction. Listings are generated from the same row that later records the sale (fees, net, margin, days-on-floor), and the reports a dealer actually needs fall out of the same ledger: P&L, sell-through, GMROI, and a ranked answer to “what should I buy next?”

The arithmetic lives in exactly one place — ledger.py and its parity-tested TypeScript port — and the rule over the whole system is: models propose, the dealer confirms, nothing writes itself.

Code

web/src/worker/index.ts — the Worker’s API, in its own header:

// Curio Worker — the one door between devices and D1 `curio`.
//   GET  /api/health                    liveness + schema version
//   GET  /api/me                        who the credential is
//   GET  /api/sync/pull?since=<seq>     change_log since cursor (since=0 → full bootstrap)
//   POST /api/sync/push                 guarded upserts from a device outbox
//   PUT  /api/photos/:id  GET /api/photos/:id   R2 photo bytes (ratified 2026-09-05)
//   POST /api/ai/intake      photos in R2 → one staged proposal per foreground object (S1, S2, S4)
//   POST /api/ai/correct     the dealer's words → field patch, estimate moved only on identity/condition/material
//   POST /api/ai/research    grounded search for SOLD comps (Gemini + Google Search); misses kept as misses (S3)
//   POST /api/ai/extract     sold results from a page the dealer captured signed in (screenshot or text) (S3)

Achievements

  • Live as an installable PWA + Worker since 2026-09-30 (per the project README), with D1 + R2 + Workers AI behind it.
  • Five surfaces over one ledger: Claude skill, Gemini Gem, a Gemini Spark module, a single-file local app, and the PWA.
  • Test suite described in the README as 64 web tests including ledger/plan parity against fixtures.
  • A full architecture/prior-art/decisions record ships in the repo (docs/, ≈70 KB) — the design reasoning is part of the deliverable.

Lessons

  • Estimates labelled, never passed as sales. The fastest way for an AI-assisted valuation tool to destroy trust is to blur that one line; Curio encodes it in the data flow, not the copy.
  • One arithmetic, two languages, parity tests between them. If the Python and TypeScript ledgers ever disagree, the tests — not a customer — find out.

Visit: curio.svennyberg.workers.dev — behind Cloudflare Access. Access is granted on request: the sign-in page asks who you are and what you’d like to do, and I approve requests personally, a day at a time. Dealers who should stay signed in get a standing allowance after we’ve talked. Internal details available on request, by correspondence.

Status: Active · TypeScript, React 19, Hono, D1, R2, Workers AI, PWA