Skip to content

dfinity/ic-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6cb088c Â· May 27, 2025
May 21, 2025
May 27, 2025
Jan 20, 2025
Nov 23, 2023
Jan 24, 2022
Aug 3, 2022
Jul 19, 2023
Jan 3, 2024
May 9, 2025
Aug 28, 2023
Jan 20, 2025
Jan 30, 2025
May 6, 2025
May 9, 2025
Oct 3, 2022
May 9, 2025
May 9, 2025
Feb 12, 2024
May 6, 2025
May 5, 2025

Repository files navigation

📦 ic-js

A collection of library for interfacing with the Internet Computer.

Internet Computer portal Checks Status GitHub Latest Release)

Libraries

  • nns: interfacing with the governance canisters of the Network Nervous System (NNS)
  • sns: interacting with a Service Nervous System (SNS) project
  • cmc: interfacing with the cmc canister of the IC
  • ledger-icp: interfacing with the ICP ledger
  • ledger-icrc: interacting with ICRC compatible ledgers
  • ckBTC: interfacing with ckBTC
  • ckETH: interfacing with ckETH
  • ic-management: interfacing with the IC management canister
  • utils: a collection of utilities and constants
  • zod-schemas: a collection of reusable Zod schemas and validators for common data patterns in ICP applications
  • nns-proto: the protobuf source used by nns-js to support hardware wallets

Installation

Install any library of this repo in your project from npm:

npm i @dfinity/utils
npm i @dfinity/ledger-icp
npm i @dfinity/ledger-icrc
npm i @dfinity/nns
npm i @dfinity/sns
npm i @dfinity/cmc
npm i @dfinity/ckbtc

You may be using all libraries in your project - as we do in NNS-dapp. That is s why, to help tree-shaking and avoid duplication of code, the libraries of this project are referencing agent-js and utils as peer dependencies.

Therefore, be sure that the needed agent-js and utils dependencies are available in your project or install these as following:

npm i @dfinity/agent @dfinity/candid @dfinity/principal @dfinity/utils

Links

Here are some useful links:

  • See the HACKING document for some information about local development