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

@metaplex-foundation/mpl-token-metadata-kit

v0.0.2

Published

JavaScript client for Token Metadata using @solana/kit

Readme

JS Kit Client

This is the TypeScript client for mpl-token-metadata using @solana/kit (Solana web3.js 2.0), generated with Codama.

Generated Code

The client code is auto-generated by Codama in src/generated/. Do not edit these files manually - they will be regenerated when running pnpm generate:clients from the repository root.

Testing

Test files have been created in test/ but require additional infrastructure to run:

Test Structure

Tests follow the same structure as clients/js/test/ but use the new API:

const mint = await generateKeypair();
const createInstruction = createV1({
  mint: mint.address,
  name: 'My NFT',
  uri: 'https://example.com/my-nft.json',
  sellerFeeBasisPoints: 550,
  tokenStandard: TokenStandard.Fungible,
});

Running Tests

Tests connect to a local Solana validator and skip gracefully if it's not running:

# Install dependencies
pnpm install

# Build the project (will show TypeScript errors but still produces output)
pnpm build

# Run tests (will skip if validator not running)
pnpm test

Running Tests with Validator

To actually execute transactions:

# From repository root, build the program first
pnpm programs:build

# Start the local validator (in a separate terminal)
pnpm validator

# From clients/js-kit, run tests
pnpm test

Tests will:

  • ✅ Connect to local validator at http://127.0.0.1:8899
  • ✅ Generate keypairs using @solana/keys
  • ✅ Airdrop SOL for test transactions
  • ✅ Generate instructions using Codama client
  • ✅ Skip transaction sending (not yet implemented)
  • ℹ️ Show helpful messages if validator isn't running

Development

To regenerate this client:

# From repository root
pnpm generate:clients

This will run configs/codama.cjs which generates code in clients/js-kit/src/generated/.