# @rocketh/node

> Run rocketh deploy scripts on Node.js, with filesystem-backed artifacts and a CLI.

Latest version **0.22.4** (published 2026-10-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @rocketh/node
pnpm add @rocketh/node
yarn add @rocketh/node
bun add @rocketh/node
```

Provides the command `rocketh`.

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.22.4 |
| Published | 2026-10-28 |
| First published | 2025-12-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 11 |
| Unpacked size | 165.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 35 |
| Author | Ronan Sandford |
| Maintainers | wighawag |
| Keywords | rocketh, ethereum, evm, solidity, smart-contracts, deployment, hardhat-deploy, node, cli |

## Links

- npm: https://www.npmjs.com/package/@rocketh/node
- Repository: https://github.com/wighawag/rocketh
- Homepage: https://github.com/wighawag/rocketh/blob/main/packages/rocketh-node/README.md
- Issues: https://github.com/wighawag/rocketh/issues
- Funding: https://github.com/sponsors/wighawag
- npm.io page: https://npm.io/package/@rocketh/node

## Dependencies (11)

- [tsx](https://npm.io/package/tsx.md) ^4.23.12
- [viem](https://npm.io/package/viem.md) ^2.55.13
- [ldenv](https://npm.io/package/ldenv.md) ^0.6.0
- [prompts](https://npm.io/package/prompts.md) ^2.4.2
- [eip-1193](https://npm.io/package/eip-1193.md) ^0.7.1
- [commander](https://npm.io/package/commander.md) ^15.0.0
- [named-logs](https://npm.io/package/named-logs.md) ^0.4.1
- [change-case](https://npm.io/package/change-case.md) ^5.4.4
- [@rocketh/core](https://npm.io/package/@rocketh/core.md) 0.26.1
- [@types/prompts](https://npm.io/package/@types/prompts.md) ^2.4.9
- [named-logs-console](https://npm.io/package/named-logs-console.md) ^0.5.1

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.22.4 (latest) — 2026-10-28
- 0.17.0-next.0 (next) — 2025-12-16
- 0.22.3 — 2026-10-27
- 0.22.2 — 2026-10-27
- 0.22.1 — 2026-10-27
- 0.22.0 — 2026-10-27
- 0.21.4 — 2026-09-27
- 0.21.3 — 2026-09-26
- 0.21.2 — 2026-09-26
- 0.21.1 — 2026-09-26
- 0.21.0 — 2026-08-30
- 0.20.0 — 2026-08-29
- 0.19.22 — 2026-08-20
- 0.19.21 — 2026-08-19
- 0.19.20 — 2026-08-18
- … 54 more at https://npm.io/package/@rocketh/node/versions

## README

# @rocketh/node

The Node.js runtime of rocketh: the `rocketh` command, which runs your deploy scripts against an environment and records the deployments in `deployments/`, and the functions that build an environment from files, for tests and scripts. rocketh's core reads no file, so it can run in a browser; this package is what reads `rocketh/config.ts`, the scripts of `deploy/` and the records. hardhat-deploy runs on it.

## Installation

```bash
pnpm add -D rocketh @rocketh/node
# or
npm install --save-dev rocketh @rocketh/node
```

`rocketh` is a peer dependency.

## Example

```bash
npx rocketh -e sepolia
npx rocketh -e sepolia --tags Token
npx rocketh -e mainnet --is-fork --write-transactions ./batch.json   # rehearse against a fork you started
```

In a test or a script, bind your extensions once:

```typescript
// rocketh/environment.ts
import {type Accounts, type Data, type Extensions, extensions} from './config.js';
import {setupEnvironmentFromFiles} from '@rocketh/node';

export const {loadAndExecuteDeploymentsFromFiles, loadEnvironmentFromFiles} = setupEnvironmentFromFiles<
	Extensions,
	Accounts,
	Data
>(extensions);
```

## Documentation

- [Get started without Hardhat](https://rocketh.dev/documentation/getting-started/)
- [The rocketh command, every option](https://rocketh.dev/documentation/reference/cli/#rocketh)
- [Rehearse on a fork](https://rocketh.dev/documentation/fork-runs/)
- [Configuration](https://rocketh.dev/documentation/reference/configuration/)

The whole documentation is at [rocketh.dev](https://rocketh.dev), the hardhat-deploy section at [rocketh.dev/hardhat-deploy](https://rocketh.dev/hardhat-deploy/).

## License

[MIT](https://github.com/wighawag/rocketh/blob/main/LICENSE)

---
_Source: https://npm.io/package/@rocketh/node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
