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

chainjet

v1.0.0

Published

ChainJet CLI - Modern Web3 dApp scaffolding tool with RainbowKit, wagmi, and viem

Readme

ChainJet CLI

ChainJet CLI Screenshot

🚀 A modern CLI tool for creating Web3 dApps with the latest stack: Next.js 15, RainbowKit v2, wagmi v2, and viem v2.

ChainJet CLI Screenshot

Features

  • Modern Stack: Built with the latest versions of RainbowKit, wagmi, and viem
  • 🔒 Error-Free: Fixes the common "getDefaultConfig is not a function" error
  • 🎯 TypeScript & JavaScript: Support for both TypeScript and JavaScript
  • 🌈 Multi-Chain: Pre-configured with Ethereum, Polygon, Optimism, Arbitrum, and Base
  • Fast Setup: Quick project scaffolding with all dependencies installed
  • 🎨 Beautiful UI: Pre-configured RainbowKit with dark theme

Installation

npx chainjet create my-app

Usage

Create a New Web3 dApp

npx chainjet create my-web3-app

You'll be prompted to select:

  1. Project Type: Web3 dApp
  2. Language: TypeScript or JavaScript

After Project Creation

  1. Navigate to your project:

    cd my-web3-app
  2. Update your WalletConnect Project ID in wagmi-config.ts (or wagmi-config.js):

    export const config = getDefaultConfig({
      appName: 'My App',
      projectId: 'YOUR_WALLETCONNECT_PROJECT_ID', // Get this from https://cloud.walletconnect.com
      chains: [mainnet, polygon, optimism, arbitrum, base],
      ssr: true,
    });
  3. Run the development server:

    npm run dev
  4. Open http://localhost:3000 in your browser

Generated Project Structure

my-web3-app/
├── app/
│   ├── layout.tsx         # Root layout with providers
│   ├── page.tsx           # Home page with wallet connection
│   └── globals.css        # Global styles
├── components/
│   └── providers.tsx      # Wagmi and RainbowKit providers
├── wagmi-config.ts        # Wagmi configuration
├── package.json           # Dependencies (latest versions)
├── tsconfig.json          # TypeScript configuration
├── next.config.js         # Next.js configuration
└── README.md              # Project documentation

Technology Stack

  • Next.js 15: Latest React framework with App Router
  • RainbowKit v2: Beautiful wallet connection UI
  • wagmi v2: React hooks for Ethereum
  • viem v2: TypeScript interface for Ethereum
  • TanStack Query: Async state management
  • TypeScript: Full type support (for TS projects)

Key Features of Generated Projects

✅ Correct RainbowKit API

The template uses the correct import statement to avoid errors:

import { getDefaultConfig } from '@rainbow-me/rainbowkit';

✅ Latest Dependencies

All dependencies are pinned to the latest compatible versions:

{
  "@rainbow-me/rainbowkit": "^2.1.6",
  "wagmi": "^2.13.6",
  "viem": "^2.21.58",
  "next": "16.2.2"
}

✅ SSR Support

Properly configured for Next.js 15 with Server-Side Rendering:

export const config = getDefaultConfig({
  // ...
  ssr: true,
});

✅ Multi-Chain Support

Pre-configured with major chains:

  • Ethereum Mainnet
  • Polygon
  • Optimism
  • Arbitrum
  • Base

Common Issues

"getDefaultConfig is not a function"

This error occurs when using outdated RainbowKit versions. Our template fixes this by:

  1. Using the latest RainbowKit v2.x
  2. Importing getDefaultConfig from the correct package
  3. Ensuring compatibility between all dependencies

Wallet Connection Issues

Make sure to:

  1. Get a WalletConnect Project ID from cloud.walletconnect.com
  2. Update the projectId in wagmi-config.ts
  3. Use a Web3-enabled browser or wallet extension

Development

To contribute to this CLI tool:

git clone https://github.com/ramykatour/chainjet.git
cd cli
npm link
chainjet create test-app

Documentation

For more information on the underlying technologies:

License

MIT

Support


Built with ❤️ by ChainJet