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

stacksorbit

v1.0.0

Published

Professional GUI deployment tool for Stacks blockchain smart contracts with intelligent pre-checks and process control

Readme

StacksOrbit 🚀

Professional GUI deployment tool for Stacks blockchain smart contracts with intelligent pre-checks, real-time process control, and comprehensive failure logging.

NPM Version PyPI Version License: MIT Python 3.8+

Deploy smart contracts to Stacks blockchain with confidence - One-click deployment, intelligent validation, and full process control in a beautiful GUI.


✨ Features

🚀 One-Click Deployment

  • Deploy to devnet, testnet, or mainnet with a single click
  • Auto-detects and deploys 100+ contracts in correct order
  • Smart deployment modes: full or upgrade (skips deployed)

🔍 Intelligent Pre-Checks

  • Environment validation - Required and optional variables
  • 🌐 Network connectivity - Tests API endpoints before deploy
  • 📊 Existing deployments - Auto-detects what's already on-chain
  • Compilation status - Validates contracts compile cleanly

⛔ Real-Time Process Control

  • Start/Stop deployments anytime
  • Live status indicators (running/complete/failed)
  • PID tracking for running processes
  • Graceful termination on stop

💾 Comprehensive Logging

  • Auto-save failure logs with full context
  • Error tracking throughout session
  • Manual export anytime
  • Complete replay capability

⚙️ Advanced Controls (Side Panel)

  • Network switching (devnet/testnet/mainnet)
  • Deploy mode selection (SDK/Clarinet TOML)
  • Contract filtering (comma-separated)
  • Custom deployment options
  • Advanced actions (handover, pipeline, etc.)

📦 Installation

Via npm (Recommended)

npm install -g stacksorbit

Via pip

pip install stacksorbit

From Source

git clone https://github.com/Anya-org/stacksorbit.git
cd stacksorbit
pip install -r requirements.txt

🚀 Quick Start

1. Configure Environment

Create a .env file in your project root:

# Required Variables
DEPLOYER_PRIVKEY=your_hex_private_key_here
SYSTEM_ADDRESS=SP2ED6H1EHHTZA1NTWR2GKBMT0800Y6F081EEJ45R
NETWORK=testnet

# Optional (Recommended)
HIRO_API_KEY=your_hiro_api_key
CORE_API_URL=https://api.testnet.hiro.so

2. Launch StacksOrbit

stacksorbit

Or if installed from source:

python stacksorbit.py

3. Deploy Your Contracts

  1. Run Pre-Checks (🔍 button) - Validates everything
  2. Review Results - Environment, network, deployments, compilation
  3. Click Deploy (🚀 button) - Deploys to selected network
  4. Monitor Progress - Real-time log output
  5. Stop if Needed (⛔ button) - Graceful termination

📖 Usage Guide

Basic Workflow

# Step 1: Launch GUI
stacksorbit

# Step 2: Auto-Detection (Automatic)
# ✅ Loads .env configuration
# ✅ Detects all .clar contracts
# ✅ Configures network settings
# ✅ Shows deployment status

# Step 3: Pre-Deployment Checks (Recommended)
# Click "🔍 Run Pre-Deployment Checks"
# - Validates required environment variables
# - Tests network connectivity
# - Checks for existing deployments
# - Verifies contract compilation

# Step 4: Deploy
# Click "🚀 DEPLOY TO TESTNET"
# - Monitors real-time progress
# - Stop anytime with ⛔ button
# - Auto-saves failure logs

Advanced Features

Network Selection (Right Panel)

○ Devnet   - Local testing (Clarinet)
● Testnet  - Public testing network
○ Mainnet  - Production network

Deploy Modes

● SDK Deploy      - Uses @stacks/transactions (recommended)
○ Clarinet TOML   - Deploys from Clarinet.toml order

Contract Filtering

Filter specific contracts (comma-separated):

all-traits,cxd-token,dex-factory,oracle-aggregator

Deployment Options

☐ Devnet Dry Run      - Test without broadcasting
☐ Execute Handover    - Run post-deployment handover

🔍 Pre-Deployment Checks

StacksOrbit runs 4 comprehensive validation checks before deployment:

1. Environment Variables ✅

Required Variables:

  • DEPLOYER_PRIVKEY - Hex private key for deployment
  • SYSTEM_ADDRESS - Deployer Stacks address
  • NETWORK - Target network (devnet/testnet/mainnet)

Optional Variables:

  • HIRO_API_KEY - Improves API rate limits
  • CORE_API_URL - Custom API endpoint

2. Network Connectivity 🌐

Tests the configured API endpoint:

  • Validates network is accessible
  • Confirms network_id matches
  • Shows connection status
  • Handles timeouts gracefully

3. Existing Deployments 🔍

Checks blockchain for deployed contracts:

  • Queries account nonce
  • Samples key contracts (all-traits, tokens, dex)
  • Auto-detects deployment mode:
    • FULL - No contracts deployed (fresh)
    • UPGRADE - Some contracts exist (skip deployed)

4. Compilation Status ✓

Validates contracts compile:

  • Runs clarinet check
  • Counts compilation errors
  • Shows error summary
  • Allows deployment with warnings

⛔ Process Control

Stop Button

Gracefully terminate any running deployment:

  • Appears when process starts (red button)
  • Sends SIGTERM to process
  • Updates status immediately
  • Cleans up resources

Status Indicators

Real-time status with color coding:

  • 🔄 Running... (orange) - Deployment in progress
  • Complete (green) - Successfully deployed
  • Failed (red) - Deployment error occurred
  • Stopped (red) - User terminated process

Process Information

Track running deployments:

  • PID display - Process ID shown when running
  • Status updates - Real-time progress
  • Button states - Deploy disabled when running
  • Auto-cleanup - Resources freed on completion

💾 Failure Handling

Automatic Failure Logs

All failures are automatically saved to:

logs/deployment_failure_YYYYMMDD_HHMMSS.log

Log Contents:

  • Timestamp - When failure occurred
  • Network - Target network
  • Deployer - Deployer address
  • Reason - Why it failed
  • Error Count - Total errors detected
  • Full Session - Complete output replay

Manual Log Export

Export current session anytime:

  • Click "💾 Save Log" button
  • Saves to logs/ directory
  • Includes all output and errors
  • Useful for debugging and support

Error Tracking

Real-time error monitoring:

  • Tracks errors throughout session
  • Shows count in log file
  • Highlights failures in red (❌)
  • Auto-detects keywords: error, failed, ❌

🏗️ Architecture

Two-Panel Layout

┌─────────────────────────────────────────────────────────────┐
│  LEFT PANEL (Primary)        │  RIGHT PANEL (Advanced)      │
│  ────────────────────────     │  ──────────────────────      │
│  📊 Deployment Status         │  ⚙️ Network Selection        │
│  Network: TESTNET             │  ○ Devnet                    │
│  Contracts: 145 detected      │  ● Testnet                   │
│  Deployer: SP2ED...           │  ○ Mainnet                   │
│  Status: ✅ Ready             │                               │
│                               │  Deploy Mode                  │
│  [🚀 DEPLOY TO TESTNET]      │  ● SDK Deploy                │
│  [⛔ STOP PROCESS]            │  ○ Clarinet TOML             │
│  [🔍 Run Pre-Checks]         │                               │
│  [✓][🧪][💾][🔄]            │  Options                      │
│                               │  ☐ Devnet Dry Run            │
│  ┌───────────────────────┐   │  ☐ Execute Handover          │
│  │ 📝 Deployment Log     │   │                               │
│  │ Terminal-style output │   │  Contract Filter              │
│  │ Real-time progress... │   │  [all-traits,cxd-token]      │
│  │ ✅ Contract deployed  │   │                               │
│  └───────────────────────┘   │  Actions                      │
│                               │  [Deploy Devnet]              │
│                               │  [Handover]                   │
│                               │  [Pipeline]                   │
│                               │  [Gen Wallets]                │
│                               │                               │
│                               │  Process Info                 │
│                               │  PID: 12345                   │
└─────────────────────────────────────────────────────────────┘

Technology Stack

Frontend:

  • Python 3.8+ (tkinter GUI)
  • Cross-platform (Windows, macOS, Linux)

Backend:

  • Subprocess management
  • Environment variable handling
  • File I/O for logging
  • Network requests for validation

Deployment:

  • @stacks/transactions (SDK mode)
  • Clarinet CLI (TOML mode)
  • Custom deployment scripts

🧪 Testing

StacksOrbit includes comprehensive test suite:

# Run all checks (lint + tests)
npm run ci

# Or just tests
npm test

# Or with Python directly
python -m pytest

# GUI smoke test (no window)
python tests/test_gui.py

Test Coverage:

  • ✅ Environment validation (17 tests)
  • ✅ Contract detection
  • ✅ Network connectivity
  • ✅ Process management
  • ✅ Logging functionality
  • ✅ GUI components

📚 Documentation


🤝 Contributing

We welcome contributions! See CONTRIBUTING.md for:

  • Development setup
  • Code style guide
  • Testing requirements
  • Pull request process

📄 License

MIT License - see LICENSE file for details


🔗 Links


💬 Support


🎯 Roadmap

v1.0.0 (Current)

  • ✅ GUI deployment interface
  • ✅ Pre-deployment checks
  • ✅ Process control
  • ✅ Failure logging
  • ✅ Advanced controls

v1.1.0 (Planned)

  • [ ] Multi-network parallel deploy
  • [ ] Deployment history/rollback
  • [ ] Contract upgrade wizard
  • [ ] Gas estimation
  • [ ] Deployment templates

v2.0.0 (Future)

  • [ ] Web-based interface
  • [ ] REST API
  • [ ] Docker support
  • [ ] CI/CD integrations
  • [ ] Team collaboration features

Built with ❤️ by Anya Chain Labs

Deploy smart contracts to Stacks blockchain with confidence 🚀