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

stylus-toolkit

v0.2.10

Published

A comprehensive CLI development environment for Arbitrum Stylus smart contracts with automated gas profiling

Readme

Stylus Toolkit

The easiest way to build Arbitrum Stylus smart contracts in Rust.

npm version License Downloads CI Node Version

Build, deploy, and profile Stylus contracts with simple commands. No Docker required - works with testnets out of the box!

✨ Features

  • 🚀 One-command project setup - 4 ready-to-deploy templates
  • 📦 Built-in WASM compiler - Automatic Rust to WebAssembly compilation
  • Gas profiling - Compare Rust vs Solidity gas usage
  • 🌐 Network support - Local, testnet, and mainnet configurations
  • 🐳 Docker optional - Use testnets for development (no Docker needed!)
  • 📊 Multiple export formats - JSON, CSV, HTML reports

🎯 Quick Start (3 Commands)

# 1. Install
npm install -g stylus-toolkit

# 2. Create project
stylus-toolkit init -n my-counter -t basic && cd my-counter

# 3. Build
cd contracts-rust && rustup target add wasm32-unknown-unknown && cd .. && stylus-toolkit build

That's it! Your contract is ready to deploy.

No Docker? No problem! Deploy to testnet directly:

stylus-toolkit config --set defaultNetwork=arbitrum-sepolia

📋 Prerequisites

Required:

Optional:

  • Docker (only if you want local node) (Download)

Most developers use testnet and don't need Docker!

📚 Documentation

🛠️ Commands

init

Initialize a new Stylus project.

stylus-toolkit init [options]

Options:
  -n, --name <name>          Project name
  -t, --template <template>  Template (basic, erc20, erc721, defi)
  --rust-only                Rust only
  --solidity-only            Solidity only

profile

Profile and compare gas usage.

stylus-toolkit profile [options]

Options:
  -c, --contract <name>      Contract name
  -r, --rpc <url>            RPC endpoint
  -n, --network <network>    Network (local, arbitrum-sepolia, arbitrum-one)
  --export <format>          Export format (json, csv, html)
  --detailed                 Show detailed breakdown

config

Manage configuration.

stylus-toolkit config [options]

Options:
  --set <key=value>  Set config value
  --get <key>        Get config value
  --list             List all config
  --reset            Reset to defaults

Example Output

┌────────────┬──────────────┬──────────────┬──────────┬────────┐
│ Metric     │ Rust         │ Solidity     │ Savings  │ %      │
├────────────┼──────────────┼──────────────┼──────────┼────────┤
│ Deployment │ 120,456      │ 845,231      │ 724,775  │ 85.75% │
│ increment  │ 2,341        │ 43,892       │ 41,551   │ 94.67% │
└────────────┴──────────────┴──────────────┴──────────┴────────┘

Configuration

Default networks:

  • Local: http://localhost:8547
  • Arbitrum Sepolia: Testnet
  • Arbitrum One: Mainnet

Add custom networks:

stylus-toolkit config --set networks.custom.rpcUrl=https://your-rpc.com

Project Structure

my-project/
├── contracts-rust/
│   └── src/lib.rs
├── contracts-solidity/
│   └── Contract.sol
├── .stylus-toolkit/
└── README.md

Development

git clone https://github.com/soloking1412/stylus-toolkit.git
cd stylus-toolkit
npm install
npm run build

License

MIT

Links