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 🙏

© 2025 – Pkg Stats / Ryan Hefner

cdp-docs-cli

v1.0.1

Published

CLI tool to set up CDP (Coinbase Developer Platform) documentation and integration in your project

Readme

🚀 CDP Docs CLI

A CLI tool to quickly set up Coinbase Developer Platform (CDP) documentation and integration in your Node.js projects.

📦 Installation

Global Installation (Recommended)

npm install -g cdp-docs-cli

Using npx (No Installation Required)

# Install globally first, then use commands
npm install -g cdp-docs-cli
cdp-setup

🎯 What This Package Does

When you install and run this CLI tool, it will:

  1. 📁 Create Documentation Structure: Sets up a /doc/cdp/ directory in your project
  2. 📖 Copy Documentation: Adds comprehensive CDP wallet API documentation
  3. 🔧 Integration Guides: Provides step-by-step setup and integration guides
  4. 📦 Install Dependencies: Optionally installs required CDP packages
  5. 🔐 Environment Setup: Creates environment file templates with CDP credentials

🚀 Quick Start

Interactive Setup (Recommended)

# Install globally first
npm install -g cdp-docs-cli

# Then run interactive setup
cdp-setup

This will guide you through:

  • Setting up documentation
  • Installing CDP dependencies
  • Creating environment templates
  • Configuring your project

Manual Setup

# Install globally first
npm install -g cdp-docs-cli

# Setup documentation only
cdp-docs setup

# List available documentation
cdp-docs list

# Setup with custom path
cdp-docs setup --path ./docs/coinbase

# Force overwrite existing files
cdp-docs setup --force

📁 Generated Directory Structure

After running the setup, your project will have:

your-project/
├── doc/
│   └── cdp/
│       ├── wallet/           # Wallet API documentation
│       │   ├── wallet-start.md
│       │   ├── fund.md
│       │   ├── transfer.md
│       │   ├── managing-accounts.md
│       │   ├── policies.md
│       │   ├── importing.md
│       │   ├── exporting.md
│       │   └── wallet-accounts.md
│       ├── integration/      # Integration guides
│       │   ├── SETUP-CDP-WALLET.md
│       │   ├── INTEGRATION-SUMMARY.md
│       │   ├── cdp-wallet.md
│       │   ├── context.md
│       │   └── directory.md
│       └── examples/         # Code examples (future)
├── .env.local.example        # Environment template
└── package.json              # Updated with CDP dependencies

🔧 Dependencies Installed

The CLI will optionally install these packages:

Runtime Dependencies

  • @coinbase/cdp-sdk - Official Coinbase Developer Platform SDK
  • dotenv - Environment variable management
  • viem - Ethereum interaction library

Dev Dependencies

  • @types/node - Node.js TypeScript definitions

🔐 Environment Setup

The tool creates a .env.local.example file with the required CDP configuration:

# CDP (Coinbase Developer Platform) Configuration
# Get these values from https://portal.cdp.coinbase.com/

# Your CDP API credentials
CDP_API_KEY_ID=your_actual_key_id_here
CDP_API_KEY_SECRET=your_actual_key_secret_here
CDP_WALLET_SECRET=your_actual_wallet_secret_here

# Network configuration (optional)
# CDP_NETWORK_ID=base-sepolia  # Use base-sepolia for testing, base-mainnet for production

📚 Available Commands

cdp-docs

Main documentation management command:

cdp-docs setup [options]    # Setup CDP documentation
cdp-docs list               # List available documentation
cdp-docs --help             # Show help

Options:

  • -f, --force - Overwrite existing files
  • -p, --path <path> - Custom documentation path (default: ./doc/cdp)

cdp-setup

Interactive setup wizard:

cdp-setup                   # Run interactive setup

🏗️ Integration Guide

After running the setup:

  1. Get CDP Credentials:

  2. Configure Environment:

    cp .env.local.example .env.local
    # Edit .env.local with your actual credentials
  3. Review Documentation:

    • Read ./doc/cdp/integration/SETUP-CDP-WALLET.md
    • Follow ./doc/cdp/integration/INTEGRATION-SUMMARY.md
  4. Start Building:

    • Use the wallet API documentation in ./doc/cdp/wallet/
    • Implement CDP features in your application

🌟 Features

📖 Comprehensive Documentation

  • Complete wallet API v2 documentation
  • Step-by-step integration guides
  • Security best practices
  • Troubleshooting guides

🛠️ Developer Experience

  • Interactive CLI setup
  • Automatic dependency management
  • Environment template generation
  • Force overwrite options

🔒 Security First

  • Environment variable management
  • Private key handling best practices
  • Testnet-first development approach

🌐 Multi-Network Support

Documentation covers:

  • Base (Layer 2 Ethereum)
  • Ethereum (Mainnet & Testnets)
  • Solana (Mainnet & Devnet)

📋 Requirements

  • Node.js: 16.0.0 or higher
  • npm: 7.0.0 or higher
  • Operating System: macOS, Linux, Windows

🤝 Contributing

This package is maintained by must-be-ash.

📄 License

MIT

🆘 Support

🔄 Version History

1.0.0

  • Initial release
  • CDP documentation setup
  • Interactive CLI
  • Dependency management
  • Environment templates

Built with ❤️ for the CDP developer community