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

solana-privacy-scanner-core

v0.7.1

Published

Core scanning engine for Solana privacy analysis - analyze on-chain privacy exposure using heuristic-based risk detection

Readme

solana-privacy-scanner-core

Core scanning engine for Solana privacy analysis. Analyze on-chain privacy exposure using 13 heuristic-based detections plus static code analysis.

Features

  • 13 Privacy Heuristics - Fee payer reuse, signer overlap, memo PII, ATA linkage, priority fee fingerprinting, staking patterns, identity metadata exposure, and more
  • Static Code Analyzer - AST-based detection of privacy anti-patterns in TypeScript/JavaScript source code
  • Known Entity Detection - Flags interactions with exchanges, bridges, and KYC services
  • Structured Reports - JSON reports with risk scores, evidence, and actionable mitigations
  • Works Out of the Box - Built-in RPC endpoint, no configuration required

Installation

npm install solana-privacy-scanner-core

Quick Start

Scan a wallet

import {
  RPCClient,
  collectWalletData,
  normalizeWalletData,
  createDefaultLabelProvider,
  generateReport,
} from 'solana-privacy-scanner-core';

const rpc = new RPCClient(); // uses built-in RPC
const raw = await collectWalletData(rpc, 'YourWalletAddress', { maxSignatures: 100 });
const labels = createDefaultLabelProvider();
const context = normalizeWalletData(raw, labels);
const report = generateReport(context);

console.log('Risk:', report.overallRisk);
console.log('Signals:', report.signals.length);

Analyze source code

import { analyze } from 'solana-privacy-scanner-core';

const result = await analyze(['src/**/*.ts']);
console.log(`Found ${result.summary.total} privacy issues`);
result.issues.forEach(i => console.log(`  ${i.severity} ${i.type}: ${i.message}`));

Use individual heuristics

import { detectFeePayerReuse, detectMemoExposure } from 'solana-privacy-scanner-core';
import type { ScanContext } from 'solana-privacy-scanner-core';

const signals = detectFeePayerReuse(context);
const memoSignals = detectMemoExposure(context);

The 13 Heuristics

| # | Heuristic | What it checks | |---|-----------|---------------| | 1 | Fee Payer Reuse | One wallet paying fees for multiple accounts | | 2 | Signer Overlap | Same signers appearing across transactions | | 3 | Memo Exposure | Personal information in memo fields | | 4 | Known Entity Interaction | Transfers to/from exchanges, bridges, KYC services | | 5 | Identity Metadata Exposure | .sol domain and NFT metadata linkage | | 6 | ATA Linkage | One wallet funding token accounts for multiple owners | | 7 | Address Reuse | Using one address across many different protocols | | 8 | Counterparty Reuse | Repeated transfers to the same address | | 9 | Instruction Fingerprinting | Repeated program call patterns | | 10 | Token Account Lifecycle | Frequent create/close cycles | | 11 | Priority Fee Fingerprinting | Consistent priority fee amounts | | 12 | Staking Delegation | Concentrated validator delegation | | 13 | Timing Patterns | Burst activity and regular intervals |

Documentation

Full documentation: https://taylorferran.github.io/solana-privacy-scanner

License

MIT