Technical reference
ML Prep has no server API. It publishes static data and exposes a browser-local JavaScript bridge.
Static data
| Path | Contents |
|---|---|
/data/catalog.json | Items, sets, sources, and scope |
/data/search.json | Item search data |
/data/items/:id.json | One item |
Browser bridge
window.mlPrepAgent provides:
- search:
searchItems - attempts:
getAttempts,appendAttempt,deleteAttempt - custom sets:
listCustomSets,getCustomSet,saveCustomSet,deleteCustomSet - backup:
exportData,importData,requestPersistence
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.