# @xyo-network/sdk

> Self-contained all-in-one SDK for XYO Protocol 2.0

Latest version **8.1.0** (published 2026-10-09) · LGPL-3.0-only license · 0 weekly downloads

## Install

```sh
npm install @xyo-network/sdk
pnpm add @xyo-network/sdk
yarn add @xyo-network/sdk
bun add @xyo-network/sdk
```

## Health

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

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

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 8.1.0 |
| Published | 2026-10-09 |
| First published | 2022-08-29 |
| Weekly downloads | 0 |
| License | LGPL-3.0-only |
| TypeScript types | none |
| Module format | ESM |
| Node | ^26 |
| Dependencies | 4 |
| Unpacked size | 1.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | XYO Development Team |
| Maintainers | atrouw, joelbcarter, rphansen91, jordantrouw, jonesmac |

## Links

- npm: https://www.npmjs.com/package/@xyo-network/sdk
- Repository: https://github.com/XYOracleNetwork/sdk-xyo-client-js
- Homepage: https://xyo.network
- Issues: git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues
- npm.io page: https://npm.io/package/@xyo-network/sdk

## Dependencies (4)

- [lru-cache](https://npm.io/package/lru-cache.md) ~11.5.3
- [async-mutex](https://npm.io/package/async-mutex.md) ~0.5.0
- [@ariestools/sdk](https://npm.io/package/@ariestools/sdk.md) ~9.0.1
- [@xyo-network/sdk-protocol](https://npm.io/package/@xyo-network/sdk-protocol.md) ~8.0.3

## Recent versions

- 8.1.0 (latest) — 2026-10-09
- 2.93.0-rc.2 (next) — 2024-03-26
- 8.0.3 — 2026-10-08
- 8.0.2 — 2026-10-08
- 8.0.1 — 2026-09-22
- 8.0.0 — 2026-09-17
- 7.4.2 — 2026-09-12
- 7.4.1 — 2026-09-09
- 7.4.0 — 2026-08-27
- 7.3.1 — 2026-08-25
- 7.3.0 — 2026-08-23
- 7.2.3 — 2026-07-27
- 7.2.2 — 2026-07-27
- 7.2.1 — 2026-07-16
- 7.2.0 — 2026-07-15
- … 801 more at https://npm.io/package/@xyo-network/sdk/versions

## README

[![logo][]](https://xyo.network)

# @xyo-network/sdk

[![npm][npm-badge]][npm-link]
[![license][license-badge]][license-link]

> Self-contained all-in-one SDK for XYO Protocol 2.0 — foundation + modules runtime. The legacy `@xyo-network/sdk-js` package re-exports this package for backward compatibility.

## Self-contained build

Unlike a traditional barrel that declares every child package as a runtime dependency,
`@xyo-network/sdk` is **self-contained**: its published `dist/` vendors the compiled output
of each `@xyo-network/*` package in the closure (under `dist/_pkg/`), with cross-package
imports rewritten to relative paths. At runtime it depends only on real externals (`ethers`,
`@xylabs/sdk`, `zod`, etc.), declared as `peerDependencies`.

Import the whole SDK:

```ts
import { MemoryArchivist } from '@xyo-network/sdk'
```

…or a group via subpath export:

```ts
import { Archivist } from '@xyo-network/sdk/archivist'
import { ObjectHasher } from '@xyo-network/sdk/protocol'
```

The vendoring is performed by [`scripts/populate-dist.mjs`](scripts/populate-dist.mjs),
wired into the toolchain via a local **`package-compile`** script in `package.json`.

```sh
pnpm xy build                           # compiles all packages, then vendors the barrel
pnpm xy build @xyo-network/sdk          # vendors using already-compiled child dist
```

## Install

```sh
npm install @xyo-network/sdk
```

## License

See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).

## Credits

[Made with 🔥 and ❄️ by XYO Foundation](https://xyo.network)

[npm-badge]: https://img.shields.io/npm/v/@xyo-network/sdk.svg
[npm-link]: https://www.npmjs.com/package/@xyo-network/sdk
[license-badge]: https://img.shields.io/npm/l/@xyo-network/sdk.svg
[license-link]: https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/main/LICENSE
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png

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