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

@wjbeau/accounts-keystore-extension

v1.0.0-canary.5

Published

Accounts Keystore bridge for wallet extensions.

Downloads

265

Readme

🌉 @wjbeau/accounts-keystore-extension

Bridge between Account Store and Keystore.

This extension provides a reference implementation for bridging the Account Store and the Keystore. It automatically populates the account store with accounts derived from keys in the keystore and provides a signing method that leverages the keystore backend.

[!NOTE] This extension is primarily a reference for how to create other types of account bridges. It does not have much functionality outside of bridging these two specific stores together.

✨ Features

  • Auto-Population: Automatically adds accounts to the Account Store when keys are added to the Keystore.
  • Integrated Signing: Provides a sign method on accounts that automatically uses the Keystore for cryptographic operations.
  • Reactive Synchronization: Subscribes to Keystore changes to keep the Account Store in sync.

🧱 Core Components

📥 Installation

pnpm add @wjbeau/accounts-keystore-extension

🚀 Quick Start

1. Adding the Extension to a Provider

The WithAccountsKeystore extension requires both WithAccountStore and WithKeyStore (or a compatible keystore extension) to be present on the provider.

import { Provider } from "@algorandfoundation/wallet-provider";
import { WithAccountStore } from "@wjbeau/accounts-store";
import { WithKeyStore } from "@wjbeau/keystore-react-native"; // or any keystore implementation
import { WithAccountsKeystore } from "@wjbeau/accounts-keystore-extension";

const MyProvider = Provider.withExtensions([WithAccountStore, WithKeyStore, WithAccountsKeystore]);

2. Configuration

When initializing the provider, you can configure the bridge behavior:

const provider = new MyProvider(
  { id: "my-provider", name: "My Provider" },
  {
    accounts: {
      store: accountStore,
      hooks: accountHooks,
      keystore: {
        autoPopulate: true, // Default is true
      },
    },
    keystore: {
      store: keyStore,
      hooks: keyStoreHooks,
    },
  },
);

3. Usage

Once configured, any compatible keys (e.g., hd-derived-ed25519) added to the keystore will automatically appear as accounts:

// Generate a key in the keystore
await provider.key.store.generate({ type: "hd-seed" });

// The account is automatically added to the account store
console.log(provider.accounts);

// Sign using the account's sign method
const account = provider.accounts[0];
const signed = await account.sign([txnData]);

📖 API Documentation

For detailed information on types and methods, see the TypeDocs.

📜 License

Apache-2.0