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

cabin-flights

v0.1.2

Published

AI-first travel booking for assistants and agents. Search and book real flights with natural language and crypto payments.

Readme

@cabin/agent

AI-first travel booking for assistants and agents. Search and book real flights with natural language and crypto payments.

Quick Start

# Install globally
npm install -g @cabin/agent

# Configure for Claude Desktop
npx @cabin/agent setup-claude

# Edit ~/.claude_desktop_config.json with your wallet private key
# Restart Claude Desktop and start searching flights!

Or use programmatically:

import { CabinX402Gate } from '@cabin/agent';

const gate = new CabinX402Gate({
  walletPrivateKey: process.env.X402_PRIVATE_KEY,
  cabinApiUrl: 'https://api.cabin.com',
  paymentEndpoint: 'https://api.x402.com/v1'
});

const flights = await gate.searchFlights({
  from: 'NYC',
  to: 'LAX',
  departure: '2026-03-15'
});

Features

  • 🔍 Flight Search: Real-time data across 500+ airlines
  • 💳 x402 Payments: $0.01 USDC per search, no subscriptions
  • 🤖 MCP Integration: Works with Claude Desktop, Cursor, any MCP client
  • 🏠 Self-Hosted: Run your own instance, control your data

Components

X402 Payment Gate

Handles cryptocurrency micropayments for API access:

import { CabinX402Gate } from '@cabin/agent/x402';

// Automatic payment + API call
const results = await gate.searchFlights(params);

MCP Server

Model Context Protocol server for AI assistants:

# Run standalone
cabin-mcp

# Or via Node.js
node dist/mcp/server.js

Landing Page

Static site at src/landing/index.html. Deploy anywhere:

# Serve locally
npm run start:landing

# Deploy to cabin.team
git push origin main

Configuration

Required environment variables:

  • X402_PRIVATE_KEY - EVM wallet private key for payments
  • CABIN_API_URL - Cabin backend API endpoint
  • X402_PAYMENT_ENDPOINT - x402 service URL

Architecture

AI Agent → MCP Server → X402 Gate → Cabin API → Flight Data
    ↓         ↓           ↓           ↓           ↓
  Natural   Tool Call   USDC Pay   Search    Structured
 Language              ($0.01)    500+ Arlines  Response

Development

# Install dependencies
pnpm install

# Build TypeScript
pnpm build

# Watch mode
pnpm dev

# Run tests
pnpm test

# Start MCP server
pnpm start:mcp

Deployment

The package is designed for easy deployment:

  • MCP Server: Runs as Node.js process, configure in Claude Desktop
  • Landing Page: Static HTML, deploy to Vercel/Netlify/anywhere
  • X402 Gate: Import as library in your own apps

Roadmap

  • [ ] Flight booking (search is implemented)
  • [ ] Hotel and car rental search
  • [ ] Travel insurance integration
  • [ ] Multi-agent trip planning
  • [ ] Custom airline preferences

Support

License

MIT