Toolbox

CAR explorer

CAR files are a core piece of public atproto. CAR slices and files are used in the event-stream, for getting records that can be verified with signatures, backing up repositories, and performing migrations. This tool helps explore a CAR file or slice to understand what it contains and how the data is laid out.

Invoke the com.atproto.sync.getRecord method to retrieve a CAR slice. It contains just the information needed to verify a single record, including all of the MST nodes on the path to that record.

Open a source to see its blocks.

Limits
LimitValueWhy, and what happens past it
CAR size8 MiBUploads and getRepo downloads are counted as bytes arrive; the stream is cancelled at the limit and nothing is parsed.
Relay frame2 MiBThe base64 text is measured before decoding.
Blocks60,000The block index is built first, without decoding; a CAR with more blocks stops there.
One block2 MiBA larger block is listed and its CID checked, but it isn’t decoded.
CBOR nesting32 levelsDeeper data stops the decoder for that block with an error at the offset where it went too deep.
Items per map or array10,000Counts are read from the header before any item is decoded.
Decode on demandone blockOnly the block in view is decoded into a tree; the rest stay as byte ranges in one buffer.
Tree and bytes views500 rowsRows are drawn as they scroll into view, and deeper levels open when expanded.
MST map200 nodesPast that, each layer collapses to a count, and nodes open by layer.
Work time5 sParsing runs in a Web Worker. Past the budget, it stops and keeps what it has; Cancel is always available.
Memory64 MiBThe WebAssembly memory is created with a fixed maximum, so a bad file fails inside the worker, not the tab.

Search