···44444545 return (
4646 <>
4747- <h1>zero bluesky infra post rendering</h1>
4848- <p className="with">with live-updating interaction counts</p>
4747+ <h1>zero bluesky infra post rendering (WIP)</h1>
4848+ <p className="with">with real-time interaction count updates</p>
4949 <div className="posts">
5050 {currentPair.map(p => (
5151 <Post key={p} atUri={p} updatedLinks={updates[p]} />
5252 ))}
5353 </div>
5454+5555+ <div className="explain">
5656+ <h2>How does it work?</h2>
5757+ <ul>
5858+ <li><strong>Post content</strong>: fetches direct from PDS with <a href="https://github.com/mary-ext/atcute" target="_blank">atcute</a>.</li>
5959+ <li><strong>Interaction counts</strong>: queries <a href="https://constellation.microcosm.blue/" target="_blank">constellation</a>.</li>
6060+ <li><strong>Interaction updates</strong>: subscribes to <a href="https://spacedust.microcosm.blue/" target="_blank">spacedust</a>.</li>
6161+ <li>There is no backend.</li>
6262+ </ul>
6363+ <p>The post selection takes a couple top posts from the public bluesky Discover feed so I guess it's kind of cheating but hey.</p>
6464+ <p>Oh and media files load from Bluesky's CDN so that's also cheating.</p>
6565+6666+ <h2>If you actually want to embed a post</h2>
6767+ <p>See <a href="https://mary-ext.codeberg.page/bluesky-embed/" target="_blank"><code><bluesky-embed></code></a> from <a href="https://mary.my.id" target="_blank">mary</a>. It's a very solid post renderer, unlike this demo.</p>
6868+ </div>
6969+5470 </>
5571 )
5672}