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

lynx-reown-dapp-kit

v1.0.8

Published

A unified Frontend SDK for multichain (EVM & Solana) dApps, providing a standardized interface for wallet connection, contract interaction, and network management. Built for easy integration and extension.

Readme

Lynx Reown Dapp Kit

A unified Frontend SDK for multichain (EVM & Solana) dApps, providing a standardized interface for wallet connection, contract interaction, and network management. Built for easy integration and extension.

Features

  • Multichain Support: EVM (Ethereum, Arbitrum, etc.) & Solana
  • Unified Abstractions: Wallet, Contract, Network
  • Separation of Concerns: Distinct logic for signTransaction, sendTransaction, callContract
  • Custom Signer Injection: Use AppKit or your own provider
  • Frontend-only: No backend dependency
  • Modular & Testable: Easy to extend and mock

Installation

pnpm add lynx-reown-dapp-kit @reown/appkit @reown/appkit-adapter-wagmi @reown/appkit-adapter-solana @tanstack/react-query wagmi @solana/web3.js react react-dom next

If you use Tailwind CSS (recommended for Next.js example):

pnpm add -D tailwindcss @tailwindcss/postcss

Next.js Integration Example

1. Setup Provider in app/layout.tsx

Create a ClientProviders component:

// components/ClientProviders.tsx
"use client";
import { LynxReownProvider } from "lynx-reown-dapp-kit";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { WagmiProvider } from "wagmi";
import { WagmiAdapter } from "@reown/appkit-adapter-wagmi";
import { SolanaAdapter } from "@reown/appkit-adapter-solana";

const wagmiAdapter = new WagmiAdapter({ /* ... */ });
const solanaAdapter = new SolanaAdapter();
const queryClient = new QueryClient();

const chains = [
  { chainId: "84532", chainType: "evm", rpc: "...", explorerUrl: "...", chainName: "Base Sepolia" },
  { chainId: "EtWTRABZaYq6iMfeYKouRu166VU2xqa1", chainType: "sol", rpc: "...", explorerUrl: "...", chainName: "Solana Devnet" },
  { chainId: "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", chainType: "sol", rpc: "...", explorerUrl: "...", chainName: "Solana Mainnet" },
  // ...add more chains
];

export default function ClientProviders({ children }) {
  return (
    <WagmiProvider config={wagmiAdapter.wagmiConfig}>
      <QueryClientProvider client={queryClient}>
        <LynxReownProvider chains={chains} defaultChain={chains[0]}>
          {children}
        </LynxReownProvider>
      </QueryClientProvider>
    </WagmiProvider>
  );
}

Wrap your app in ClientProviders in app/layout.tsx:

import ClientProviders from "../components/ClientProviders";
export default function RootLayout({ children }) {
  return (
    <html lang="en">
      <body>
        <ClientProviders>{children}</ClientProviders>
      </body>
    </html>
  );
}

2. Use the SDK in Your Page

"use client";
import { useWallet } from "lynx-reown-dapp-kit";
import { Erc20Contract } from "../contracts/erc20-contract";
import { Transaction, SystemProgram, PublicKey } from "@solana/web3.js";

export default function Home() {
  const walletEvm = useWallet("84532");
  const walletSol = useWallet("EtWTRABZaYq6iMfeYKouRu166VU2xqa1");

  const transferEvm = async () => {
    const txData = new Erc20Contract("0x...").transfer("0x...", 1);
    const tx = await walletEvm?.sendTransaction(txData);
    console.log(tx, "tx");
  };

  const transferSol = async () => {
    if (!walletSol) return;
    const transaction = new Transaction();
    const lamports = 0.0001 * 1e9;
    const transferIx = SystemProgram.transfer({
      fromPubkey: new PublicKey(walletSol.address),
      toPubkey: new PublicKey(walletSol.address),
      lamports,
    });
    transaction.add(transferIx);
    const tx = await walletSol.sendTransaction(transaction);
    console.log("Solana transfer signature:", tx);
  };

  // ...UI code
}

3. EVM Contract Example

import { EvmContract } from "lynx-reown-dapp-kit";
const abi = [ /* ... */ ];
export class Erc20Contract extends EvmContract {
  constructor(address: string) {
    super({ address, abi });
  }
  transfer(to: string, value: number) {
    return this.build({ method: "transfer", params: [to, value] });
  }
}

4. Tailwind & CSS

  • Import Tailwind in your globals.css and ensure you have postcss.config.mjs with @tailwindcss/postcss.
  • No special config needed for SDK.

Development

  1. Clone the repo
  2. Install dependencies:
    pnpm install
  3. Build:
    pnpm build
  4. Run example:
    cd examples/nextjs
    pnpm dev

Project Structure

  • src/core/: Abstract interfaces and context
  • src/evm/: EVM-specific logic
  • src/solana/: Solana-specific logic
  • src/types/: Shared types
  • examples/nextjs/: Example Next.js dApp

License

MIT