Skip to content

Glossary

Vitor edited this page Dec 3, 2026 · 3 revisions

botticelli

Glossary

Status: built terms are marked (built); a term for an unbuilt part says (planned). This page expands CONTEXT.md. If the two disagree, CONTEXT.md wins.

In one minute

botticelli uses a small, exact vocabulary. A Source gives Refs. The Pipeline cleans them. You save them into a Board in the Library. Do not mix up Collection and Board, or Sheet and Moodboard. Each term below has an example.

Terms

Ref (built)

One visual reference, an image or a video, in the same shape for every source (src/core/types.ts).

Example: a Pinterest pin becomes { source: "pinterest", key: "1128714725389331478", imageUrl: "https://i.pinimg.com/originals/…jpg", width: 1200, height: 1600, sourceDomain: "example.com" }. A Pinterest "pin" is one kind of Ref. Do not confuse a Ref's sourceLink (where the image came from) with the Source.

Source (built for Pinterest)

A place Refs come from: Pinterest, Are.na (planned). One adapter per Source in src/sources/<id>/.

Example: createPinterestSource() returns the Pinterest Source. To add one, see Writing a Source.

Capability (built)

Something a Source can do right now: search, related, collection, get, visualSearch. It can depend on login.

Example: pinterest.capabilities() returns visualSearch: false while logged out.

Collection (built)

A group of Refs inside a Source: a Pinterest board, an Are.na channel.

Example: https://www.pinterest.com/awsmd_com/app-design/ is a Collection. Not a Board.

Board (built)

A named folder of saved Refs in your local Library.

Example: refs/warm-light/ is the Board "warm light". Not a Collection.

Library (built)

The project's local store of saved Refs: images, one JSON Sidecar each, and refs/index.json.

Example: refs/. The Library is not the download cache.

Sidecar (built)

<file>.json next to a saved image. It holds the Ref's origin, palette and dhash.

Example: 01_1128714725389331478.jpg.json next to 01_1128714725389331478.jpg.

Handle (built)

A short name for a Ref within one MCP session: #3 (position in the last result) or p:3f9a (stable).

Example: after a search, the agent says look at #3 and #7.

Sheet (built)

One image with numbered thumbnails in a grid, so the agent and the human compare side by side.

Example: renderSheet(tiles) returns one JPEG with #1 to #24 in the corners. A Sheet is not a Moodboard.

Moodboard (built)

A static HTML page for a Board: the Refs, the combined palette and the credits.

Example: refs/warm-light/moodboard.html. A Moodboard is not a Sheet: a Sheet is a working picture, a Moodboard is a deliverable.

Pipeline (built)

Source-agnostic processing of Refs: filters, dedupe, palette, ranking, sheet (src/pipeline/).

Example: applyFilters, then dedupe, then rank.

Repost (built)

The same image under different URLs. Detected by dhash Hamming distance of 6 bits or less.

Example: a 236 px copy and a cropped re-upload of one photo have hashes 2 bits apart. The second is dropped.

Endpoint registry (built)

Per Pinterest Capability, an ordered list of Candidates. The one that worked after a failure is promoted and saved.

Example: registry.candidates('related') returns RelatedPinFeedResource then RelatedModulesResource.

Candidate (built)

One way to call a Pinterest Capability: resource name, handler, source URL template and an options template with {placeholders}.

Example: { "resource": "PinResource", "handler": "www/pin/[id].js", "sourceUrl": "/pin/{pin}/", "options": { "id": "{pin}", "field_set_key": "detailed" } }.

Hunter (planned, M4)

Opens the real site in a headless browser when every Candidate fails, sniffs which resource the site now uses, validates it without the browser and promotes it.

Example: RelatedPinFeedResource is renamed. The Hunter finds the new name and adds a Candidate.

Health (planned, M4)

A check of every Capability of every Source. A failure triggers the Hunter.

Example: the health tool reports pinterest.related: recovered.

Other terms used in the docs

Term Meaning
Cursor The opaque string in Page.next. Pass it back as cursor to get the next page
dhash A 64-bit difference hash of the thumbnail, as 16 hex characters. Used to find Reposts
Anonymous id An e1_… id from logged-out Pinterest search. It cannot be looked up again
Transport The function that makes HTTP requests. Tests pass a fake one
Promotion Moving a Candidate that worked to the front of its list and saving it
Placeholder A {name} in a Candidate that the call fills in
Low-res A Ref whose largest image is under 500 px wide
Fixture A saved real response in test/fixtures/, used so tests never touch the network
Milestone A numbered slice of the plan (M0 to M9). See the roadmap

Clone this wiki locally