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

@0xslots/sdk

v0.10.1

Published

Type-safe SDK for the 0xSlots protocol — reads (subgraph) + writes (viem)

Readme

@0xslots/sdk

Unified SDK for the 0xSlots protocol — subgraph reads + on-chain writes with ERC-20 approval handling and EIP-5792 atomic batch support.

Install

pnpm add @0xslots/sdk viem

Usage

Read-only (subgraph)

import { createSlotsClient, SlotsChain } from "@0xslots/sdk";

const client = createSlotsClient({ chainId: SlotsChain.BASE_SEPOLIA });

const { slots } = await client.getSlots({ first: 10 });
const { slot } = await client.getSlot({ id: "0x..." });

Read + Write

import { createSlotsClient, SlotsChain } from "@0xslots/sdk";

const client = createSlotsClient({
  chainId: SlotsChain.BASE_SEPOLIA,
  factoryAddress: "0x...",
  publicClient, // viem PublicClient
  walletClient, // viem WalletClient
});

// Buy handles ERC-20 approval automatically
await client.buy({ slot: "0x...", depositAmount: 1000000n, selfAssessedPrice: 5000000n });

await client.topUp("0x...", 500000n);
await client.release("0x...");
await client.collect("0x...");

API

Subgraph Queries

getSlots, getSlot, getSlotsByRecipient, getSlotsByOccupant, getFactory, getModules, getAccounts, getAccount, getSlotActivity, getRecentEvents, getBoughtEvents, getReleasedEvents, getLiquidatedEvents, getSettledEvents, getTaxCollectedEvents, getDepositedEvents, getWithdrawnEvents, getPriceUpdatedEvents, getMeta

On-chain Reads

getSlotInfo(slot) — full slot state via RPC

Writes (require walletClient + publicClient)

| Method | Description | |--------|-------------| | createSlot(params) | Deploy a new slot via factory | | createSlots(params) | Deploy multiple slots | | buy(params) | Buy or force-buy a slot (auto-approves ERC-20) | | topUp(slot, amount) | Add to deposit (auto-approves ERC-20) | | withdraw(slot, amount) | Withdraw from deposit | | selfAssess(slot, price) | Set self-assessed price | | release(slot) | Release slot, reclaim deposit | | collect(slot) | Flush accumulated tax to recipient | | liquidate(slot) | Liquidate insolvent slot | | proposeTaxUpdate(slot, pct) | Propose new tax rate (manager) | | proposeModuleUpdate(slot, module) | Propose new module (manager) | | cancelPendingUpdates(slot) | Cancel pending proposals (manager) | | setLiquidationBounty(slot, bps) | Set liquidation bounty (manager) | | multicall(slot, calls) | Batch multiple slot calls |

ERC-20 approvals are handled automatically for buy and topUp. If the wallet supports EIP-5792 atomic batching, approve + action are sent as a single atomic call.

License

MIT