Skip to content

feat: show who liked a package #951

@fatfingers23

Description

@fatfingers23

We may decide to or not to do this. But may be fun to show who liked the package and show little profile picture to the side that shows some of the users who have liked it. I know we talked about "trusted" likes as in showing only users who you have a follow to/from. But may have to think on how to do those queries and would be to divide them up here somewhere when showing.

Can see who has liked it by this constellation query replacing the target with the package. We have a helper for those calls here in the project
https://constellation.microcosm.blue/links?target=https%3A//npmx.dev/package/ nuxt&collection=dev.npmx.feed.like&path=.subjectRef

We may be able to get away with using a public.api and a single call (something similar is done in the project here). But we may want to consider taking in account the npmx profile and it's avatar cid in the future as well over the bluesky one

https://public.api.bsky.app/xrpc/app.bsky.actor.getProfiles?actors=did:plc:rnpkyqnmsw4ipey6eotbdnnf&actors=did:plc:hdhoaan3xa3jiuq4fg4mefid (actors is limited to 25 or less here)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions