Installation
Install Meshkit and set up Kubo for your Node.js project.
Requirements
- Node.js 20 or later
- npm, pnpm, or yarn
- A running Kubo daemon, or install Kubo and put
ipfson your PATH if you wantlocalNode: true
Install the SDK
npm install @ipfs-meshkit/meshkitpnpm add @ipfs-meshkit/meshkityarn add @ipfs-meshkit/meshkitThe package ships both ESM and CommonJS builds with bundled TypeScript types. No separate @types package needed.
Install Kubo (optional)
If you want Meshkit to start a local daemon automatically (localNode: true), install Kubo and ensure ipfs is on your PATH.
Follow the official Kubo install guide for your OS, then verify:
ipfs version
# Kubo version: 0.x.xIf you already have a Kubo daemon running elsewhere (server, Docker), skip this step — just pass its RPC URL in nodes.
Add .ipfs to .gitignore
When using localNode: true, Meshkit stores the Kubo repo in ./.ipfs by default. Add it to your .gitignore:
.ipfs