Skip to content

ADR 0001 Source Adapters

Vitor edited this page Dec 3, 2026 · 1 revision

0001. One adapter per source behind a common Source interface

Status: accepted (2026-12-02)

Context

botticelli started as a fork of a Pinterest-only MCP server. Designers also take references from Are.na, Cosmos, Mobbin and other places. The useful work (filtering noise, removing reposts, palettes, contact sheets, the local library, moodboards) does not depend on where a ref came from.

Decision

  • Every source is an adapter in src/sources/<id>/ that implements Source (src/sources/types.ts) and returns Refs (src/core/types.ts).
  • Adapters declare capabilities(). Optional methods are left out when the adapter has no implementation, and throw CapabilityError when the implementation exists but is unavailable right now.
  • The pipeline, the library and the MCP server only ever see Refs and Sources.

Consequences

  • Pinterest ships first (v1). Are.na follows (M6), and Cosmos after the v1 release.
  • Source-specific fields that don't fit Ref stay out of the public shape, unless a second source needs them too.

Clone this wiki locally