Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
J

js-ipfs

> 编程语言
Open source

IPFS implementation in JavaScript

7.4K stars0 likes3 views
WebsiteGitHub

About

IPFS implementation in JavaScript

⛔️ DEPRECATED: js-IPFS has been superseded by Helia

Learn more about this deprecation or how to migrate

⚠️ If you continue using this repo, please note that security fixes will not be provided

The JavaScript implementation of the IPFS protocol


Getting started

  • Read the docs
  • Ensure CORS is correctly configured for use with the HTTP client
  • Look into the examples to learn how to spawn an IPFS node in Node.js and in the Browser
  • Consult the Core API docs to see what you can do with an IPFS node
  • Head over to https://proto.school to take the IPFS course that covers core IPFS concepts and JS APIs
  • Check out https://docs.ipfs.io for glossary, tips, how-tos and more
  • Need help? Please ask 'How do I?' questions on https://discuss.ipfs.io
  • Find out about chat channels, the IPFS newsletter, the IPFS blog, and more in the IPFS community space.

Table of Contents

  • Getting started
    • Install as a CLI user
    • Install as an application developer
  • Documentation
  • Structure
  • Packages
  • Want to hack on IPFS?
  • License

Getting Started

Install as a CLI user

Installing ipfs globally will give you the jsipfs command which you can use to start a daemon running:

bash
$ npm install -g ipfs
$ jsipfs daemon
Initializing IPFS daemon...
js-ipfs version: x.x.x
System version: x64/darwin
Node.js version: x.x.x
Swarm listening on /ip4/127.0
.... more output

You can then add a file:

bash
$ jsipfs add ./hello-world.txt
added QmXXY5ZxbtuYj6DnfApLiGstzPN7fvSyigrRee3hDWPCaf hello-world.txt

Install as an application developer

If you do not need to run a command line daemon, use the ipfs-core package - it has all the features of ipfs but in a lighter package:

bash
$ npm install ipfs-core

Then start a node in your app:

javascript
import * as IPFS from 'ipfs-core'

const ipfs = await IPFS.create()
const { cid } = await ipfs.add('Hello world')
console.info(cid)
// QmXXY5ZxbtuYj6DnfApLiGstzPN7fvSyigrRee3hDWPCaf

Documentation

  • Concepts
  • Config
  • Core API
  • Examples
  • Development

Structure

This project is broken into several modules, their purposes are:

  • /packages/interface-ipfs-core Tests to ensure adherence of an implementation to the spec
  • /packages/ipfs An aggregator module that bundles the core implementation, the CLI, HTTP API server and daemon
  • /packages/ipfs-cli A CLI to the core implementation
  • /packages/ipfs-core The core implementation
  • /packages/ipfs-core-types Typescript definitions for the core API
  • /packages/ipfs-core-utils Helpers and utilities common to core and the HTTP RPC API client
  • /packages/ipfs-daemon Run js-IPFS as a background daemon
  • /packages/ipfs-grpc-client A gRPC client for js-IPFS
  • /packages/ipfs-grpc-protocol Shared module between the gRPC client and server
  • /packages/ipfs-grpc-server A gRPC-over-websockets server for js-IPFS
  • /packages/ipfs-http-client A client for the RPC-over-HTTP API presented by both js-ipfs and go-ipfs
  • /packages/ipfs-http-server JS implementation of the Kubo RPC HTTP API
  • /packages/ipfs-http-gateway JS implementation of the IPFS HTTP Gateway
  • /packages/ipfs-http-response Creates a HTTP response for a given IPFS Path
  • /packages/ipfs-message-port-client A client for the RPC-over-message-port API presented by js-ipfs running in a shared worker
  • /packages/ipfs-message-port-protocol Code shared by the message port client & server
  • /packages/ipfs-message-port-server The server that receives requests from ipfs-message-port-client

Packages

List of the main packages that make up the IPFS ecosystem.

Package Version Deps CI/Travis Coverage Lead Maintainer
Files
ipfs-unixfs Alex Potsides
Repo
ipfs-repo Alex Potsides
ipfs-repo-migrations N/A
Exchange
ipfs-bitswap Dirk McCormick
IPNS
ipns Vasco Santos
Generics/Utils
ipfs-utils Hugo Dias
ipfs-http-client Alex Potsides
ipfs-http-response Vasco Santos
ipfsd-ctl Hugo Dias
is-ipfs Marcin Rataj
aegir Hugo Dias
libp2p
libp2p Jacob Heun
peer-id Vasco Santos
libp2p-crypto Jacob Heun
libp2p-floodsub Vasco Santos
libp2p-gossipsub Cayman Nava
libp2p-kad-dht Vasco Santos
libp2p-mdns Jacob Heun
libp2p-bootstrap Vasco Santos
@chainsafe/libp2p-noise N/A
libp2p-tcp Jacob Heun
libp2p-webrtc-star [](

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptdecentralizeddistributedimmutableipfs

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 2, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言