feat: stream recently liked packages on the homepage#2784
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
❌ 4 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
4fdf03a to
5ff7215
Compare
5ff7215 to
360cade
Compare
360cade to
fbb3036
Compare
Add a Recently Liked Packages feed to the homepage, powered by Spacedust package like events. The feed loads on the client so the home page stays non-blocking. Because the npmx package like throughput is quite low at the moment (<10/day), just about no one would ever see anything if we truly only showed live events here. Thus, to keep things engaging, we first fetch the 5 most recent likes (from the UFOs service) and "replay" them, then start listening to the live stream.
fbb3036 to
a88c182
Compare
🔗 Linked issue
N/A 😁
🧭 Context
The homepage is minimal at the moment. There's an opportunity to use that highly visible real estate to lean into social features while providing value through package discovery. As a bonus, this makes our package like feature more discoverable.
📚 Description
npmx.recently.liked.feed.demo_gh.mp4
This adds a Recently Liked Packages feed to the homepage, powered by Spacedust package like events.
The feed loads deferred on the client so the home page load stays non-blocking.
Because the npmx package like throughput is quite low at the moment (<10/day 🥹), just about no one would ever see anything if we truly only showed live events here. Thus, to keep things engaging, we first fetch the 5 most recent likes (from the UFOs service) and "replay" them, then start listening to the live stream. (🤞🏼 Perhaps someday we'll be able to remove this seeding!)