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

capx-compose

v0.1.1

Published

πŸš€ CLI tool to scaffold AI application projects with best practices and templates for Supabase, Vercel AI, Firebase, Solana, and EVM development. Create production-ready AI apps in seconds.

Readme

capx-compose

A modular CLI tool for scaffolding AI apps with pre-configured integrations and best practices. Built for the AI IDE era with working examples you can import to Cursor, Claude, or any AI editor to start building immediately.

npx capx-compose my-app

npm version Downloads Discord X Follow

Table of Contents

Overview

capx-compose is a command-line tool that generates Next.js starter templates for AI apps. It handles the initial configuration of common services like AI SDKs, databases, authentication, and blockchain integrations, allowing developers to focus on building features rather than setup.

Features

  • Ready-to-extend templates - Working code that AI IDEs can actually build on
  • Everything you need to ship - Auth, database, AI, blockchain - all pre-wired
  • No dependency hell - Pre-resolved conflicts so you can start building immediately
  • Examples built-in - Working code that scales from hackathon to startup
  • One command setup - From zero to running app in under 3 minutes
  • Modern stack - Next.js 14, TypeScript, Tailwind, shadcn/ui

Who Needs This

  • Hackathon Hackers: Ship your idea without getting caught up with setup
  • Indie Hackers: Stop rebuilding the same auth + database + AI stack
  • Web3 β†’ AI Devs: Wallet connections + LLM streaming already solved
  • AI β†’ Web3 Devs: Add blockchain without the Solidity rabbit hole

Or anyone tired of wiring up the same services for the nth time.

Motivation

Modern AI apps need complex components that developers aren't always familiar with:

  • Auth systems that actually work (social login, wallets with Privy)
  • LLM integration with streaming, function calling, and error handling
  • Database setup with real-time subscriptions (Supabase/Firebase)
  • Blockchain connectivity for Web3 features (EVM, Solana, Sui)

Setting this up takes hours of debugging, reading docs, and fixing version conflicts.

Our approach: Start with working code that AI coding assistants can extend. Whether you're using Cursor, Claude, Windsurf, or any other AI-powered editor, these tools work best when they have boilerplate to build on rather than starting from scratch. capx-compose provides that foundation with a running app in under 3 minutes.

Getting Started

Installation

npm install -g capx-compose

Or use directly with npx:

npx capx-compose my-app

Quick Start

Interactive Setup (Recommended)

npx capx-compose my-app

Follow the prompts to select your desired configuration.

Direct Configuration

# AI chat app
npx capx-compose my-app --plugins="vercel-ai" --yes

# AI with database
npx capx-compose my-app --plugins="vercel-ai,supabase" --yes

# Web3 AI app
npx capx-compose my-app --plugins="vercel-ai,evm,privy" --yes

# AI agent with DeFi capabilities
npx capx-compose my-app --plugins="vercel-ai,goat,supabase" --yes

Configuration

Available Plugins

| Plugin | Description | Use Case | |--------|-------------|----------| | vercel-ai | Vercel AI SDK with OpenAI integration | Streaming chat with GPT models | | supabase | PostgreSQL with auth examples included | User auth, real-time data | | firebase | Firestore with auth | Document storage, offline sync | | vercel-kv | Redis-compatible caching | Session storage, caching | | evm | Multi-chain support (ETH, Base, Arbitrum, Polygon) | Web3 transactions across chains | | solana | Solana blockchain integration | Solana dApps | | sui | Sui blockchain with wallet connection | Sui dApps with wallet UI | | privy | Web3 authentication | Social login + embedded wallets | | goat | AI agent for EVM & Solana (swaps, sends, balances) | Multi-chain DeFi agent | | solana-agent-kit | Advanced Solana agent for DeFi | Token ops, swaps, Jupiter integration |

Plugin Compatibility Rules

  • Minimum: 1 plugin required
  • Maximum: 6 plugins allowed
  • Databases: Choose either supabase OR firebase (not both)
  • Blockchains: Choose one - evm, solana, OR sui (not multiple)
  • Agents: Choose either goat OR solana-agent-kit (not both)
  • Auth: privy requires a blockchain plugin (evm, solana, or sui)

Common Configurations

# Web2 AI App
--plugins="vercel-ai,supabase"

# Web3 DeFi Dashboard
--plugins="evm,privy,vercel-ai"

# AI Agent Platform
--plugins="goat,vercel-ai,supabase,vercel-kv"

# Solana AI App
--plugins="solana,vercel-ai,firebase"

# Sui Blockchain App
--plugins="sui,privy,vercel-ai"

Usage

CLI Options

capx-compose <project-name> [options]

Options:
  --plugins <list>              Comma-separated list of plugins
  --dependency-strategy <type>  Resolution strategy (smart|highest|compatible)
  --package-manager <pm>        Package manager (npm|yarn|pnpm)
  --typescript                  Enable TypeScript (default: true)
  --tailwind                    Enable Tailwind CSS (default: true)
  --eslint                      Enable ESLint (default: true)
  --yes                         Skip interactive prompts
  --skip-install                Skip dependency installation
  --help                        Display help
  --version                     Display version

Project Structure

my-app/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/                 # Next.js App Router
β”‚   β”‚   β”œβ”€β”€ api/             # API routes
β”‚   β”‚   β”œβ”€β”€ chat/            # Example chat implementation
β”‚   β”‚   └── page.tsx         # Home page
β”‚   β”œβ”€β”€ components/          # React components
β”‚   β”œβ”€β”€ lib/                 # Utility functions and configs
β”‚   └── types/              # TypeScript definitions
β”œβ”€β”€ public/                  # Static assets
β”œβ”€β”€ .env.example            # Environment variables template
β”œβ”€β”€ .env.local              # Your environment variables (create this)
β”œβ”€β”€ next.config.js          # Next.js configuration
β”œβ”€β”€ tailwind.config.js      # Tailwind configuration
β”œβ”€β”€ tsconfig.json           # TypeScript configuration
└── package.json            # Dependencies and scripts

Environment Variables

Each plugin adds its required variables to .env.example:

# Copy the template
cp .env.example .env.local

# Example variables (plugin-dependent)
OPENAI_API_KEY=sk-...                    # For vercel-ai
NEXT_PUBLIC_SUPABASE_URL=https://...     # For supabase
NEXT_PUBLIC_SUPABASE_ANON_KEY=...        # For supabase
NEXT_PUBLIC_PRIVY_APP_ID=...             # For privy

Development

Prerequisites

  • Node.js 18.0.0 or higher
  • npm 7.0.0 or higher

Local Development

# Clone the repository
git clone https://github.com/capx-ai/capx-compose.git
cd capx-compose

# Install dependencies
npm install

# Run tests
npm test

# Test CLI locally
capx-compose test-app --skip-install

Contributing

We welcome contributions, especially new plugin integrations.

Adding a Plugin

Create a new folder in /templates/[plugin-name]/ with:

  • config.json - Dependencies and metadata
  • example.tsx - Working example code
  • .env.example - Required environment variables
  • setup.md - Setup instructions

Test locally with capx-compose test-app --plugins="your-plugin" --skip-install and submit a PR.

Priority Areas

  • More AI SDKs (LangChain, direct OpenAI)
  • Payment processing (Stripe, crypto payments)
  • More auth providers
  • Bug fixes and docs improvements

Support

About Capx

Capx is building infrastructure for the convergence of AI and blockchain. capx-compose is part of our commitment to making this intersection more accessible to developers. Learn more at capx.ai.

License

MIT

Acknowledgments

Built with and for the developer community. Special thanks to early contributors and hackathon participants who provided feedback.


Made with ❀️ at Capx