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

noesis-api

v0.3.2

Published

Official TypeScript SDK for the Noesis on-chain intelligence API — Solana token & wallet analytics.

Readme

noesis-api

Official TypeScript SDK for the Noesis on-chain intelligence API.

npm License Website


Install

npm install noesis-api
# or
pnpm add noesis-api
# or
yarn add noesis-api

Quick start

import { Noesis } from "noesis-api";

const noesis = new Noesis({ apiKey: process.env.NOESIS_API_KEY! });

// Token preview
const preview = await noesis.token.preview("<MINT>");
console.log(preview);

// Wallet profile
const wallet = await noesis.wallet.profile("<ADDRESS>");
console.log(wallet);

// Bundle detection
const bundles = await noesis.token.bundles("<MINT>");
console.log(bundles);

Get an API key at noesisapi.dev/keys.

API

new Noesis(config)

const noesis = new Noesis({
  apiKey: "se_...",           // required
  baseUrl: "https://...",     // optional — defaults to https://noesisapi.dev
  fetch: customFetch,         // optional — inject your own fetch
});

Token methods

noesis.token.preview(mint, chain?)
noesis.token.scan(mint, chain?)
noesis.token.info(mint, chain?)
noesis.token.topHolders(mint, chain?)
noesis.token.holders(mint, { chain?, limit?, cursor? })
noesis.token.bundles(mint)
noesis.token.freshWallets(mint)
noesis.token.teamSupply(mint, chain?)
noesis.token.entryPrice(mint, chain?)
noesis.token.devProfile(mint, chain?)
noesis.token.bestTraders(mint, chain?)
noesis.token.earlyBuyers(mint, { chain?, hours? })

Wallet methods

noesis.wallet.profile(address, chain?)
noesis.wallet.history(address, { chain?, limit?, type?, source?, before? })
noesis.wallet.connections(address, { min_sol?, max_pages? })
noesis.wallet.batchIdentity(addresses)
noesis.wallet.crossHolders(tokens)
noesis.wallet.crossTraders(tokens)

Chain / on-chain methods

noesis.chain.status()
noesis.chain.account(address)
noesis.chain.accountsBatch(addresses)
noesis.chain.parseTransactions(signatures)

Live streams (SSE)

Streams are fetch-backed (not native EventSource), so the X-API-Key header travels with the request — authenticated streams work in Node ≥ 18, Deno, Bun, and modern browsers.

// Callback style
const stream = noesis.streams.pumpfunNewTokens();
stream.onmessage = (event) => {
  const token = JSON.parse(event.data);
  console.log("New token:", token);
};
stream.onerror = (err) => console.error(err);
// stream.close() when done

// Or async iterator
for await (const event of noesis.streams.pumpfunMigrations()) {
  const migration = JSON.parse(event.data);
  console.log("Migration:", migration);
}

Available streams: pumpfunNewTokens, pumpfunMigrations, raydiumNewPools, meteoraNewPools.

Error handling

Non-2xx responses are thrown as NoesisError, a real Error subclass with typed fields for rate limits:

import { Noesis, NoesisError } from "noesis-api";

try {
  const data = await noesis.token.preview("<MINT>");
} catch (err) {
  if (err instanceof NoesisError && err.isRateLimit) {
    console.log(`Rate limited (${err.limit}); retrying in ${err.retryAfterSeconds}s`);
    await new Promise(r => setTimeout(r, (err.retryAfterSeconds ?? 5) * 1000));
  } else if (err instanceof NoesisError && err.status === 401) {
    console.error("Invalid or missing API key — check process.env.NOESIS_API_KEY");
  } else {
    throw err;
  }
}

NoesisError fields: status, message, details, and on 429 also retryAfterSeconds, limit (e.g. "1 request/5 seconds"), limitType ("Light" | "Heavy" | "VeryHeavy"), and signedIn. retryAfterSeconds falls back to the Retry-After response header when the body omits it.

Environment support

  • Node.js ≥ 18 (native fetch)
  • Deno, Bun
  • Modern browsers (pass an API key via a proxy — don't expose it client-side)

License

MIT — see LICENSE.

Links