# @rocketh/core

> Core types and utilities for rocketh, the framework-agnostic deployment system for EVM smart contracts.

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

## Install

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

## 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.26.1 |
| Published | 2026-10-28 |
| First published | 2025-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 231.8 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, types |

## Links

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

## Dependencies (4)

- [viem](https://npm.io/package/viem.md) ^2.55.13
- [abitype](https://npm.io/package/abitype.md) ^1.3.0
- [eip-1193](https://npm.io/package/eip-1193.md) ^0.7.1
- [named-logs](https://npm.io/package/named-logs.md) ^0.4.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.26.1 (latest) — 2026-10-28
- 0.26.0 — 2026-10-27
- 0.25.1 — 2026-10-27
- 0.25.0 — 2026-10-27
- 0.24.0 — 2026-10-27
- 0.23.1 — 2026-09-26
- 0.23.0 — 2026-09-26
- 0.22.0 — 2026-09-26
- 0.21.0 — 2026-08-30
- 0.20.0 — 2026-08-29
- 0.19.13 — 2026-08-20
- 0.19.12 — 2026-08-19
- 0.19.11 — 2026-08-18
- 0.19.10 — 2026-08-11
- 0.19.9 — 2026-08-11
- … 30 more at https://npm.io/package/@rocketh/core/versions

## README

# @rocketh/core

The types and utilities every rocketh package shares: `Environment`, `Deployment`, `Artifact`, `Signer`, `UserConfig` and the rest, plus ABI merging, bigint-safe JSON and `withEnvironment`, which turns extensions into methods of the environment a deploy script receives. It is the bottom of the dependency graph and has no runtime of its own.

Most projects never install it: it comes with `rocketh` and the extensions, which re-export its types. Install it to write your own extension against the types without pulling in a runtime.

## Installation

```bash
pnpm add @rocketh/core
# or
npm install @rocketh/core
```

## Example

```typescript
// my-extension/src/index.ts
import type {Environment} from '@rocketh/core/types';

export function greet(env: Environment): (name: string) => void {
	return (name) => env.showMessage(`hello ${name} on chain ${env.network.chain.id}`);
}
```

An extension package's root may export only such curried `(env) => ...` functions (or getters); anything else goes on a subpath. The subpaths are `@rocketh/core/types`, `/artifacts`, `/json`, `/environment` and `/providers`.

## Documentation

- [Writing an extension](https://rocketh.dev/documentation/extending/)
- [The environment](https://rocketh.dev/documentation/reference/environment/)
- [Architecture](https://rocketh.dev/documentation/extending/architecture/)

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/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
