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

pharos-skills

v1.2.1

Published

CLI installer for Pharos Skills — composable on-chain operation primitives for the Pharos Network

Readme

npm version Node.js License: MIT Solidity


A Pharos Skill is a structured folder that AI agents (Claude Code, Cursor, opencode, Windsurf, etc.) read at runtime. Each skill ships with a SKILL.md capability index, exact cast/forge command references, and battle-tested Solidity contracts — so your agent knows exactly what to run without guessing.

Skills

pharos-contract-verify   ──────────────────────────────── no deps
pharos-deploy-kit        ──→ pharos-contract-verify
pharos-token-factory     ──→ pharos-deploy-kit + pharos-contract-verify
pharos-safe-multisig     ──────────────────────────────── no deps
pharos-agent-wallet      ──────────────────────────────── no deps
pharos-x402-payments     ──→ pharos-agent-wallet

| Skill | What it does | |-------|-------------| | pharos-contract-verify | Verify any deployed Solidity contract on Pharos via Blockscout. Handles constructor args, compiler flags, and indexer retry. | | pharos-deploy-kit | Deploy via forge script or deterministic CREATE2/CREATE3 for same-address-across-networks. Dry-run gate before any broadcast. | | pharos-token-factory | Deploy ERC20/ERC721/ERC1155 tokens using audited OpenZeppelin v5 contracts. Mint, burn, pause, transfer ownership — with guardrails against dangerous combos. | | pharos-safe-multisig | Deploy and manage Gnosis Safe multisigs. Treasury management, owner changes, contract ownership transfer to Safe. | | pharos-agent-wallet | Autonomous wallet safety layer. Balance preflight, gas estimation, nonce management, per-session spend caps, and recipient allowlists. | | pharos-x402-payments | Full x402 HTTP micropayment stack. Monetize Express endpoints as a server and pay autonomously as a client — with spend caps and idempotency built in. |

Installation

npx pharos-skills add <skill>

The CLI prompts you to pick your editor(s) and install scope. Use arrow keys to move, space to select/deselect, and enter to confirm.

# Install a single skill (auto-resolves dependencies)
npx pharos-skills add pharos-token-factory

# Install all 6 skills at once
npx pharos-skills add-all

# Non-interactive / CI
npx pharos-skills add-all --yes

# Install into a specific directory
npx pharos-skills add pharos-token-factory --dir ./my-project

# Browse available skills
npx pharos-skills list

# Inspect a skill and its dependency tree
npx pharos-skills info pharos-x402-payments

What gets installed

<target>/
├── SKILL.md                        ← merged Capability Index for all installed skills
└── .pharos/
    ├── shared/
    │   ├── assets/
    │   │   ├── networks.json       ← Pharos testnet + mainnet RPC, chain IDs, explorers
    │   │   ├── tokens.json         ← canonical token registry
    │   │   └── canonical-contracts.json
    │   └── references/
    │       └── _guardrails.md      ← mandatory pre-check protocol for all write ops
    └── skills/
        └── <skill-name>/
            ├── SKILL.md
            ├── skill.json
            ├── references/        ← exact command specs per operation
            └── assets/            ← contracts, scripts, templates

Networks

| Network | Chain ID | RPC | Explorer | |---------|----------|-----|----------| | Atlantic Testnet (default) | 688689 | https://atlantic.dplabs-internal.com | atlantic.pharosscan.xyz | | Pacific Mainnet | 1672 | https://rpc.pharos.xyz | pharosscan.xyz |

[!IMPORTANT] Every skill defaults to Atlantic Testnet. Any mainnet write operation requires an explicit "This is a MAINNET transaction with real value" confirmation — this cannot be skipped.

Guardrails

Every skill enforces five non-negotiable safeguards:

  1. Foundry pre-checkwhich cast && which forge before any command; prints install hint if missing.
  2. Explicit private key — always --private-key $PRIVATE_KEY. Foundry does not auto-read env. Never hardcode, log, or echo keys.
  3. 4-step Write Pre-Check — derive sender → confirm chain ID → verify balance covers value + gas → simulate before send. Cannot be skipped.
  4. Testnet default + mainnet gate — all skills default to testnet; mainnet requires explicit confirmation.
  5. Explorer link on every tx<explorer>/tx/<hash> and <explorer>/address/<addr> always output after broadcast.

How an Agent Uses These Skills

  1. Agent reads SKILL.md → scans the Capability Index for matching user intent
  2. Opens the linked reference file (e.g., pharos-token-factory/references/erc20.md#deploy)
  3. Follows the Agent Guidelines checklist at the bottom of each section
  4. Runs Write Operation Pre-Checks from _guardrails.md
  5. Executes exact cast/forge commands from the template
  6. Outputs explorer links and records the result in a local ledger

Development

Prerequisites: Foundry · Node.js ≥ 20

# Install dependencies
npm install

# Build the CLI
npm run build

# Run CLI tests (22 tests, vitest 4)
npm test

# Compile Solidity contracts (solc 0.8.35 + OpenZeppelin v5.6.1)
cd contracts && forge build

# Run Solidity tests (15 tests)
cd contracts && forge test

# End-to-end install test
npx pharos-skills add pharos-token-factory --dir ./demo --yes

Contracts

All contracts are in contracts/src/, compiled with solc 0.8.35, via-ir, and 200 optimizer runs.

| Contract | Description | |----------|-------------| | StandardERC20.sol | ERC20 + Burnable + Pausable + Capped + Ownable | | StandardERC721.sol | ERC721 + URIStorage + Pausable + Ownable | | StandardERC1155.sol | ERC1155 + Pausable + Supply + Ownable | | SpendLimitGuard.sol | Gnosis Safe Guard — per-period cumulative spend cap |

[!NOTE] Contracts are designed as reference implementations. Audit before using in production.

Resources