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

@solinkify/depin

v0.2.0

Published

Solinkify DePIN node-operator SDK — staking tiers, PDA helpers, weighted score, and epoch reward math for the $SINKY relay network on Solana.

Readme

@solinkify/depin

Node-operator SDK for the Solinkify DePIN relay network on Solana: staking tiers, PDA helpers, weighted-score and epoch-reward math, and thin instruction wrappers for register_node / add_stake / unstake / claim_reward — everything mirrors the on-chain program, so what you compute locally is what the contract enforces.

Run a node, relay Solinkify traffic (Jalur B), earn a share of protocol fees: 0.375% of every relayed payment goes to the relaying node directly plus 0.375% into the epoch reward pool, split by weighted score.

Install

npm install @solinkify/depin @coral-xyz/anchor @solana/web3.js @solana/spl-token

Staking tiers (tokenomics v2, enforced on-chain)

| Tier | Min stake | Multiplier | |---|---|---| | Lite | 25 $SINKY | 1.0× | | Bronze | 100 $SINKY | 1.0× | | Silver | 500 $SINKY | 1.5× | | Gold | 2,000 $SINKY | 2.5× |

import { getTierFromStake, TIER_THRESHOLDS, MIN_STAKE, formatSinky } from '@solinkify/depin';

getTierFromStake(2_000n * 1_000_000_000n); // 'Gold'  (raw units, 9 decimals)

Reward weight = stake × multiplier × uptimecalculateWeightedScore() mirrors the on-chain formula exactly.

Quick start

import { createDepinClient, deriveNodeOperatorPda } from '@solinkify/depin';

// Requires env: NEXT_PUBLIC_RPC_URL, NEXT_PUBLIC_PROGRAM_ID, NEXT_PUBLIC_SINKY_MINT
const client = createDepinClient(provider, idl);   // AnchorProvider + program IDL

await client.registerNode({ stakeAmount: 100n * 1_000_000_000n, provider, idl }); // Bronze
const node = await client.fetchNodeOperator(wallet.publicKey);
const est  = await client.estimateReward(wallet.publicKey);

Fee routing (Jalur A/B)

computeFees() reproduces the on-chain split so dashboards and nodes can display exact expected amounts:

  • Jalur A (direct): 99% seller · 0.9% treasury · 0.1% team
  • Jalur B (via node): 99% seller · 0.375% relaying node · 0.375% epoch pool · 0.15% treasury · 0.1% team

Program

  • Program id: A8qSJCS2uxxnEMdCcpjX2L8hUUMydoeCi5xq5qvzS22B (same on devnet & mainnet)
  • PDAs: ["node_operator", operator], ["epoch_state", epoch_num]

License

MIT © Solinkify