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

@dome-protocol/sdk

v0.3.0

Published

The frontend sdk to operate with dome onchain entities

Readme

Dome SDK

Web sdk that helps to generate transaction scripts and serialize addresses to the miden felts.

Features

Data type serialization

SDK performs the serialization of commonly used entities into the miden felts without the wasm binary involving.

EVM address serialization

Example:

const felts = evmAddressToFelts("0x58de221108ebf6ee0c28c7685e26487837f452e8");

Output:

[17219208645177433688n, 8667219669801183244n, 3897750583n];

Transaction masm script generation

SDK helps to form the transaction script from the request object

Disperse

Generates the disperse transaction script that distributes the asset from the account into a several CROSSCHAIN notes.

Example:

const script = generateDisperseScript({
  assetAccountId: "0x63c9d7af451fda2000fa06ce0bdefd",
  shares: [
    {
      recipient:
        "0x8f13f40555b1382d890e646242466d5d088b10696a73660192980b94c0e46559",
      amount: 1000000n,
    },
    {
      recipient:
        "0xc63ad6622d2b7f9cec142ac1b0e8613f534d31e1dc76941ac335b9531baf9e98",
      amount: 2000000n,
    },
  ],
});

Output:

use.miden::tx
use.miden::contracts::wallets::basic

begin
    push.0x8f13f40555b1382d890e646242466d5d088b10696a73660192980b94c0e46559
    push.0
    push.2
    push.0
    push.4177657856
    call.tx::create_note

    push.0x40420f0000000000000000000000000020da1f45afd7c96300fdde0bce06fa00
    call.basic::move_asset_to_note dropw
    dropw dropw dropw drop

    push.0xc63ad6622d2b7f9cec142ac1b0e8613f534d31e1dc76941ac335b9531baf9e98
    push.0
    push.2
    push.0
    push.4177657856
    call.tx::create_note

    push.0x80841e0000000000000000000000000020da1f45afd7c96300fdde0bce06fa00
    call.basic::move_asset_to_note dropw
    dropw dropw dropw drop

end

React integration

Preswap provider

Configure your preswap strategies per chain and use the provider to bootstrap the preswap service.

const preswapConfig = {
  11155111: {
    type: "uniswap-v2",
    txConfirmations: 5,
    swapRouterAddress: "0xeE567Fe1712Faf6149d80dA1E6934E354124CfE3",
    slippageTolerance: 70 // 0.7%
  }
}

function page() {
  return (
    <PreswapProvider providers={preswapConfig}>
      <App>
    </PreswapProvider>
  )
}

Use the hook to access configures preswaps

function component() {
  const preswapService = usePreswap();
  const chainId = useChainId();
  const [quotes, setQuotes] = useState([]);

  useEffect(() => {
    const interval = setInterval(() => {
      if (
        preswapService &&
        preswapService.getSupportedChains().includes(chainId)
      ) {
        preswapService.getRoutes(request).then((routes) => setQuotes(routes));
      }
    }, 5000);

    return () => clearInterval(interval);
  }, [request, preswapService, chainId]);

  const onBuyClick = useCallback(
    (quote) => {
      preswapService.executeRoute(quote).then(() => console.log("Sucess"));
    },
    [preswapService]
  );
}

Contribution

How to release

  1. Push your feature to the main branch with PR or directly with conventional commit message.
  2. Wait for the job that bumps the version of the package
  3. Visit tags page and create the release from the created version tag with empty title
  4. Wait for release job that pushes new vrsion of the lib to the npm registry