Technical reference

ML Prep has no server API. It publishes static data and exposes a browser-local JavaScript bridge.

Static data

PathContents
/data/catalog.jsonItems, sets, sources, and scope
/data/search.jsonItem search data
/data/items/:id.jsonOne item

Browser bridge

window.mlPrepAgent provides:

await window.mlPrepAgent.ready;
const items = await window.mlPrepAgent.searchItems({ text: "gradient descent" });

Local data

Attempts and custom sets are stored in origin-scoped IndexedDB.

Schemas: item, attempt, custom set.