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

trashpack-wallet-adapter

v1.0.7

Published

Solana wallet adapter for Trashpack extension

Readme

🗑️ Trashpack Wallet Adapter

Solana Wallet Adapter for the Trashpack browser extension — compatible with @solana/wallet-adapter ecosystem.

npm version GitHub License: MIT


🚀 Overview

trashpack-wallet-adapter is a custom Solana wallet adapter that integrates your Trashpack crypto wallet browser extension into any Solana dApp using the @solana/wallet-adapter system.

This adapter detects the Trashpack wallet (injected into window.trashpack or window.solana), handles connection, transaction signing, message signing, and more — just like Phantom or Solflare.

📦 Installation

npm install trashpack-wallet-adapter

Or with Yarn:

yarn add trashpack-wallet-adapter

🔧 Usage


import React, { useMemo } from 'react';
import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react';
import { WalletModalProvider } from '@solana/wallet-adapter-react-ui';
import {
    PhantomWalletAdapter,
    SolflareWalletAdapter,
    TorusWalletAdapter,
    CoinbaseWalletAdapter,
    LedgerWalletAdapter

} from '@solana/wallet-adapter-wallets';
import { clusterApiUrl } from '@solana/web3.js';
// trashpack
import { TrashpackWalletAdapter } from 'trashpack-wallet-adapter';
import '@solana/wallet-adapter-react-ui/styles.css';
https://github.com/amitpatel-wstf/TrashPack-Wallet-Adapters
export const WalletConnectionProvider = ({ children }: { children: React.ReactNode }) => {
    const endpoint = useMemo(() => clusterApiUrl('devnet'), []);

    const wallets = useMemo(
        () => [
            new PhantomWalletAdapter(),
            new SolflareWalletAdapter(),
            new TorusWalletAdapter(),
            new CoinbaseWalletAdapter(),
            new LedgerWalletAdapter(),
            new TrashpackWalletAdapter()
        ],
        []
    );

    return (
        <ConnectionProvider endpoint={endpoint}>
            <WalletProvider wallets={wallets} autoConnect>
                <WalletModalProvider>{children}</WalletModalProvider>
            </WalletProvider>
        </ConnectionProvider>
    );
};

🧠 Adapter Detection

The adapter detects your wallet automatically via:

window.trashpack?.isTrashPack || window.solana?.isTrashPack

Ensure your browser extension exposes this object properly.

📋 API Reference

This adapter extends BaseMessageSignerWalletAdapter, so it supports all standard methods like:

  • connect()
  • disconnect()
  • signTransaction()
  • signAllTransactions()
  • signMessage()
  • sendTransaction()

It also emits events such as:

  • connect(publicKey)
  • disconnect()
  • readyStateChange(WalletReadyState)
  • error(error)

🧩 Supported Transaction Versions

supportedTransactionVersions = new Set(['legacy', 0]);

🌐 Wallet Details

| Field | Value | |-------|-------| | name | "TrashPack" | | url | https://trashpack.tech | | icon | Custom base64 SVG |

🛠️ Development

To build the adapter:

npm install
npm run build

This compiles src/index.ts into dist/.

🔒 Requirements

  • @solana/web3.js
  • @solana/wallet-adapter-base

🧪 Test Your Wallet

To test that your Trashpack wallet is injected and working:

if (window.trashpack?.isTrashPack || window.solana?.isTrashPack) {
    console.log('Trashpack wallet detected ✅');
}

📣 Note

This adapter does not provide the browser extension itself. It assumes that your extension is installed and properly injects the trashpack object into the window.

🤝 Contributing

Feel free to open issues or submit PRs for improvements and fixes.

📜 License

MIT License © [Your Name]


GitHub Repository: https://github.com/amitpatel-wstf/TrashPack-Wallet-Adapters