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

@moon-x/solana-adapter

v0.3.3

Published

Chain-aware Solana signing helpers for MoonX ephemeral signers. Serializes the message bytes and assembles ready-to-broadcast transactions/signatures so integrators never hand-roll payload construction.

Readme

@moon-x/solana-adapter

Chain-aware Solana signing helpers for MoonX ephemeral signers.

The low-level signWithEphemeralSigner primitive in @moon-x/core signs arbitrary raw bytes for an ed25519 key — which means the integrator is responsible for producing the exact bytes (serializing the transaction message) and for attaching the returned signature to the transaction. This adapter does both: you pass intent and get back a ready-to-broadcast artifact.

Solana differs from EVM: ed25519 signs the raw message bytes directly — there is no keccak / pre-hashing step. The adapter handles that correctly so you don't have to think about it.

Install

pnpm add @moon-x/solana-adapter @solana/web3.js

@solana/web3.js is a peer dependency, so your app's single instance is the one used.

Usage

import { createSolanaSigner } from "@moon-x/solana-adapter";

const signer = createSolanaSigner({
  apiPubHex,        // from provisioning
  apiPrivHex,       // never leaves your backend
  walletId,         // the Solana wallet the agent was provisioned for
  address,          // base58 wallet pubkey (needed to attach the signature)
  baseUrl,          // wallets backend URL
  secretKey,        // moon_sk_* (server-only; the sign routes are secret-key-only)
});

// Arbitrary message → 64-byte ed25519 signature
const sig = await signer.signMessage("gm");

// Transaction (legacy or versioned) → wire-ready serialized bytes
const raw = await signer.signTransaction(transaction);
await connection.sendRawTransaction(raw);

Scheme safety

The adapter enforces that the target wallet is ed25519. Pointing it at a secp256k1 (EVM) wallet throws SolanaSchemeMismatchError instead of producing a valid-but-wrong signature — use @moon-x/evm-adapter for those.

Escape hatch

For signing flows this adapter doesn't model, drop down to signWithEphemeralSigner from @moon-x/core/sdk and build the payload yourself.