# starknet

> JavaScript library for Starknet

Latest version **10.8.0** (published 2026-09-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install starknet
pnpm add starknet
yarn add starknet
bun add starknet
```

## 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.

## Facts

| | |
|---|---|
| Version | 10.8.0 |
| Published | 2026-09-10 |
| First published | 2021-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 12 |
| Unpacked size | 6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1255 |
| Maintainers | tonitabak, bbrandtom, adrienlacombe-starknet |
| Keywords | starknet, cairo, starkware, l2, zk, rollup |

## Links

- npm: https://www.npmjs.com/package/starknet
- Repository: https://github.com/starknet-io/starknet.js
- Homepage: https://github.com/starknet-io/starknet.js#readme
- Issues: https://github.com/starknet-io/starknet.js/issues
- npm.io page: https://npm.io/package/starknet

## Dependencies (12)

- [@scure/base](https://npm.io/package/@scure/base.md) ~1.2.1
- [@noble/curves](https://npm.io/package/@noble/curves.md) ~1.7.0
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ~1.6.0
- [lossless-json](https://npm.io/package/lossless-json.md) ^4.2.0
- [abi-wan-kanabi](https://npm.io/package/abi-wan-kanabi.md) 2.2.4
- [@scure/starknet](https://npm.io/package/@scure/starknet.md) 1.1.0
- [@starknet-io/starknet-types-09](https://npm.io/package/@starknet-io/starknet-types-09.md) npm:@starknet-io/types-js@0.9.2
- [@starknet-io/starknet-types-0101](https://npm.io/package/@starknet-io/starknet-types-0101.md) npm:@starknet-io/types-js@0.10.2
- [@starknet-io/starknet-types-0103](https://npm.io/package/@starknet-io/starknet-types-0103.md) npm:@starknet-io/types-js@0.10.3
- [@starknet-io/starknet-types-0104](https://npm.io/package/@starknet-io/starknet-types-0104.md) npm:@starknet-io/types-js@0.10.4
- [@starknet-io/get-starknet-wallet-standard](https://npm.io/package/@starknet-io/get-starknet-wallet-standard.md) ^5.0.0
- [@starknet-io/get-starknet-wallet-standard-v6](https://npm.io/package/@starknet-io/get-starknet-wallet-standard-v6.md) npm:@starknet-io/get-starknet-wallet-standard@6.0.6

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 10.8.0 (latest) — 2026-09-10
- 11.0.2 (next) — 2026-09-22
- 11.0.0-beta.14 (beta) — 2026-09-10
- 11.0.1 — 2026-09-18
- 11.0.0 — 2026-09-14
- 10.7.6 — 2026-09-09
- 10.7.5 — 2026-09-08
- 10.7.4 — 2026-09-08
- 10.7.3 — 2026-09-08
- 10.7.2 — 2026-09-08
- 11.0.0-beta.13 — 2026-09-03
- 11.0.0-beta.12 — 2026-09-02
- 11.0.0-beta.11 — 2026-09-01
- 11.0.0-beta.10 — 2026-09-01
- 11.0.0-beta.9 — 2026-08-31
- … 337 more at https://npm.io/package/starknet/versions

## README

<!-- logo -->
<p align="center">
  <img width='300' src="https://user-images.githubusercontent.com/2848732/226624229-7f1e5f8b-c550-47d4-85b2-5c90aee22417.png">
</p>

<!-- primary badges -->
<p align="center">
  <a href="https://github.com/starknet-io/starknet.js/actions">
    <img src="https://github.com/starknet-io/starknet.js/actions/workflows/release.yml/badge.svg">
  </a>
  <a href="https://www.npmjs.com/package/starknet">
    <img src='https://img.shields.io/npm/v/starknet' />
  </a>
  <a href="https://www.npmjs.com/package/starknet">
    <img src='https://img.shields.io/npm/v/starknet/next' />
  </a>
  <a href="https://bundlephobia.com/package/starknet">
    <img src='https://img.shields.io/bundlephobia/minzip/starknet?color=success&label=size' />
  </a>
  <a href="https://www.npmjs.com/package/starknet">
    <img src='https://img.shields.io/npm/dt/starknet?color=blueviolet' />
  </a>
  <a href="https://github.com/starknet-io/starknet.js/blob/main/LICENSE/">
    <img src="https://img.shields.io/badge/license-MIT-black">
  </a>
  <a href="https://github.com/starknet-io/starknet.js/stargazers">
    <img src='https://img.shields.io/github/stars/starknet-io/starknet.js?color=yellow' />
  </a>
  <a href="https://starkware.co/">
    <img src="https://img.shields.io/badge/powered_by-StarkWare-navy">
  </a>
  <a href="https://www.drips.network/app/projects/github/starknet-io/starknet.js" target="_blank">
    <img src="https://www.drips.network/api/embed/project/https%3A%2F%2Fgithub.com%2Fstarknet-io%2Fstarknet.js/support.png?background=light&style=github&text=project&stat=none" alt="Support starknet.js on drips.network" height="20">
  </a>
</p>

## Installation

```bash
# latest official release (main branch)
$ npm install starknet

# or for latest pre-release version (develop branch)
$ npm install starknet@next

# or for latest beta release version (beta branch)
$ npm install starknet@beta
```

Import `starknet` and use the [API](https://starknet-io.github.io/starknet.js/docs/API/).

## 🌐 Documentation

How to [Guides](https://starknet-io.github.io/starknet.js/docs/guides/intro) :book: & [API](https://starknet-io.github.io/starknet.js/docs/API/) 💻

Play with [Code Examples](https://github.com/PhilippeR26/starknet.js-workshop-typescript) :video_game:

## 🤖 Using AI

AI training data about starknet.js is often outdated. To give your AI coding agent accurate, up-to-date guidance, install the official starknet.js skill ([`skills/starknet-js/`](./skills/starknet-js/)). It works with Claude Code, Codex, Cursor, Gemini CLI, and any other agent supporting the open [Agent Skills](https://agentskills.io/) standard.

```bash
npx skills add starknet-io/starknet.js
```

or copy the skill files directly:

```bash
mkdir -p ~/.claude/skills/starknet-js && curl -s --output-dir ~/.claude/skills/starknet-js --remote-name-all "https://raw.githubusercontent.com/starknet-io/starknet.js/develop/skills/starknet-js/{SKILL.md,calldata.md,interacting.md}"
```

> This command installs into Claude Code's skills folder — adapt the target directory for other agents.

## ✏️ Contributing

If you consider to contribute to this project please read [CONTRIBUTING.md](https://github.com/starknet-io/starknet.js/blob/main/CONTRIBUTING.md) first.

You can also join our dedicated channel for [Starknet.js](https://discord.com/channels/793094838509764618/1270119831559078061) on the [Starknet Discord](https://discord.com/invite/starknet-community)

## ❤️ Special Thanks

Special thanks to all the [contributors](https://github.com/starknet-io/starknet.js/graphs/contributors), especially to:

- Sean ([@0xs34n](https://github.com/0xs34n)), the original creator of Starknet.js!

- Janek ([@janek26](https://github.com/janek26)) and Dhruv ([@dhruvkelawala](https://github.com/dhruvkelawala)) from [Argent](https://github.com/argentlabs)

- Toni ([@tabaktoni](https://github.com/tabaktoni)), Petar ([@penovicp](https://github.com/penovicp)) and Ivan ([@ivpavici](https://github.com/ivpavici)) from [SpaceShard](https://www.spaceshard.io/)

- Philippe ROSTAN ([@PhilippeR26](https://github.com/PhilippeR26))

...and of course the [StarkWare](https://starkware.co/) team for their dedicated support!

This library would not be possible without these rockstars.

## 📜 License

Copyright (c) 2026 StarkWare

Licensed under the [MIT license](https://github.com/starknet-io/starknet.js/blob/main/LICENSE).

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