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

@avalix/chroma

v0.0.14

Published

End-to-end testing library for Polkadot wallet interactions

Downloads

636

Readme

@avalix/chroma

End-to-end testing library for Polkadot wallet interactions using Playwright.

Documentation

We highly recommend you take a look at the Chroma documentation to level up. It's a great resource for learning more about the library. It covers everything from getting started to advanced topics like CI/CD integration and Docker setup.

Installation

npm install @avalix/chroma @playwright/test

Note: @playwright/test is a peer dependency and must be installed separately to avoid conflicts.

Download Extensions

Before running your tests, you need to download the wallet extensions:

npx chroma download-extensions

This will download the wallet extensions (Polkadot JS and Talisman) to ./.chroma directory in your project root.

Tip: Add this to your package.json scripts for convenience:

{
  "scripts": {
    "test:prepare": "chroma download-extensions"
  }
}

Important: You must run this command before running Playwright tests. If the extension is not found, tests will fail with a helpful error message.

Quick Start

import { createWalletTest, expect } from '@avalix/chroma'

const test = createWalletTest({
  wallets: [{ type: 'polkadot-js' }]
})

test('connect wallet and sign transaction', async ({ page, wallets }) => {
  const polkadotJs = wallets['polkadot-js']

  await polkadotJs.importMnemonic({
    seed: 'bottom drive obey lake curtain smoke basket hold race lonely fit walk',
    name: 'Test Account',
    password: 'securePassword123'
  })

  await page.goto('http://localhost:3000')
  await page.click('button:has-text("Connect Wallet")')
  await polkadotJs.authorize()

  await page.click('button:has-text("Send Transaction")')
  await polkadotJs.approveTx({ password: 'securePassword123' })

  await expect(page.locator('.transaction-success')).toBeVisible()
})

Multiple Wallets

import { createWalletTest } from '@avalix/chroma'

const test = createWalletTest({
  wallets: [{ type: 'polkadot-js' }, { type: 'talisman' }]
})

test('multi-wallet test', async ({ page, wallets }) => {
  const polkadotJs = wallets['polkadot-js']
  const talisman = wallets.talisman

  await polkadotJs.importMnemonic({ seed: '...', name: 'Alice' })
  await talisman.importEthPrivateKey({ privateKey: '0x...', name: 'Bob' })

  await page.goto('http://localhost:3000')
  await polkadotJs.authorize()
})

Supported Wallets & Chains

Supported Chains

| Chain | Status | |-------|--------| | Polkadot | ✅ Supported | | Ethereum | ✅ Supported | | Solana | ⏳ Planned |

Supported Wallets

| Wallet | Status | Version | |--------|--------|---------| | Polkadot JS Extension | ✅ Supported | v0.62.6 | | Talisman | ✅ Supported | v3.1.13 | | SubWallet | ⏳ Planned | - | | MetaMask | ⏳ Planned | - |

Features

  • Easy Extension Setup - Download wallet extensions with a single command
  • Multi-Wallet Support - Test with multiple wallet extensions simultaneously
  • TypeScript Support - Full type safety and autocomplete
  • VS Code Integration - Works with Playwright Test for VS Code

Requirements

  • Node.js 24+
  • @playwright/test ^1.55.0

License

MIT