• Stars
    star
    145
  • Rank 254,144 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 6 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Share files via IPFS

IPFS Share

Sender view Recipient view
Screenshot of IPFS Share sender view Screenshot of IPFS Share recipient view

js-standard-style

Share files directly from your device's browser using IPFS โ€” no cloud needed. Fast, free, easy file sharing for IPFS novices and veterans alike, available at https://share.ipfs.io.

Maintainers

Maintainers welcome! This repo is not currently under active development, but issues are monitored as part of overall IPFS project issue monitoring.

Table of Contents

About IPFS Share

IPFS Share is a simple, easy-to-use tool for sharing files directly from your device without having to rely on third-party intermediaries like big corporate cloud providers. It's simple enough for anyone to use, but it's also a great under-the-hood demonstration of a common IPFS use case.

Features

  • Share and receive files using IPFS without needing to install a local node
  • Upload or drag-and-drop individual files or entire directories
  • For multiple-file uploads, generate share/download links for individual files or a single all-in-one link (downloads as a .tar file)
  • Preview files in-browser (browser-supported formats only) before sharing or downloading
  • Generates a QR code for share links for easy distribution
  • Supports browser-specified language or manual choice of language via menu
  • 100% mobile-friendly
  • Supports installation as a mobile shortcut or desktop standalone app
  • Includes brief explainers on how IPFS Share works, with links to more details for the curious

How it works

IPFS Share uses ipfs-provider to connect to IPFS via multiple providers. If local IPFS node is not available (for example, if you're using IPFS Share on your phone, or due to CORS), an instance of js-ipfs is created.

The app itself is built using create-react-app, so if you're comfortable building ordinary React web apps, you'll feel right at home in this codebase. Not familiar with React or create-react-app? There are extensive docs available. Visual styling is done using Tachyons with additional IPFS flavor via ipfs-css.

For developers

It's easy to get a local copy of IPFS Share up and running, even if you don't have a local IPFS node installed.

Installation

With node@14 and [email protected] or greater installed, run:

> npm ci

Usage

To run IPFS Share in development mode:

> npm start
# You can now view ipfs-share-files in the browser.
# Local: http://localhost:3000

Using with a local IPFS node

If you have a local IPFS node, you may also want to run it simultaneously. Use IPFS Desktop or start a daemon in the terminal:

> ipfs daemon
# API server listening on /ip4/127.0.0.1/tcp/5001

If you are running a local node, you must configure your IPFS API to allow cross-origin (CORS) requests from you development server and the share.ipfs.io domain.

You can either run the cors-config.sh script:

> ./cors-config.sh

Or do it manually:

> ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://localhost:3000", "https://share.ipfs.io"]'
> ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "POST"]'

To reset the config to its default state, run:

> ipfs config --json API.HTTPHeaders {}

Linting

To validate the code using StandardJS, run:

> npm run lint

This is highly recommended to avoid automated CI failures when submitting a pull request to this repo.

Building

To build IPFS Share for production to the build folder:

> npm run build

Deployment

We use CI for automatic deployments when merged to the following branches:

If you just want to PR main to production for go-live, there's a handy shortcut for that here.

Note that it's always a good idea to clear one's caches when double-checking a successful deployment.

Translations

The entire IPFS project, including IPFS Share, uses Transifex to help us source and manage translations. We very much welcome your contributions! Simply go to the project page on Transifex, create an account, pick a language and start translating.

On the app side, translations are stored in public/locales, and the English version is the source of truth. Transifex automatically syncs new translations into that directory, so if you want to add translations, do so in Transifex โ€” not this repo.

To sync translations

  1. Install and set up the command-line client (tx)
  2. Download new translations from Transifex with tx pull -a
    • This creates/updates the files in public/locales/* that need to be committed
    • If a new language is created, remember to
      • add it to src/i18n.js
      • run npx -q @olizilla/lol public/locales > src/lib/languages.json

To add or update English source-of-truth translation keys

  1. Change only the source file (public/locales/en/translation.json)
  2. Commit your changes; changes from the main branch are fetched by Transifex automatically once a day

To learn more about internationalization on the IPFS project as a whole, or contribute translations to other IPFS repos, check out ipfs/i18n.

Contribute

Contributions are more than welcome! Check out the currently open issues and start hacking on anything that sounds interesting. Issues are labeled with a variety of tags to help you find a good fit โ€” you may wish to start with the help-wanted tag.

To contribute to IPFS in general, check out the wide variety of opportunities here.

The IPFS community believes that our mission is best served in an environment that is friendly, safe, and accepting, and free from intimidation or harassment. To that end, we ask that everyone involved in IPFS read and respect our code of conduct.

License

MIT

More Repositories

1

ipfs-deploy

Zero-Config CLI to Deploy Static Websites to IPFS
JavaScript
1,160
star
2

py-ipfs-http-client

A python client library for the IPFS API
Python
661
star
3

java-ipfs-http-client

A Java implementation of the HTTP IPFS API
Java
537
star
4

py-ipfs

python implementation of ipfs
Python
475
star
5

npm-on-ipfs

๐Ÿ“ฆ Install npm modules through IPFS!
JavaScript
464
star
6

gomobile-ipfs

IPFS and libp2p on Mobile, with Gomobile
Java
318
star
7

ipfs-primer

A primer explaining IPFS and the Decentralized Web, viewable as a website, pdf or e-book
CSS
287
star
8

ipfs-pubsub-room

IPFS Pubsub room
JavaScript
283
star
9

ipscend

๐Ÿš€ Publish all your Web pages to IPFS, track released versions and more!
JavaScript
262
star
10

swift-ipfs-http-client

A Swift client library for the IPFS HTTP API.
Swift
196
star
11

git-remote-ipld

Go
144
star
12

nft-school-examples

JavaScript
143
star
13

is-ipfs

A set of utilities to help identify IPFS resources on the web
TypeScript
126
star
14

shared-editing-demo

Demo of shared text editing using Yjs and IPFS
JavaScript
104
star
15

ipfs-service-worker-demos

[INACTIVE/DEPRECATED] Demo ~2017: run an IPFS node inside a Service Worker and serve all your IPFS URLs directly from IPFS!
JavaScript
84
star
16

ipfs-pack

ipfs-pack filesystem packing tool
Go
72
star
17

ipfs-geoip

geoip lookup over DAG-CBOR dataset loaded from IPFS
JavaScript
70
star
18

IGiS

Interplanetary Git Service
JavaScript
69
star
19

ipfs-github-action

Pin your site to IPFS from a GitHub Action
Shell
68
star
20

pm-idm

IDM project management repository
63
star
21

dnslink-cloudflare

Update dnslink TXT records in Cloudflare
JavaScript
63
star
22

service-worker-gateway-2019-poc

[ARCHIVED] 2019 PoC of IPFS gateway fully running on a Service Worker. For modern (2024+) version see https://github.com/ipfs-shipyard/service-worker-gateway
JavaScript
61
star
23

peer-crdt

Peer CRDT
JavaScript
60
star
24

tevere

๐Ÿž Decentralized DB over IPFS
JavaScript
59
star
25

dnslink-deploy

Set the DNS records on Digital Ocean programmatically
JavaScript
58
star
26

y-ipfs-connector

Y.js connector over IPFS
JavaScript
57
star
27

ipfs-blob-store

An abstract-blob-store compatible implementation built using IPFS as the storage backend
JavaScript
56
star
28

ipfs-pubsub-room-demo

IPFS Pubsub room demo
JavaScript
53
star
29

Durin

Native mobile apps for share actions on iOS and Android
TypeScript
46
star
30

shipyard

Main entry repo for the IPFS Shipyard
45
star
31

container-demos

ipfs container demos
Makefile
44
star
32

discussify-browser-extension

Discussify's browser extension app
JavaScript
40
star
33

ipfs-dns-deploy

A circleci friendly Docker image for pinning things to cluster and updating dns
Shell
38
star
34

net-ipfs-http-client

InterPlanetary File System client for .Net (C#, VB, F# ...)
C#
38
star
35

scala-ipfs-api

A wrapper of the IPFS Client HTTP-API for Scala.
Scala
34
star
36

js-ipfs-http-client-lite

An alternative client library for the IPFS HTTP API, aiming to be as lightweight as possible (<20kB) in the browser.
JavaScript
34
star
37

js-human-crypto-keys

Generate and import human-friendly cryptographic keys using mnemonics, QR codes and other methods
JavaScript
33
star
38

ipfs-provider

Connect to IPFS via an available provider
JavaScript
33
star
39

cube

IPFS Cube will help people deploy and manage their own IPFS pinning services on top of existing cheap hardware, or cloud storage.
Clojure
32
star
40

js-ipfs-level

Leveldown over IPFS
JavaScript
30
star
41

workshop-todo-dapp

A workshop into adding realtime collaboration in a typical To-do app
JavaScript
29
star
42

dataviz

ipfs data visualizations
CoffeeScript
29
star
43

react-native-ipfs-demo

Demo app exploring IPFS in React Native.
JavaScript
29
star
44

ipfs-live-db

Live CRDT DB over IPFS
28
star
45

ipfs-check

A tool for checking the accessibility of your data by IPFS peers
Go
27
star
46

ecosystem-dashboard

A dashboard for monitoring the ecosystem around an open source project.
Ruby
27
star
47

ipfs-npm-OLD

Please refer to https://github.com/ipfs-shipyard/npm-on-ipfs
JavaScript
27
star
48

ipfs-cohost

A CLI to co-host websites published to IPFS
JavaScript
26
star
49

vole

a collection of tools for digging around IPFS nodes
Go
26
star
50

demo-ipfs-id-qr-codes

Generates a QR Code of your IPNS URL and Public Key
HTML
25
star
51

cohosting

A set of light tools and conventions for cohosting public websites and files on IPFS
Shell
25
star
52

ipfs-pubsub-1on1

1-to-1 communication channel over IPFS Pubsub between two peers
JavaScript
25
star
53

ipfs-css

The single-purpose css class names and font-face config to IPFS up your UI.
HTML
24
star
54

ipfs-dag-builder-vis

See how the DAGs get built
JavaScript
24
star
55

rb-pinning-service-api

A rails app that implements the IPFS Pinning Service API
Ruby
23
star
56

i18n

IPFS Translation Project
22
star
57

peer-pad-core

๐Ÿ“ PeerPad core API (no UI)
JavaScript
22
star
58

nopfs

Say NO with NOpfs! NOpfs provides content-blocking-layer capabilities for IPFS (Kubo).
Go
21
star
59

ipfs-senc

Simple tarball encryption
CSS
21
star
60

js-did-ipid

The IPID DID method implementation in JavaScript
JavaScript
21
star
61

peer-crdt-ipfs

peer-crdt network and store over IPFS
JavaScript
20
star
62

net-ipfs-core

C#
19
star
63

ipfs-npm-registry-mirror

Clone the NPM registry into IPFS
JavaScript
19
star
64

apt-on-ipfs

A Docker image that installs ubuntu packages via IPFS
Dockerfile
19
star
65

space

Rust
18
star
66

demo-ipfs-todo

Simple ToDo app using window.ipfs
JavaScript
17
star
67

ipfsx

Experimental IPFS API
JavaScript
17
star
68

pm-discussify

Discussify's project management repository
HTML
17
star
69

package-table

Auto generate a module table in markdown from JSON
JavaScript
16
star
70

integration-mini-projects

Ideas and tracking for small one week "mini projects" that integrate across IPFS
14
star
71

paperhub

Sharing scientific papers using ipfs
JavaScript
14
star
72

pinning-service-compliance

This repo checks the compliance of IPFS Pinning Services against the pinning spec
TypeScript
14
star
73

nomios.io

The https://nomios.io website repository
JavaScript
13
star
74

js-crypto-key-composer

A library to parse crypto keys in different types and formats
JavaScript
12
star
75

go-ipfs-desktop

Go
12
star
76

ipfs-thing-2022

ipfs-รพing-2022
JavaScript
12
star
77

ipfs-iiif-db

IIIF annotations JS client on top of IPFS
JavaScript
12
star
78

react-ipfs-url

Grab a URL from a IPFS path by using URL.createObjectURL
JavaScript
12
star
79

camp-course-c-demo

IPFS Camp 2019 Course C Materials
HTML
11
star
80

ipfs-npm-republish

๐Ÿ“ฆ Republish your node project's dependencies to IPFS as a micro-registry
JavaScript
11
star
81

ipfs-hubot

hubot for ipfs
CoffeeScript
11
star
82

js-idm-wallet

The reference implementation of the IDM Wallet in JavaScript
JavaScript
10
star
83

workshop-idm-chat-dapp

The IDM mini-chat DApp workshop
JavaScript
10
star
84

ipfs-http

A REST and GraphQL interface to IPFS
Go
10
star
85

go-ipfs-docker-examples

Shell
9
star
86

js-pinning-service-http-client

An IPFS Pinning Service HTTP Client for TypeScript / Javascript
TypeScript
9
star
87

DAGger

๐Ÿ—ก๏ธ - an elegant slicer for a more civilized age
Shell
8
star
88

thunderdome

Go
8
star
89

nomios-web-uikit

A collection of shared react components to be used in the Nomios Identity Wallet
JavaScript
8
star
90

ipfs-or-gateway

Download an hash via IPFS, falling back to an HTTP Gateway
JavaScript
8
star
91

w3rc

A Web3 Retrieval Client
Go
8
star
92

dnslink-dnsimple

Update dnslink TXT records in DNSimple
Go
8
star
93

nomios-web

The reference IDM wallet based on web technologies
JavaScript
8
star
94

ipfs-thing-2023

ipfs-รพing-2023
TypeScript
8
star
95

ipfs-pubsub-peer-monitor

Monitor peers joining and leaving an IPFS PubSub topic
JavaScript
8
star
96

someguy

A Delegated Routing V1 server and client for all your routing needs.
Go
7
star
97

js-libp2p-react-native

A demo app running js-libp2p in a React Native app
Java
7
star
98

js-mock-ipfs-pinning-service

Implementation of in-memory IPFS Pinning Service API
JavaScript
7
star
99

js-versidag

Concurrent version history based on a Merkle-DAG
JavaScript
6
star
100

go-dumpotron

Take pprof dumps when a go process eats too much ram or cpu
Go
6
star