Shows how to get repo export and walk it in TypeScript walktherepo.wisp.place

Compare changes

Choose any two refs to compare.

Changed files
+4 -2
.tangled
images
src
.tangled/images/apiWalk.jpg

This is a binary file and will not be displayed.

+1 -1
src/App.svelte
··· 30 30 <main class="container mx-auto px-4 py-8 max-w-4xl"> 31 31 <div class="text-center mb-8"> 32 32 {#if showRepoStats} 33 - <h2 class="text-2xl font-bold text-primary">Walking <a class="link link-info" href="https://pdsls.dev/at://{searchResults.did}" target="_blank">{searchResults.handle}</a>'s {searchResults.slowPoke ? 'via api calls' : 'via export'}</h2> 33 + <h2 class="text-2xl font-bold text-primary">Walking <a class="link link-info" href="https://pdsls.dev/at://{searchResults.did}" target="_blank">{searchResults.handle}</a>'s repo {searchResults.slowPoke ? 'via api calls' : 'via export'}</h2> 34 34 {:else} 35 35 <h1 class="text-5xl font-bold mb-4">Walk The Repo</h1> 36 36 <p class="text-lg mb-2">Demo showing why you may rather export the users whole repo instead of walking it via api calls if you want to access all the user's records.</p>
+3 -1
src/lib/RepoStats.svelte
··· 122 122 const firstCollectionList = await rpc.get('com.atproto.repo.listRecords', { 123 123 params: { 124 124 collection, 125 - repo: did 125 + repo: did, 126 + limit: 100, 126 127 } 127 128 }); 128 129 webCalls++; ··· 140 141 params: { 141 142 collection, 142 143 repo: did, 144 + limit: 100, 143 145 cursor 144 146 } 145 147 });