Direct link: Bitcoin Education Archive
We have a dedicated forum (named 'Pleb Talk'), but it isn't nearly as cool as SN ;)
So, I've been playing around with embedding cool Bitcoin websites into my app (with permission). I've been in talks with @k00b, and he gave me the okay to experiment. SN blocks iframe embeds (security reasons), which would make this sort of thing very easy; so at first, I didn't think it would be possible to integrate SN. But after some fun prompting, my AI agent found a workaround!
Instead of an iframe, my app fetches real posts from Stacker News via their GraphQL API (proxied through our Cloudflare Worker) and renders them natively in our UI. Each post shows:
• ⚡️ Sats earned (orange badge on the left)
• Title, author, time ago, comment count, link domain
• Clicking a post opens it on stacker.news in a new tab
Filters:
• 🔥 Top / 🕐 Recent / 🎲 Random sort
• Time range selector for Top (Today, This Week, This Month, This Year)
Cache: Worker caches API responses for 5 minutes so we're not hammering their API.
Once inside a SN post from within our app, users see a [View on stacker.news ↗] button if they wish to further interact with the post (like zapping the post), and upon clicking said button, SN opens up in a new tab. Although there are limitations, I thought this was a pretty cool implementation. Hopefully, in the future, we can find a way to get something like an iframe embed working; that way users can do everything within our app that they can on SN (like zapping posts).
FOSS projects need okays?
I thought it was the right thing to do to ask anyway
That's really cool 🎸
Let me know if you need any help with the SN integration. You can also take a look at the (hacky) API client in the SN app I maintain (the link is in my bio). There are some useful tricks there
I had my agent look at your repo and we just implemented 5 features that you use :)
Well that is awesome.
I thought so too :)
I think we can make it even better also, but this is a start.
Top SN post (this year) as sorted by my app.