Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 62cc2a5

Browse files
authored
Merge pull request #324 from ipfs/feature/standard-readme-compliancy
Made Standard Readme Compliant
2 parents 78653b3 + 5705957 commit 62cc2a5

File tree

1 file changed

+64
-40
lines changed

1 file changed

+64
-40
lines changed

README.md

+64-40
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
# IPFS JavaScript Implementation
12

2-
![](https://ipfs.io/ipfs/QmVk7srrwahXLNmcDYvyUEJptyoxpndnRa57YJ11L4jV26/ipfs.js.png)
3-
4-
IPFS JavaScript Implementation
5-
==============================
3+
![banner](https://ipfs.io/ipfs/QmVk7srrwahXLNmcDYvyUEJptyoxpndnRa57YJ11L4jV26/ipfs.js.png)
64

75
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
86
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)
@@ -11,80 +9,95 @@ IPFS JavaScript Implementation
119
[![Travis CI](https://travis-ci.org/ipfs/js-ipfs.svg?branch=master)](https://travis-ci.org/ipfs/js-ipfs)
1210
[![Circle CI](https://circleci.com/gh/ipfs/js-ipfs.svg?style=svg)](https://circleci.com/gh/ipfs/js-ipfs)
1311
[![Dependency Status](https://david-dm.org/ipfs/js-ipfs.svg?style=flat-square)](https://david-dm.org/ipfs/js-ipfs) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
12+
[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
1413

1514
> IPFS JavaScript implementation.
1615
17-
# Description
18-
1916
This repo contains the JavaScript implementation of the IPFS protocol, with feature parity to the [Go implementation](https://github.com/ipfs/go-ipfs).
2017

21-
# Project status
18+
### Project status
2219

2320
Consult the [Roadmap](/ROADMAP.md) for a complete state description of the project, or you can find `in process` updates in our [`Captain.log`](https://github.com/ipfs/js-ipfs/issues/30). A lot of components can be used currently, but it is a WIP, so beware of the Dragons.
2421

2522
[![](https://camo.githubusercontent.com/561516567e49f00b5a4f489e122ca9d22815b547/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f4965685335436f46667a5175512f67697068792e676966)](https://github.com/ipfs/js-ipfs/issues/30)
2623

27-
# Contribute
28-
29-
IPFS implementation in JavaScript is a work in progress. As such, there's a few things you can do right now to help out:
30-
31-
* Go through the modules below and **check out existing issues**. This would be especially useful for modules in active development. Some knowledge of IPFS may be required, as well as the infrastructure behind it - for instance, you may need to read up on p2p and more complex operations like muxing to be able to help technically.
32-
* **Perform code reviews**. More eyes will help a) speed the project along b) ensure quality and c) reduce possible future bugs.
33-
* Take a look at go-ipfs and some of the planning repositories or issues: for instance, the libp2p spec [here](https://github.com/ipfs/specs/pull/19). Contributions here that would be most helpful are **top-level comments** about how it should look based on our understanding. Again, the more eyes the better.
34-
* **Add tests**. There can never be enough tests.
35-
* **Contribute to the [FAQ repository](https://github.com/ipfs/faq/issues)** with any questions you have about IPFS or any of the relevant technology. A good example would be asking, 'What is a merkledag tree?'. If you don't know a term, odds are, someone else doesn't either. Eventually, we should have a good understanding of where we need to improve communications and teaching together to make IPFS and IPN better.
36-
37-
# Installation
38-
39-
## npm
24+
## Table of Contents
25+
26+
- [Install](#install)
27+
- [npm](#npm)
28+
- [Use in Node.js](#use-in-nodejs)
29+
- [Through command line tool](#through-command-line-tool)
30+
- [Use in the browser with browserify, webpack or any bundler](#use-in-the-browser-with-browserify-webpack-or-any-bundler)
31+
- [Use in a browser using a script tag](#use-in-a-browser-using-a-script-tag)
32+
- [Usage](#usage)
33+
- [Examples](#examples)
34+
- [API](#api)
35+
- [Project structure](#project-structure)
36+
- [IPFS Core implementation architecture](#ipfs-core-implementation-architecture)
37+
- [IPFS Core](#ipfs-core)
38+
- [Block Service](#block-service)
39+
- [DAG Service](#dag-service)
40+
- [IPFS Repo](#ipfs-repo)
41+
- [Bitswap](#bitswap)
42+
- [Files](#files)
43+
- [Importer](#importer)
44+
- [Contribute](#contribute)
45+
- [Want to hack on IPFS?](#want-to-hack-on-ipfs)
46+
- [License](#license)
47+
48+
## Install
49+
50+
### npm
51+
52+
This project is available through [npm](https://www.npmjs.com/). To install:
4053

4154
```bash
42-
$ npm i ipfs --save
55+
$ npm install ipfs --save
4356
```
4457

45-
## Use in Node.js
58+
### Use in Node.js
59+
60+
To include this project programmatically:
4661

4762
```js
4863
var IPFS = require('ipfs')
4964

5065
var node = new IPFS()
5166
```
5267

53-
## Through command line tool
68+
### Through command line tool
5469

55-
In order to use js-ipfs as a CLI, you must install it with the `global` flag.
70+
In order to use js-ipfs as a CLI, you must install it with the `global` flag. Run the following (even if you have ipfs installed locally):
5671

5772
```bash
5873
$ npm install ipfs --global
5974
```
6075

61-
The cli is available through `jsipfs` in your terminal
76+
The CLI is available by using the command `jsipfs` in your terminal. This is aliased, instead of using `ipfs`, to make sure it does not conflict with the Go implementation.
6277

63-
## Use in the browser with browserify, webpack or any bundler
78+
### Use in the browser with browserify, webpack or any bundler
6479

65-
The code published to npm that gets loaded on require is in fact a ES5 transpiled version with the right shims added. This means that you can require it and use with your favourite bundler without having to adjust asset management process.
80+
The code published to npm that gets loaded on require is in fact a ES5 transpiled version with the right shims added. This means that you can require it and use with your favourite bundler without having to adjust the asset management process.
6681

67-
```js
68-
```
82+
### Use in a browser using a script tag
6983

70-
## Use in a browser using a script tag
84+
Simply include ipfs in your bundled javascript file.
7185

7286
```html
87+
<script type="text/javascript" src="assets/bundled.js"></script>
7388
```
7489

75-
# Usage
90+
## Usage
7691

77-
## Examples
92+
### Examples
7893

7994
> **Will come soon**
8095
81-
## API
96+
### API
8297

8398
> **Will come soon**
8499
85-
86-
87-
# Project structure
100+
## Project structure
88101

89102
```
90103
┌───┐ ┌───────────────┐ ┌──────────────┐
@@ -98,7 +111,7 @@ The code published to npm that gets loaded on require is in fact a ES5 transpile
98111
└─────┘
99112
```
100113

101-
# IPFS Core Implementation Architecture
114+
## IPFS Core implementation architecture
102115

103116
IPFS Core is divided into separate subsystems, each of them exist in their own repo/module. The dependencies between each subsystem is assured by injection at the IPFS Core level. IPFS Core exposes an API, defined by the IPFS API spec. libp2p is the networking layer used by IPFS, but out of scope in IPFS core, follow that project [here](https://github.com/diasdavid/js-libp2p)
104117

@@ -179,10 +192,21 @@ Files is the API that lets us work with IPFS objects (DAG Nodes) as if they were
179192

180193
Importer are a set of layouts (e.g. UnixFS) and chunkers (e.g: fixed-size, rabin, etc) that convert data to a MerkleDAG representation inside IPFS.
181194

182-
## License
183195

184-
MIT.
196+
## Contribute
185197

186-
# Want to hack on IPFS?
198+
IPFS implementation in JavaScript is a work in progress. As such, there's a few things you can do right now to help out:
199+
200+
* Go through the modules below and **check out existing issues**. This would be especially useful for modules in active development. Some knowledge of IPFS may be required, as well as the infrastructure behind it - for instance, you may need to read up on p2p and more complex operations like muxing to be able to help technically.
201+
* **Perform code reviews**. More eyes will help a) speed the project along b) ensure quality and c) reduce possible future bugs.
202+
* Take a look at go-ipfs and some of the planning repositories or issues: for instance, the libp2p spec [here](https://github.com/ipfs/specs/pull/19). Contributions here that would be most helpful are **top-level comments** about how it should look based on our understanding. Again, the more eyes the better.
203+
* **Add tests**. There can never be enough tests.
204+
* **Contribute to the [FAQ repository](https://github.com/ipfs/faq/issues)** with any questions you have about IPFS or any of the relevant technology. A good example would be asking, 'What is a merkledag tree?'. If you don't know a term, odds are, someone else doesn't either. Eventually, we should have a good understanding of where we need to improve communications and teaching together to make IPFS and IPN better.
205+
206+
### Want to hack on IPFS?
187207

188208
[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/contributing.md)
209+
210+
## License
211+
212+
MIT.

0 commit comments

Comments
 (0)