Introduction
Start building with Meshkit, find a guide for your storage setup, or go straight to the API and MCP references.
Meshkit (@ipfs-meshkit/meshkit v1.2.1) is a TypeScript SDK for Kubo/IPFS and S3-compatible storage. It provides one API for uploading, retrieving, and pinning content, with optional client-side encryption, IPNS, and multi-node failover.
npm install @ipfs-meshkit/meshkitStart here
- Install Meshkit and choose a Kubo setup.
- Follow the quick start to upload, pin, and retrieve a file.
- Read core concepts for CIDs, pinning, IPNS, and node failover.
Guides
| If you want to… | Read |
|---|---|
| Choose between Kubo and S3-compatible storage | Storage backends |
| Run a local Kubo daemon with your app | Local daemon |
| Use more than one Kubo node | Multi-node failover |
| Publish mutable links to content | IPNS |
| Encrypt data before uploading | Client-side encryption |
| Handle SDK and node errors | Error handling |
API reference
init()— connect to Kubo and optionally start a local daemon.- Meshkit class — storage and IPNS methods with failover.
- Storage API — upload, retrieve, pin, and list pins.
- IPNS API — publish, resolve, and manage keys.
- Node API — start and stop a daemon.
- Low-level client — make requests to a single Kubo node.
- TypeScript types — exported interfaces, options, and errors.
MCP server
The @ipfs-meshkit/mcp package exposes Kubo storage and IPNS operations as tools for MCP-compatible clients.
Minimal example
import { init } from '@ipfs-meshkit/meshkit';
const { meshkit } = await init({ nodes: ['http://127.0.0.1:5001'] });
const cid = await meshkit.upload(new TextEncoder().encode('hello'));
const bytes = await meshkit.retrieve(cid);
console.log(new TextDecoder().decode(bytes));Requirements and packages
- Node.js 20 or later.
- A running Kubo daemon, or use
localNode: trueas described in the installation guide.
| Package | Purpose |
|---|---|
@ipfs-meshkit/meshkit 1.2.1 | TypeScript SDK for storage and IPNS. |
@ipfs-meshkit/mcp 1.0.1 | MCP server for Kubo storage and IPNS tools. |
See examples for larger integrations and the changelog for release details.