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

@klappay/arc-splits

v1.0.0

Published

Thin viem client for the klap-arc temporary 0xSplits fork on Circle's Arc

Readme

@klappay/arc-splits

MIT. A thin viem-based client for the klap-arc fork of 0xSplits' contracts, deliberately shaped close to @0xsplits/splits-sdk's own call surface so swapping to the real package later (see the repo root's docs/migration.md) touches as little consumer code as possible.

Scoped deliberately narrow: only the deterministic-salt create/predict flow (createSplitDeterministic/predictDeterministicAddress(salt)), not 0xSplits' nonce-based createSplit/predictDeterministicAddress() overload — the whole point of this package is the lazy, address-known-in-advance pattern klap-core already relies on with real 0xSplits, so that's the only flow worth wrapping here.

Usage

import { createPublicClient, createWalletClient, http } from "viem";
import { ARC_MAINNET_CHAIN_ID, createArcSplitsClient } from "@klappay/arc-splits";

const publicClient = createPublicClient({ transport: http("https://rpc.arc.io") });
const walletClient = createWalletClient({ transport: http("https://rpc.arc.io"), account });

const splits = createArcSplitsClient(ARC_MAINNET_CHAIN_ID, publicClient, walletClient);

const split = {
  recipients: [merchantAddress, treasuryAddress],
  allocations: [990_000n, 10_000n],
  totalAllocation: 1_000_000n,
  distributionIncentive: 0,
};

// Predicted off-chain, costs nothing — the counterfactual/lazy address.
const address = await splits.predictSplitAddress(split, ownerAddress, salt);

// Only actually deploys the SplitWalletV2 the first time this is called.
await splits.createSplitDeterministic(split, ownerAddress, creatorAddress, salt);

getChainAddresses (used internally) throws if a chain either has no registry entry, or has one whose addresses are still null — i.e. nothing's been deployed there yet via packages/contracts' deploy script. That's deliberate: this package refuses to silently hand out a placeholder address that doesn't point at a real, deployed factory.