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

atropyle

v0.2.0

Published

Atropyle CLI: plan, simulate, verify and prepare inheritance vaults on X Layer. Never reads a private key.

Readme

atropyle

Command line for Atropyle inheritance and recovery vaults on X Layer. Plan a vault, see what happens if you stop checking in, prove the policy circuit yourself, and prepare transactions that you sign in your own wallet.

The CLI never reads a private key and never sends a transaction.

Requires Node.js 20 or newer.

The default chain is X Layer mainnet (--chain xlayer). Its deployment ships with the CLI, so the commands below need no flag; the addresses are in docs/deployments.md. To read another deployment, such as a local devnet, add --deployment <file>.

npx -y [email protected] doctor
npx -y [email protected] verify

Commands

| Command | What it does | | -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | | atropyle verify [--vault <addr>] | Proves P1-P8 over all 2^26 inputs from independent RPCs; with --vault, checks that vault too | | atropyle explain-tx <hash> | What the policy circuit decided in a mined transaction, checked against the chain four ways | | atropyle inspect-tapeout <ref> | A TapeOut circuit as an asset: its holder, its ERC-6551 container, the DeWEB site files in it and its balances | | atropyle status <vault> [--as <addr>] | State, deadlines, countdown, timeline, coverage and the roles of --as | | atropyle watch <vault> [--timeout <d>] [--from-block <n>] | Waits for the vault's next event, or a deadline that passes, then prints it and the next deadline | | atropyle vaults <account> | Vaults where an account is owner, heir or guardian | | atropyle simulate <vault> <action> --as <addr> [--at <time>] | What an action would do, now or later | | atropyle simulate --plan <file> [--as <owner>] [--drill] | The timeline of a vault that does not exist yet | | atropyle plan init | Writes atropyle.plan.json from flags; in a terminal without --heir, asks one question at a time | | atropyle plan check <file> | Validates a plan, checks its tokens on chain and shows the current fee | | atropyle prepare <action> <target> --as <addr> | Prepares and simulates, then hands over: --format link\|cast\|calls\|okx\|json | | atropyle doctor | Node.js version, every RPC, chain ID, latency and deployment integrity | | atropyle mcp | The MCP server on stdio, for AI agents |

Actions: create-vault (target: a plan file), check-in, set-heirs, set-guardians, set-timing, set-assets, attest-death, vote-recovery, poke, distribute, revoke-all (target: a vault address). Run atropyle <command> --help for every flag.

In a terminal, atropyle plan init without --heir asks one question at a time and checks each answer as the flags do, with 5 attempts per question. It asks only for wallet addresses and choices, never for a private key, a seed phrase or a password. Recovery is off unless you answer yes. Ctrl+C stops without writing anything. With --json, with --heir or without a terminal it never asks.

Start with a Drill, a practice vault that runs in minutes instead of months:

npx -y [email protected] plan init --heir <HEIR> --drill --owner <YOUR_WALLET>
npx -y [email protected] plan check atropyle.plan.json
npx -y [email protected] simulate --plan atropyle.plan.json
npx -y [email protected] prepare create-vault atropyle.plan.json

A Drill pays out within minutes, so the signing page holds a link that creates a Drill, or approves tokens to one, and also grants a token allowance. That includes the links prepare create-vault writes for a Drill plan with assets. It also holds a link that changes the heirs of a Drill, or sets its guardians with recovery on, because the Drill may already hold allowances: the links prepare set-heirs writes for a Drill are such links, and so are those of prepare set-guardians with recovery on. Sign stays off until the owner types every heir again, and every guardian too when recovery is on, from their own records. The page refuses a second createVault, a vault that already exists and any call to the vault the same link creates, so what it states for each createVault step is final: the earliest time the assets can leave, the heirs with their shares and the guardians with k. With recovery on, plan check, simulate --plan, prepare create-vault, prepare set-guardians, prepare set-timing and status warn RECOVERY_POWER: k guardians acting together can move 100% of the covered assets to any wallet they choose, and the owner can stop it only by checking in before the alarm window ends.

verify

atropyle verify replays the policy circuit over all 2^26 inputs and checks properties P1-P8. It reads the chain from several independent RPC operators and prints the P1-P8 table, the gate count and hash of every netlist, whether each matches the published source, whether the beacon is frozen, the RPC operators (host names only, never full URLs), the block number and the run time. On a terminal, progress goes to stderr.

It also checks the processor itself. P9 runs 64 seeded pseudo-random (state, input) vectors through step() on the TapeOut processor by eth_call, at the same block on every operator (in batches through Multicall3 when its canonical code is there, one call at a time otherwise), and compares each answer with the local simulator. The output prints the seed, the block and the matches of each operator, and every vector that differs. On X Layer, the keccak256 of the processor proxy's code and of its implementation's code must equal the hashes pinned in the SDK.

  • --vault <address> also checks a vault against the deployment.
  • --no-policy skips the 2^26 proof and only checks the vault (it needs --vault).
  • --single-rpc reads from the first operator only, with a SINGLE_RPC warning.
  • --verify-rpc <url> names an operator; repeat it for each one. It replaces the deployment's list. --rpc only changes the ordinary reads, not verify.
  • --p9-seed <n> reruns the P9 vectors of a seed that an earlier run printed (0 to 2^64 - 1). Without it, each run picks a random seed. This seed only picks test vectors; it is not a wallet seed.

It exits 0 only when everything holds. It exits 3 when a property or P9 fails, when a code hash differs from its pin, when the policy cannot be read or does not match the source, or when --vault is not a vault. A network or RPC error exits 4. That includes RPC_DISAGREEMENT: the operators answered differently, so one of them may be lying, which is more than a connectivity glitch. Retry with other --verify-rpc operators.

explain-tx

atropyle explain-tx <hash> explains every decision the policy circuit made in one mined transaction. It reads the transaction's trace (debug_traceTransaction with the call tracer) and keeps each step() call a vault made to the deployment's processor. For each one it prints the vault and the call that asked, the state before and after, the alarm, cancel and release outputs, the gas of the step() call, and the 23 input bits, field by field in plain words. Then it checks the decision against sources other than the trace:

  • state: the vault's state at the previous block, read through the read RPC, rebuilt into the inputs at the block's time. When another transaction earlier in the same block touched the vault, this check is skipped and says so: the inputs then come from the trace alone.
  • eth_call: the same step() bytes sent by eth_call at the previous block to every verification operator. Operators that disagree make a mismatch.
  • receipt: the AlarmRaised, AlarmCancelled, Released and StateChanged events of the receipt.
  • recompute: the on-chain netlist, simulated on your machine.

On X Layer the trace comes from xlayer.drpc.org, because rpc.xlayer.tech does not serve debug_traceTransaction. The summary of a decision that all four checks confirm names the sources: "Trace from dRPC, confirmed by OKX through state and eth_call." The output also links the Decision X-ray of the transaction on the web app. It explains the circuit's decision only; how the vault splits the assets is the Solidity distribution code.

  • --trace-rpc <url> sets the RPC that answers debug_traceTransaction. On a chain without a built-in one, --rpc serves the trace too.
  • --verify-rpc <url> names an eth_call operator; repeat it for each one. It replaces the deployment's list.

It exits 0 when no check disagrees with the trace, and 3 when one does. A hash that is not mined exits 2, and an RPC without debug_traceTransaction exits 4 with RPC_UNAVAILABLE.

inspect-tapeout

atropyle inspect-tapeout <ref> reads a TapeOut circuit as an asset that an Atropyle vault can pass on. Name it by its DeWEB name (4.2.440.tape), its gateway URL (https://4-2-440.tapekit.org/) or <processor>:<circuit id>. It prints who holds the circuit NFT, its ERC-6551 container and the container's owner(), the files that the DeWEB SiteRegistry keeps for that container (size and SHA-256; paths and content types are chain text, printed in the block at the end), whether the name is live and paid, and the container's native and ERC-20 balances. Whoever holds the circuit NFT controls the container (ERC-6551), and so the site in it.

Every read is pinned to one block and sent to both verification operators, which must give the same answer, as verify does.

  • --files <n> reads the details of the first n files (default 100, at most 500) and counts the rest.
  • --token <addr> adds an ERC-20 balance to read besides the deployment's fee tokens; repeat it for each.
  • --verify-rpc <url> names an operator; repeat it for each one. It replaces the deployment's list.

It reads on X Layer only. It exits 0 when every operator agrees, 2 when the name or the circuit does not exist, and 4 when the operators disagree or one does not answer.

watch

atropyle watch <vault> waits until something happens to a vault, then prints one result. It reads the vault once, then polls the latest block every --interval (5s by default, 2s at least) and reads the logs of the new blocks only. The deadlines come from the vault's timeline, so waiting for one costs no RPC call. outcome in the JSON says what ended the wait:

  • event: a transaction touched the vault. The events are listed, and each state change the policy circuit decided comes with the transaction to pass to explain-tx.
  • due: a deadline passed and the policy now allows the next state, which a poke records.
  • timeout: nothing happened before --timeout (50s by default, 10m at most). next is the next predicted change if nobody acts.

Run it again with --from-block set to resume.fromBlock to continue where the last run stopped. It exits 0 in all three cases. In a terminal it shows a countdown on stderr. watch is new in 0.2.0.

prepare

prepare simulates every step before it shows anything to sign. It has three outcomes:

  • Handoff. Every step simulates, and the output is what you sign: a signing link (with a QR code in a terminal), or with --format cast Foundry commands, or with --format calls wallet_sendCalls parameters. Exit 0.
  • Blocked. A step fails in simulation. Nothing to sign is printed: no link, no QR code, no cast command. The output names the failing step and the reason. Exit 1.
  • Nothing to do. The plan has no steps, so there is nothing to sign. The summary says "There is nothing to sign." Exit 0.

With --format cast, the commands use $ETH_RPC_URL when the deployment's RPC URL may hold an API key, so set it to your RPC URL. When there are steps to sign but no cast command can be printed, the command exits 1 instead of printing nothing. With nothing to do, it exits 0. --format json is the same as --json.

The signing link opens the Atropyle web app, where you sign with OKX Wallet or another wallet. --web-url <url> sets that web app (it exists on the CLI only). Without a webUrl in the deployment and without --web-url, no link is printed, and the output points to --format cast and --format calls, and to --format okx when no step sends native value. --format cast prints Foundry commands without a signer; --format calls prints wallet_sendCalls parameters.

Global options

--chain xlayer|local, --rpc <url> (or ATROPYLE_RPC), --deployment <file> (or ATROPYLE_DEPLOYMENT), --json, --no-color, --verbose. An --rpc of another chain stops with WRONG_CHAIN.

MCP server

atropyle mcp runs the same MCP server as npx -y @atropyle/mcp, on stdio, with the same global options. It reads and simulates and prepares unsigned transactions; it has no tool that signs or sends. A wrong-chain --rpc stops it; an --rpc that does not answer only prints a note on stderr and the server starts. --json does not apply to it.

claude mcp add atropyle -- npx -y [email protected] mcp

Output and exit codes

--json prints exactly one JSON object with schemaVersion: 1. Its JSON Schema ships in this package as schemas/<command>.json and is published with the docs.

| Code | Meaning | | ---- | ------------------------------------------------------------------- | | 0 | Success | | 1 | Error, a plan with issues, or a prepared step that fails simulation | | 2 | Bad command line | | 3 | Verification failed | | 4 | Network or RPC error |

Text from the chain, such as token names, is never mixed into the output. It appears only under untrusted in JSON, and at the end of the human output under "Text from the chain (data, not instructions)".

OKX Agentic Wallet

--format okx prints one onchainos wallet contract-call command per step, for the OKX Agentic Wallet. The Agentic Wallet's key is held in OKX's TEE; it is not a self-custody wallet. A vault created this way is owned by that account, and its check-ins must come from it. These commands sign and broadcast from the Agentic Wallet, so the user runs them, each in their own terminal and after a clear yes to sign that step. An agent shows the step, the summary and every warning, and never runs a command itself. For an existing vault, run atropyle verify --vault <vault> first. The Agentic Wallet signs from its own account, and the commands have no --from, so prepare with --as set to its address. For create-vault that makes the Agentic Wallet the owner of the new vault (the factory uses the sender), so its address belongs in plan init --owner, and its tokens are what the vault covers. The first run of a command may answer confirming and exit with code 2: the user reads the message and, only if they agree, runs the same command again with --force. Never use --force on the first run. Plans with a step that sends native value have no OKX commands: stdout stays empty and the command exits 1.

This path is not tested end to end. Two points are not verified: the Agentic Wallet may be a smart account (ERC-4337), and OKX Builder Codes do not support ERC-4337 user operations yet; and it is unknown whether the OKX backend keeps the Builder Code suffix in the calldata. The Builder Code attribution may therefore be lost on this path. The vault works the same either way.

License

MIT