lightweight DASL CAR (content-addressable archives) and atproto repository decoder library for AT Protocol.
// read through a CAR archive
const { roots, iterate } = readCar(buf);
for (const { cid, bytes } of iterate()) {
// ...
}
// convenient iterator for reading through an AT Protocol CAR repository
for (const { collection, rkey, record } of iterateAtpRepo(buf)) {
// ...
}