Pre-beta, under heavy active development: the API changes often and nothing here is stable yet.

Spar

Spar's devtools beside Foldkit's

Foldkit's side is read from the installed package, foldkit 0.170.0: its README and the devtools protocol it ships (dist/devTools/protocol.d.ts), which lists every request its MCP server answers. Nothing here comes from running Foldkit's overlay by hand, so its look and feel is not compared, only what it can do.

"Same" means Spar does the same job. "More" means Spar does it and something Foldkit's protocol has no request for. "Less" means Foldkit does something Spar does not yet.

In the page

FoldkitSpar
Message history"Everything that happened": store actions, UI state changes, route changes, data arriving and backend calls in one orderMore
The Model at any pointEvery store's state and all UI state at any moment, shown by the app itself and not only in a panelSame
Commands a Message returnedThe trace of each moment: the spans of what the action caused, in the page and in the backendMore
Mount start and end eventsThe inspector: pick a component on the page and read its place, props, UI state, services, recovered failures and what changed in itMore
Time travel (replay to a keyframe, then resume)Jump to any moment, step earlier and later, go back to nowSame
No request for itFork: carry on from a past moment in a new branch, keep the original, switch between themMore
No request for itA waterfall of one action across the page and the backend, with no collector, Tempo or Jaeger runningMore
No request for itOutbox: what is waiting to be sent and what could not be, with retry and discardMore
No request for itExport a store's log as JSON, or load one to see where it leadsMore
Shown while the Vite dev server is activeAdded by the Vite plugin on the dev server only; a production build is checked to hold no devtools codeSame

For agents

Each row is one request in Foldkit's protocol and the Spar tool that does the job. Spar's tools are served over MCP and answer from a shell through the CLI.

Foldkit requestSpar tool
GetModelget_state for a store, get_ui_state for all UI stateSame
GetModelAttravel_to (one store) or rewind (the whole app), then get_stateSame
GetInittravel_to with the seq before a store's first actionSame
ListMessages, GetMessageget_log for a store, get_timeline for everythingSame
CountMessagesByTagcount_momentsSame
DiffModelsdiff_states: the paths that differ between two of a store's actionsSame
DispatchMessagerun_action; set_ui_state for UI stateSame
DispatchMessages (several at once)run_actionsSame
GetMessageSchemaget_actions: each action's name and the JSON Schema of its payloadSame
ListKeyframes, ReplayToKeyframeget_timeline and rewind; every moment can be returned to, not only someSame
Resumerewind with nullSame
GetRuntimeStateget_timeline gives the moment being shown; list_branches the branchSame
ListRuntimes (several open tabs)list_pages and use_pageSame
No request for itstep: one moment earlier or later, with every span of that moment's traceMore
No request for itfork, list_branches, switch_branchMore
No request for itget_trace: the spans of a traceMore
No request for itget_navigation: the newest route change with its trace, by lensMore
No request for itlist_components, get_component: the mounted components and their dataMore
No request for itload_log: replay another log in a storeMore
No request for itA CLI for all of the above, and trace to print a navigation as a waterfallMore

Where Spar is behind

Nothing in Foldkit's protocol is without a Spar tool now. The three that were missing (an action's payload Schema, several actions in one call, choosing between open pages) are get_actions, run_actions, and list_pages with use_page.