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

animica-agent

v0.1.11

Published

Animica Coding Agent — repo-aware coding, scaffolding, RPC, wallet and miner-aware operations for the Animica network.

Readme

animica-agent

The Animica Coding Agent — a developer + miner-aware coding assistant for the Animica network. Repo-aware patches, scaffolding, RPC + wallet ops, miner identity, useful-work jobs, ANM-denominated billing, and a local browser UI.

Install

The canonical install is from npm, alongside the node operator package:

npm install -g animica-node animica-agent

Requires Node 18.17+. No repo clone, no pip install animica, no manually-managed .venv. The animica-agent setup flow below will auto-install the managed node runtime under ~/.animica/runtime/ if it's not already provisioned.

Quickstart (one-command happy path)

animica-node init            # ~/.animica/node/node.json
animica-node start           # auto-installs the managed runtime + starts the node
animica-agent setup          # wallet provisioning + readiness checks + dashboard
animica-agent                # open the dashboard (or TTY chat if no browser)

Per-command quickstart

animica-agent init           # scaffold .animica/agent.json
animica-agent doctor         # health checks
animica-agent status         # network + miner + wallet snapshot
animica-agent code "add a contract that stores a number"
animica-agent diff
animica-agent apply

Commands

| Command | Description | | --- | --- | | <no subcommand> | Open the dashboard (or TTY chat if no display) | | setup [--no-launch] [--skip-wallet] [--no-browser] [--reset] | Guided one-time setup: prereq → node → wallet → funding → readiness → dashboard | | setup status | Show persisted setup state | | init | Create or refresh project config | | doctor | RPC / miner / wallet diagnostics | | status | Current project, network, wallet, miner snapshot | | chat | Interactive coding session | | code "<task>" | One-shot task, produces a plan + pending patch | | diff | Show the pending patch | | apply | Apply the pending patch (preview first) | | rollback | Restore files from the most recent applied patch | | patches | List applied patches | | rpc call <method> [params…] | JSON-RPC pass-through | | wallet connect [addr] | Configure or inspect wallet identity | | balance [addr] | Read ANM balance via configured RPC | | miner connect [addr] | Connect miner identity (env / config / user) | | miner status | Miner identity, resource plan, eligibility | | pricing | Show current pricing table | | budget [show\|set\|reset-session] | Manage session/daily/monthly caps | | estimate <kind> | Cost estimate for a given action | | receipts [list\|export] | Receipt history | | allowance [list\|grant\|revoke] | Manage spending allowances | | jobs list\|accept\|submit | Useful-work job board | | rewards | Miner rewards | | leaderboard | Miner leaderboard | | adapters | Promoted adapters | | contract\|dapp\|token scaffold <name> | Generate new project | | ui [--port 4720] | Start local browser dashboard | | release | Build + test + npm pack --dry-run |

Config

Layered (highest precedence wins): function args > env > <repo>/.animica/agent.json > ~/.animica/agent.json > built-in defaults. If animica-node is installed on the same machine its ~/.animica/node/node.json is auto-discovered for rpcUrl + chainId.

Useful env vars:

  • ANIMICA_AGENT_RPC_URL — override RPC URL
  • ANIMICA_AGENT_PROVIDERoffline (default), anthropic, openai, aicf
  • ANIMICA_AGENT_PROVIDER_BASE_URL — for AICF/custom endpoints
  • ANIMICA_AGENT_APPROVAL_MODEauto | ask | manual | never
  • ANIMICA_AGENT_RESOURCE_MODEbalanced | miner-priority | agent-priority
  • ANIMICA_AGENT_CPU_LIMIT — 1..100 percent
  • ANIMICA_AGENT_CREDITS_MODEoff | wallet | miner | aicf | hybrid

Backend resolution (used by wallet ops):

  • ANIMICA_NODE_BIN — explicit operator override
  • otherwise the managed runtime installed by animica-node install-runtime
  • otherwise animica on PATH
  • otherwise python3 -m animica.cli.main (legacy dev path)

Miner env (read, never written): ANIMICA_POOL_ADDRESS, ANIMICA_MINER_*, ANIMICA_POOL_*.

Billing & receipts

All paid actions go through the BillingEngine. Estimates honor the pricing table and miner subsidies; settlement is offline-HMAC by default and can be upgraded to on-chain settlement via the wallet Signer adapter. Every action emits a signed receipt journalled to .animica/agent-state/receipts.jsonl.

animica-agent pricing
animica-agent budget set --daily 25 --monthly 300 --session 1
animica-agent allowance grant --cap 10 --days 14 --per-task 0.5
animica-agent receipts list
animica-agent receipts export > receipts.jsonl

Miner integration

The agent reads (never writes) miner state from the same env vars the existing Animica mining runtime uses (mining/config.py). The detection covers:

  • ANIMICA_POOL_ADDRESS, ANIMICA_POOL_URL, ANIMICA_POOL_MODE
  • ANIMICA_MINER_DEVICE, ANIMICA_MINER_STRATUM_*, ANIMICA_MINER_METRICS_*
  • Optional project files under .animica/miner.json or .animica/pool.json

resourceMode=miner-priority lowers cpuLimit to ≤ 25 % and routes heavy work to background; agent-priority does the opposite. safeToRunDuringMining flips to false when an agent task would clash with active mining, so the CLI warns before launching expensive operations.

Useful-work jobs

animica-agent jobs list
animica-agent jobs accept <job-id>
animica-agent jobs submit <job-id> --artifact ./eval.json --metric 0.78
animica-agent rewards
animica-agent leaderboard
animica-agent adapters --model animica-agent

By default we use a LocalCoordinator rooted at .animica/agent-state/jobs/; set aicfMode=enabled and providerBaseUrl to point at an HTTP coordinator (AICF or self-hosted).

Safety

  • No transaction is signed or broadcast without explicit user action.
  • The patch engine snapshots files before any write and journals each apply so rollback is byte-identical.
  • The patch engine refuses to edit .env, *.key, *.pem without warning.
  • Secrets are redacted from logs by name (password, seed, mnemonic, …).

License

Apache-2.0.