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

casper-ghost

v1.0.0

Published

CLI tool for CasperGhost - AI-Powered DeFi Assistant for Casper Network

Downloads

104

Readme

👻 CasperGhost CLI

Full-featured command-line interface for CasperGhost - AI-Powered DeFi Assistant

All UI actions available via CLI commands! Stake, unstake, claim rewards, tokenize assets, deploy contracts, and more - all from your terminal.

🚀 Installation

npm install -g casper-ghost

Or use with npx:

npx casper-ghost <command>

📋 Prerequisites

  1. Node.js 18+
  2. Environment Variables (create .env file or export):
# Required
VITE_EMBEDAPI_KEY=your_embedapi_key
PUBLIC_KEY=your_casper_public_key

# Optional
CASPER_RPC_URL=https://rpc.testnet.casper.network
CASPER_NETWORK=casper-test
WISE_LENDING_CONTRACT_HASH=hash-...
CSPR_CLOUD_API_KEY=your_api_key
PINATA_API_KEY=your_pinata_key
PINATA_SECRET_KEY=your_pinata_secret

🎯 Commands

Staking

# Stake CSPR (auto-select best validator)
ghost stake 100

# Stake to specific validator
ghost stake 100 --validator <public_key>

# Auto-select best validator by APY
ghost stake 100 --validator max

# Unstake tokens
ghost unstake 50
ghost unstake all

# Claim rewards
ghost claim

Portfolio & Balance

# Show full portfolio
ghost portfolio

# Check balance only
ghost balance

# JSON output
ghost portfolio --json

Validators

# List all validators
ghost validators

# Top 10 validators
ghost validators --top 10

# JSON output
ghost validators --json

RWA Tokenization

# Tokenize invoice from file
ghost tokenize --type invoice --amount 1000 --file invoice.pdf

# Tokenize from URL
ghost tokenize --type bill --amount 500 --url https://example.com/bill.pdf

# With description
ghost tokenize --type invoice --amount 1000 --file invoice.pdf --description "Q4 2024 invoice"

Contract Deployment

# Deploy staking pool
ghost deploy --template staking-pool

# Interactive mode
ghost deploy --interactive

Transfers

# Transfer CSPR
ghost transfer <address> 100

# Transfer to CSPR.name
ghost transfer alice.cspr 50

NFTs

# List your NFTs
ghost nft list

# Browse collections
ghost nft browse

Cross-Chain Bridge

# Bridge from Ethereum
ghost bridge --from ethereum --to casper --amount 100

# Interactive mode
ghost bridge --interactive

AI Chat (Interactive)

# Start interactive chat session
ghost chat

💡 Examples

# Quick stake
ghost stake 100

# Check portfolio
ghost portfolio

# Find best validator
ghost validators --top 1

# Tokenize invoice
ghost tokenize --type invoice --amount 1000 --file invoice.pdf

# Interactive AI chat
ghost chat

🔧 Configuration

Global Options

--network <network>        # casper-test or casper (default: casper-test)
--public-key <key>         # Your Casper public key
--private-key <key>        # Private key (use with caution!)
--key-path <path>          # Path to private key file

Environment Variables

Set in .env file or export:

  • VITE_EMBEDAPI_KEY - EmbedAPI key for AI features
  • PUBLIC_KEY - Your Casper public key (hex)
  • CASPER_RPC_URL - Casper RPC endpoint
  • CASPER_NETWORK - Network name
  • WISE_LENDING_CONTRACT_HASH - WiseLending contract hash
  • CSPR_CLOUD_API_KEY - CSPR.cloud API key (optional)
  • PINATA_API_KEY - Pinata API key for IPFS (optional)
  • PINATA_SECRET_KEY - Pinata secret key (optional)

🛠️ Development

# Clone repository
git clone https://github.com/casperghost/casper-ghost

# Install dependencies
cd packages/casper-ghost-cli
npm install

# Link for local development
npm link

# Test
ghost --help

📦 Package Info

  • Name: casper-ghost
  • Version: 1.0.0
  • License: MIT
  • Repository: https://github.com/casperghost/casper-ghost

🔗 Links

  • Web App: https://casperghost.pro
  • Documentation: https://github.com/casperghost/casper-ghost
  • Support: https://github.com/casperghost/casper-ghost/issues

⚠️ Security Notes

  • Never commit private keys to version control
  • Use environment variables for sensitive data
  • For production, use hardware wallets or secure key management
  • Transaction signing requires wallet connection (Casper Signer)

🎉 Features

All UI Actions Available

  • Staking, unstaking, claiming rewards
  • Portfolio management
  • Validator selection
  • RWA tokenization with AI risk audit
  • Contract deployment
  • Transfers
  • NFT operations
  • Cross-chain bridging
  • Interactive AI chat

Beautiful CLI Output

  • Color-coded messages
  • Progress indicators
  • JSON output option
  • Clear error messages

Production Ready

  • Error handling
  • Input validation
  • Transaction previews
  • Confirmation prompts

Made with ❤️ by the CasperGhost Team