npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sickart/portrait

v1.0.0

Published

Resolve and set on-chain profiles for Solana wallets. Like Gravatar, but trustless.

Downloads

15

Readme

@sickart/portrait

TypeScript client for Portrait — on-chain profiles for Solana wallets. Set an NFT as your wallet's avatar; any app can resolve it. Like Gravatar, but trustless.

npm install @sickart/portrait @solana/kit

Quick start

import { createSolanaRpc, address } from '@solana/kit';
import { resolveProfile } from '@sickart/portrait';

const rpc = createSolanaRpc('https://api.mainnet-beta.solana.com');
const wallet = address('9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM');

const profile = await resolveProfile(rpc, wallet);
// { owner, avatar, image, verified, updatedAt } | null

if (profile?.image) {
  console.log(profile.image, profile.verified ? '✓' : '?');
}

API

Readers

getProfile(rpc, wallet): Promise<Profile | null>

Cheap on-chain read. Returns the stored avatar mint and updated time. Does not walk Metaplex metadata or check ownership; image and verified are always null.

resolveProfile(rpc, wallet): Promise<Profile | null>

Full resolution. Walks Metaplex metadata for the avatar mint, fetches the off-chain JSON, and verifies the wallet still holds the NFT. The off-chain fetch is SSRF-hardened (DNS pinning, scheme allowlist, response-size cap, redirect rejection).

resolveProfiles(rpc, wallets[]): Promise<Profile[]>

Batch resolve. Wallets without a profile are omitted from the result.

Writers

getSetAvatarInstruction({ owner, avatar }): Promise<IInstruction>
getClearAvatarInstruction({ owner }): Promise<IInstruction>

Return unsigned instructions. Compose into a transaction with your own fee-payer / signer / commitment / priority-fee logic.

Utilities

deriveProfilePda(wallet): Promise<Address>   // [b"profile", wallet]
PROGRAM_ID                                    // the deployed program address

Types

type Profile = {
  owner: Address;
  avatar: Address;             // mint address of the NFT used as avatar
  image: string | null;        // resolved image URL (resolveProfile only)
  verified: boolean | null;    // true if wallet still holds the avatar mint
  updatedAt: number;           // unix seconds
};

verified semantics: true = wallet currently holds the NFT, false = doesn't hold it (cosplay), null = couldn't check (RPC failure). Render UI accordingly — show ✓ for true, ? for null, hide or dim for false.

Setting an avatar (browser)

import { getSetAvatarInstruction } from '@sickart/portrait';

const ix = await getSetAvatarInstruction({
  owner: signer.address,
  avatar: chosenNftMint,
});

// hand `ix` to your tx builder + wallet.sendTransaction

License

MIT