{"repo":"dfinity/node-ic0","free":true,"listed":false,"github":"https://github.com/dfinity/node-ic0","clone":"git clone https://github.com/dfinity/node-ic0.git","description":"An easy-to-use JavaScript API for the Internet Computer.","language":"TypeScript","stars":19,"topics":["blockchain","browser","canister","internet-computer","motoko","nodejs","npm","smart-contracts","web3","typescript"],"license":"Apache-2.0","category":"blockchain-web3","readme_excerpt":"ic0 &nbsp; ### An easy-to-use JavaScript API for the Internet Computer. --- The ic0 package is a simple, straightfoward way to interact with canisters running on the Internet Computer (IC). Installation Quick Start Try running the following code from Node.js or a web application: Easily call any Internet Computer canister using the following syntax: Local Canisters The dfx start command hosts a local execution environment for developing canister smart contracts. Here is an example of how to call a local canister: Basic usage: Advanced usage: Replica canisters use agent-js behind the scenes. Mock Canisters A mock canister makes it easy to mock the behavior of a canister. Basic usage: Advanced usage: Provide a fallback canister and/or compose several mocks by passing a second argument to the mockCanister() function: Related Projects Check out the following GitHub repositories for more IC-related npm packages: - agent-js: a collection of npm packages for building on the Internet Computer - node-motoko: run Motoko programs directly in the browser - mo-dev: a live-reload server for local Motoko dapp development - @infu/icblast: a community-built library for exploring the IC and writing integration tests","default_branch":null,"files":null,"tree":[],"storefront":"/r/dfinity","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dfinity/node-ic0/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}