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

create-phantom-app

v1.0.7

Published

Create Solana apps with Phantom Connect. OAuth login, embedded wallets, production-ready components.

Readme

Quick Start

npx create-phantom-app my-app
cd my-app
npm install
npm run dev

Open localhost:3000 and start building.

Why Phantom Connect Kit?

Stop building wallet connections from scratch. This kit gives you production-ready components so you can focus on your app.

| | | |:--|:--| | OAuth Login | Users sign in with Google or Apple. No extensions, no seed phrases. | | Instant Wallets | Embedded wallets created automatically on first login. | | Ready Components | ConnectButton, WalletInfo, BalanceCard, NetworkBadge | | Secure by Default | API keys server-side, Solana address validation, tested. | | Modern Stack | Next.js 15, React 19, TypeScript, Tailwind CSS 4 |

What You Get

my-app/
├── src/
│   ├── app/
│   │   ├── api/balance/      # Secure balance endpoint
│   │   ├── layout.tsx        # PhantomProvider wrapper
│   │   └── page.tsx          # Demo with all components
│   ├── components/
│   │   ├── phantom/          # ConnectButton, WalletInfo, BalanceCard...
│   │   └── ui/               # shadcn/ui primitives
│   └── hooks/
│       └── use-balance.ts    # Balance hook with USD conversion
├── .env.example              # Environment template
└── package.json

Configuration

Get your App ID from phantom.com/portal and add it to .env.local:

NEXT_PUBLIC_PHANTOM_APP_ID=your-app-id
HELIUS_API_KEY=your-helius-key    # Optional: enables balance fetching

Components

ConnectButton

import { ConnectButton } from "@/components/phantom";

// Renders "Connect" button, shows address when connected
<ConnectButton />

WalletInfo

import { WalletInfo } from "@/components/phantom";

// Shows full address with copy button
<WalletInfo />

BalanceCard

import { BalanceCard } from "@/components/phantom";

// Displays SOL balance with USD value (requires HELIUS_API_KEY)
<BalanceCard />

NetworkBadge

import { NetworkBadge } from "@/components/phantom";

<NetworkBadge network="mainnet" />
<NetworkBadge network="devnet" />

Hooks

useBalance

import { useBalance } from "@/hooks/use-balance";

const { balance, usdValue, isLoading, refetch } = useBalance(address);

Stack

Links

License

MIT