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

@xx.network/types

v1.0.6

Published

XX Network blockchain type definitions for @polkadot/api

Downloads

9

Readme

@xx.network/types

XX Network blockchain type definitions for @polkadot/api.

Description

This package provides TypeScript type definitions and API augmentations for interacting with the XX Network blockchain using the Polkadot.js API.

Repository

  • Source Code: https://git.xx.network/foundation/xx-network-types
  • Issues: https://git.xx.network/foundation/xx-network-types/-/issues

Installation

# bun
bun add @xx.network/types

# npm
npm install @xx.network/types

# yarn
yarn add @xx.network/types

# pnpm
pnpm add @xx.network/types

Usage

Import the types before any imports from @polkadot/api to augment the API with XX Network specific types:

// Import XX Network types first (side-effect import)
import '@xx.network/types';

// Then import from @polkadot/api
import { ApiPromise, WsProvider } from '@polkadot/api';

async function main() {
  const provider = new WsProvider('wss://rpc.xx.network');
  const api = await ApiPromise.create({ provider });

  // API is now augmented with XX Network types
  const chain = await api.rpc.system.chain();
  console.log(`Connected to ${chain}`);
}

main();

Compatibility

  • Node.js >= 18.0.0
  • @polkadot/api >= 16.0.0

License

Apache-2.0

Contributing

Contributions are welcome! Please submit issues and pull requests at: https://git.xx.network/foundation/xx-network-types

Support

For questions and support, visit:

  • XX Network Forum: https://forum.xx.network
  • Discord: https://discord.xx.network