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-fogo-app

v1.0.1

Published

The easiest way to get started on Fogo Chain. Scaffolds a Next.js dApp with Fogo Sessions pre-configured.

Readme

🔥 create-fogo-app

The fastest way to build on Fogo Chain

npm version License: MIT npm downloads

Scaffold a production-ready Fogo dApp with Sessions SDK in seconds.

Quick StartFeaturesDocumentationExamples


🚀 Quick Start

Get started with a single command:

npx create-fogo-app my-fogo-app

Then:

cd my-fogo-app
npm install
npm run dev

Open http://localhost:3000 and start building! 🎉


✨ Features

  • ⚡ Zero-Config Setup - Start building immediately with sensible defaults
  • 🔑 Fogo Sessions SDK - Gasless transactions pre-configured
  • 💳 Wallet Integration - Phantom, Solflare, and all Solana wallets supported
  • 🎨 Modern UI - Beautiful components with shadcn/ui + TailwindCSS
  • 📝 TypeScript - Full type safety out of the box
  • 🎯 Demo Included - Working SPL Memo transaction example
  • 🌐 Next.js 14 - App Router, Server Components, and more
  • 📱 Responsive - Mobile-first design that works everywhere

📦 What's Included

Your scaffolded project includes:

my-fogo-app/
├── app/
│   ├── layout.tsx          # Root layout with Fogo providers
│   ├── page.tsx            # Home page with demo
│   ├── providers.tsx       # Fogo Sessions + Wallet setup
│   └── globals.css         # Global styles
├── components/
│   ├── ui/                 # shadcn/ui components
│   ├── SessionButton.tsx   # Session management
│   └── MemoDemo.tsx        # SPL Memo demo
├── hooks/
│   └── useFogoSession.ts   # Custom session hook
├── lib/
│   └── utils.ts            # Utilities
├── .env.example            # Environment template
├── next.config.ts          # Next.js config
├── tailwind.config.ts      # Tailwind config
└── package.json

🎯 What You Get

1. Session Management

  • One-click wallet connection
  • Session key creation with scoped permissions
  • Automatic session state management

2. Gasless Transactions

  • No gas fees for users
  • Paymaster integration ready
  • Session keys sign transactions in background

3. Production-Ready Stack

  • Next.js 14 with App Router
  • TypeScript for type safety
  • TailwindCSS for styling
  • shadcn/ui for beautiful components
  • Solana Web3.js integration

4. Working Demo

  • SPL Memo transaction example
  • "Say GM" button demonstrates gasless UX
  • No wallet popup needed after session established

🛠️ Configuration

After creating your project, update .env with your paymaster details:

# Fogo RPC (Testnet by default)
NEXT_PUBLIC_FOGO_RPC_URL=https://testnet.fogo.io

# Paymaster Configuration
NEXT_PUBLIC_PAYMASTER_URL=https://paymaster.testnet.fogo.io
NEXT_PUBLIC_SPONSOR_PUBLIC_KEY=YourSponsorPublicKeyHere

Note: You need to set up a paymaster sponsor account. Visit Fogo Documentation for instructions.


📚 Documentation

How Fogo Sessions Work

  1. User connects wallet (one-time)
  2. App requests session with specific limits
  3. User approves session creation
  4. Session key signs transactions in background
  5. Paymaster covers gas fees

Key Concepts

  • Session Keys: Temporary keys with scoped permissions
  • Paymaster: Covers transaction fees for users
  • Gasless UX: No wallet popups or gas fees after session established

Learn More


🎨 Examples

Basic Usage

# Create a new project
npx create-fogo-app my-dapp

# With custom name
npx create-fogo-app awesome-fogo-project

User Flow in Your App

// 1. Connect wallet
<WalletMultiButton />;

// 2. Establish session
const { establishSession } = useFogoSession();
await establishSession();

// 3. Send gasless transaction
const { sendTransaction } = useFogoSession();
await sendTransaction(transaction); // No wallet popup!

🔧 Requirements

  • Node.js 18 or higher
  • npm, yarn, or pnpm
  • A Solana wallet (Phantom, Solflare, etc.)

🚢 Deployment

Vercel (Recommended)

npx vercel

Make sure to add your environment variables in Vercel project settings.

Other Platforms

The scaffolded app is a standard Next.js application and can be deployed to:

  • Netlify
  • Railway
  • AWS
  • Any platform supporting Next.js

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

MIT License - see the LICENSE file for details.


🙏 Acknowledgments


� Support


Built with 🔥 by Rokan0-0

npmGitHub