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

@qorechain/svm

v0.5.0

Published

QoreChain SVM adapter: thin, type-safe conveniences over @solana/web3.js for QoreChain's Solana-compatible JSON-RPC, including SOL transfers, native program IDs, and SPL-Token/Memo instruction helpers.

Readme

@qorechain/svm

A thin, type-safe adapter over @solana/web3.js for QoreChain's Solana-compatible JSON-RPC (port 8899). It does not reimplement an SVM client — @solana/web3.js is a peer dependency — it adds conveniences: a client factory targeting the SVM RPC endpoint, key helpers, typed read wrappers, SOL transfer build/sign/send, and minimal native-program instruction builders (Memo, SPL-Token, Associated Token Account) plus a generic program-invoke builder.

Because the RPC is Solana-compatible, standard Solana wallets, explorers, and tooling interoperate directly.

Install

@solana/web3.js is a peer dependency, so install it alongside this package:

pnpm add @qorechain/svm @solana/web3.js
# or: npm install @qorechain/svm @solana/web3.js

Quickstart

Connect

import { createSvmClient } from "@qorechain/svm";

// Defaults to the testnet localhost endpoint (http://localhost:8899).
const client = createSvmClient({ rpcUrl: "http://localhost:8899" });
// Or pass a qorechain-sdk endpoints object: { endpoints: { svmRpc } }

// `client.connection` is the underlying @solana/web3.js Connection.

Keys

@qorechain/sdk's deriveSvmAccount(mnemonic) provides the standard 64-byte ed25519 secretKey. Turn it into a Keypair:

import { svmKeypairFromSecretKey, svmAddress } from "@qorechain/svm";

const keypair = svmKeypairFromSecretKey(secretKey); // Uint8Array, length 64
const address = svmAddress(keypair); // base58 string

Read balance

import { PublicKey } from "@solana/web3.js";

const lamports = await client.getBalance(new PublicKey(address));
const { blockhash } = await client.getLatestBlockhash();

Transfer SOL

import { PublicKey, LAMPORTS_PER_SOL } from "@solana/web3.js";

const signature = await client.transferSol({
  from: keypair,
  to: new PublicKey(recipientAddress),
  lamports: BigInt(0.1 * LAMPORTS_PER_SOL),
});

Build without sending (e.g. to add more instructions, or to simulate):

const tx = client.buildTransferSol({ from: keypair, to, lamports: 1_000_000 });
const sim = await client.simulateTransaction(tx);
const sig = await client.sendTransaction(tx, [keypair]);

Memo

import { createMemoInstruction } from "@qorechain/svm";
import { Transaction } from "@solana/web3.js";

const tx = new Transaction().add(createMemoInstruction("gm from qore"));
await client.sendTransaction(tx, [keypair]);

Tokens

import {
  TOKEN_PROGRAM_ID,
  getAssociatedTokenAddress,
  createAssociatedTokenAccountInstruction,
  createTransferTokenInstruction,
} from "@qorechain/svm";

const ata = getAssociatedTokenAddress(mint, owner);
const createIx = createAssociatedTokenAccountInstruction({ payer, owner, mint });
const transferIx = createTransferTokenInstruction({
  source,
  destination,
  owner,
  amount: 100n,
});

Deploying programs

Deploy BPF programs with standard Solana tooling (solana program deploy <program.so>). Once deployed, build calls to your program with createInvokeInstruction(programId, keys, data) and send them via client.sendTransaction(...).

License

Apache-2.0