AT Protocol IPLD-CAR Repository toolkit (CLI)
1# atr 2 3AT Protocol IPLD-CAR Repository toolkit 4 5## Install 6``` 7go install github.com/atscan/atr@latest 8``` 9 10## Examples 11 12```bash 13# Scans the current directory (and its subdirectories) 14# and prints information about all found repositories: 15atr inspect 16atr i # you can use commands shortcuts 17 18# Get all objects from the repository: 19atr show my-repo.car 20 21# filter by object type 22atr show -t post 23 24# use jq query language 25atr show -q .body.displayName 26 27# use jmespath query language 28atr show -q body.displayName 29 30# Search with grep: 31atr show -t post | grep love 32 33# Repositories can also be read via pipe: 34curl -sL "https://enoki.us-east.host.bsky.network/xrpc/com.atproto.sync.getRepo?did=did:plc:ewvi7nxzyoun6zhxrhs64oiz" | atr show 35curl -sL "xrpc.link/r/atproto.com" | atr show 36 37# FYI xrpc.link is shortcut domain which redirecting to 38# relevant /xrpc/... endpoints 39``` 40 41Example output: 42```bash 43~> curl -sL "https://enoki.us-east.host.bsky.network/xrpc/com.atproto.sync.getRepo?did=did:plc:ewvi7nxzyoun6zhxrhs64oiz" | atr i 44 45(pipe): 46 DID: did:plc:ewvi7nxzyoun6zhxrhs64oiz Repo Version: 3 47 Head: bafyreiapeyhetsiuz6jcybcmgxw7k45imuu22shmbhybccq4vef57fc4mi 48 Sig: d03ed428c77a9e4964560f575426f81ed694861c93372b866d77b3b1f814a39b4d27033fa86593e194dfe07278a96aa1a9b76f1b2f7ff8d4313130b557177fb1 49 Size: 566 kB Blocks: 1,837 Commits: 1 Objects: 1,434 50 Profile: 51 Display Name: AT Protocol Developers 52 Description: Social networking technology created by Bluesky. 53 54 Developer-focused account. Follow @bsky.app for general announcements! 55 56 Bluesky API docs: docs.bsky.app 57 AT Protocol specs: atproto.com 58 Collections: 59 app.bsky.actor.profile: 1 60 app.bsky.feed.generator: 2 61 app.bsky.feed.like: 686 62 app.bsky.feed.post: 150 63 app.bsky.feed.repost: 541 64 app.bsky.feed.threadgate: 1 65 app.bsky.graph.follow: 21 66 app.bsky.graph.list: 1 67 app.bsky.graph.listitem: 29 68 app.bsky.graph.starterpack: 1 69 chat.bsky.actor.declaration: 1 70 Last 5 commits: 71 bafyreiapeyhetsiuz6jcybcmgxw7k45imuu22shmbhybccq4vef57fc4mi 72``` 73 74## License 75 76MIT