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

@xrpl-wallet-kit/adapter-otsu

v0.1.3

Published

Otsu Wallet adapter for XRPL Wallet Kit - MV3 browser extension wallet.

Readme

@xrpl-wallet-kit/adapter-otsu

Otsu Wallet adapter for XRPL Wallet Kit.

Otsu is an MV3 browser extension wallet for the XRP Ledger. It supports mainnet, testnet, and devnet, and provides granular dApp permission scopes plus transaction simulation with risk scanning before user approval.

  • Extension inject: window.xrpl with isOtsu = true
  • Networks: mainnet · testnet · devnet
  • Capabilities: connect · disconnect · signMessage · signTransaction · signAndSubmit

Installation

npm install @xrpl-wallet-kit/adapter-otsu

Usage

With createWalletKit (recommended)

import { createWalletKit } from "@xrpl-wallet-kit/client";
import { createOtsuAdapter } from "@xrpl-wallet-kit/adapter-otsu";

const kit = createWalletKit({
  adapters: [createOtsuAdapter()],
  modal: true,
  connectButton: "#connect-btn",
});

With WalletManager directly

import { WalletManager } from "@xrpl-wallet-kit/core";
import { createOtsuAdapter } from "@xrpl-wallet-kit/adapter-otsu";

const manager = new WalletManager({
  adapters: [createOtsuAdapter()],
});

const result = await manager.connect("otsu");
console.log("Connected:", result.account.address);

Auto-reconnect

const kit = createWalletKit({
  adapters: [createOtsuAdapter()],
  autoReconnect: true,
  storage: "localStorage",
});

restoreSession checks provider.isConnected() before attempting to restore; a disconnected or locked extension will cleanly return null.

Provider injection

The adapter reads window.xrpl.isOtsu. No npm SDK dependency is required.

// Type declaration included in the package:
declare global {
  interface Window {
    xrpl?: OtsuProvider;
  }
}

Testing

Pass a mock provider via options.provider:

import { OtsuAdapter, OtsuProvider } from "@xrpl-wallet-kit/adapter-otsu";
import { assertWalletAdapter } from "@xrpl-wallet-kit/core";

const mock: OtsuProvider = {
  isOtsu: true,
  isConnected: () => false,
  connect: async () => ({ address: "rTest..." }),
  disconnect: async () => {},
  getAddress: async () => ({ address: "rTest..." }),
  getNetwork: async () => ({ network: "testnet" }),
  signTransaction: async (tx) => ({ tx_blob: "BLOB", hash: "HASH" }),
  signAndSubmit: async (tx) => ({ tx_blob: "BLOB", hash: "HASH" }),
  signMessage: async (msg) => ({ signature: "SIG" }),
  on: () => {},
  off: () => {},
};

const adapter = new OtsuAdapter({ provider: mock });
assertWalletAdapter(adapter); // throws if contract is violated

Wire-up (coder leader)

Note: This package is a standalone adapter. Wiring it into @xrpl-wallet-kit/client and @xrpl-wallet-kit/browser is the responsibility of the project maintainer.

Steps:

  1. Add { "path": "./packages/adapters/otsu" } to root tsconfig.json references.
  2. Import createOtsuAdapter in packages/client/src/index.ts and add it to createDefaultAdapters().
  3. Add "otsu" to the WalletKitAdapterId union in client/src/index.ts.
  4. Run npm run build && npm run typecheck from the repo root.

Wallet homepage

https://github.com/RomThpt/otsu-wallet

License

MIT