@atcute/car

3.0.0 • Public • Published

@atcute/car

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)) {
	// ...
}

Readme

Keywords

Package Sidebar

Install

npm i @atcute/car

Weekly Downloads

536

Version

3.0.0

License

MIT

Unpacked Size

39.6 kB

Total Files

27

Last publish

Collaborators

  • externdefs