# @hub3js/std

> Shared standard layer for `@hub3js` namespace packages. Provides operator primitives, shared action implementations, builders, hooks, and types that chain-specific namespace packages (`@hub3js/evm`, `@hub3js/solana`, …) build on top of.

Latest version **0.6.0** (published 2026-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @hub3js/std
pnpm add @hub3js/std
yarn add @hub3js/std
bun add @hub3js/std
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2026-10-24 |
| First published | 2026-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 61.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | yeager-eren |

## Links

- npm: https://www.npmjs.com/package/@hub3js/std
- npm.io page: https://npm.io/package/@hub3js/std

## Dependencies (1)

- [caip](https://npm.io/package/caip.md) ^1.1.1

## Recent versions

- 0.6.0 (latest) — 2026-10-24
- 0.5.1-next.0 (next) — 2026-10-24
- 0.0.0-experimental-c87c8dd0-20261009 (experimental) — 2026-10-09
- 0.0.0-experimental-ec430764-20261006 — 2026-10-06
- 0.0.0-experimental-d43703df-20261005 — 2026-10-05
- 0.0.0-experimental-85b4ae35-20260928 — 2026-09-28
- 0.0.0-experimental-50d8f8fe-20260926 — 2026-09-26
- 0.0.0-experimental-cba5f757-20260923 — 2026-09-23
- 0.5.0 — 2026-09-23
- 0.0.0-experimental-16dab4fe-20260922 — 2026-09-22
- 0.0.0-experimental-ed156038-20260922 — 2026-09-22
- 0.0.0-experimental-1ff6b254-20260922 — 2026-09-22
- 0.4.1-next.0 — 2026-09-22
- 0.0.0-experimental-4be33718-20260922 — 2026-09-22
- 0.0.0-experimental-7dfefe35-20260921 — 2026-09-21
- … 37 more at https://npm.io/package/@hub3js/std/versions

## README

# @hub3js/std

Shared standard layer for `@hub3js` namespace packages. Provides operator
primitives, shared action implementations, builders, hooks, and types that
chain-specific namespace packages (`@hub3js/evm`, `@hub3js/solana`, …) build on
top of.

Exposed via subpaths:

- `@hub3js/std/operators` — `before` / `after` / `and` / `or` recommended hooks
- `@hub3js/std/actions` — shared action implementations (e.g. `disconnect`)
- `@hub3js/std/builders` — pre-wired `ActionBuilder` factories
- `@hub3js/std/hooks` — reusable subscriber builders (e.g. `ChangeAccountSubscriberBuilder`)
- `@hub3js/std/types` — foundational types (`Namespace`, CAIP accounts, common actions, `InstanceMap`)
- `@hub3js/std/utils` — CAIP validation

## Connect errors

End each connect chain with the `standardizeAndThrowError` or-hook from
`@hub3js/std/operators`. It throws a `Hub3Error` typed
`PROVIDER_USER_REJECTED_REQUEST`, `PROVIDER_LOCKED` or `PROVIDER_UNEXPECTED`
(see [`@hub3js/core`](../core/readme.md#errors)); a value without a message
gives an empty message. It never produces `PROVIDER_LOCKED` itself: a wallet
returns that type from an earlier or-hook, and it is passed through untouched.

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