···2929 <h1>Repo Walk Example</h1>
3030 <br>
3131 <p>Demo showing why you may rather export the users whole repo instead of walking it via api calls</p>
3232-3332 <sub>Also shows how many records you have and how many of each kind if you're into that kind of thing...</sub>
3433 {/if}
3534 <div class="card">
···11<script lang="ts">
22- import { fromStream } from '@atcute/repo';
32 import { onMount } from 'svelte';
43 import { Client, simpleFetchHandler } from '@atcute/client';
54 import type {} from '@atcute/atproto';
···6867 }
69687069 const { readable, writable } = repoEntryTransform();
7070+ //Don't want to await so we can read as it streams
7171 result.data.pipeTo(writable);
7272- // let stream = result.data;
7373- // const car = fromStream(stream);
74727573 try {
7674 //This reads the repo as it is downloaded. which was very cool and I didn't know it would do that
7775 for await (const entry of readable) {
7676+ // record here is the content of the atproto record
7777+ // console.log(entry.record);
7878 let checkForCollection = collections.find(c => c.collection === entry.collection);
7979 if (!checkForCollection) {
8080 collections.push({ collection: entry.collection, count: 1 });
···188188<div>
189189 {#if slowPokeMode}
190190 <img alt="A Shellder biting a Slowpoke's tail, as seen in the Pokémon anime "
191191- src="https://upload.wikimedia.org/wikipedia/en/a/a2/Slowpoke_and_Shellder.jpg">
191191+ src="/slowPoke.png">
192192 <br>
193193 {:else}
194194- <img alt="text in a speech bubble that says 'Dude, wheres my car'" src="https://canvas-lb.tubitv.com/opts/vONU3oa-F26tCQ==/461d4328-59c2-4dcd-9601-fa749fea4b92/CJcDELQBOgUxLjEuOEAB">
194194+ <img alt="text in a speech bubble that says 'Dude, wheres my car'" src="/dude.png">
195195 <br>
196196 {/if}
197197