• Stars
    star
    262
  • Rank 156,136 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 9 years ago
  • Updated about 5 years ago

Reviews

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

Repository Details

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

Deprecation Notice

This module will no longer be maintained :sadface:. The Good news is that @agentofuser made a 1000x better implementation of what this module was meant to be ๐Ÿš€. Check it out:



ipscend

Dependency Status js-standard-style

Web Application publishing, simple and distributed with IPFS

Usage

Install via npm

$ npm install ipscend --global

Run the CLI to show the available commands

$ ipscend
Usage: ipscend COMMAND [OPTIONS]

Available commands:

browse      Open your application in a browser
init        Initialize a ipscend project
ipfs start  Start your a local IPFS node
preview     Preview your application before you publish it
publish     Publish your project
screenshot  View or generate screenshots for your application
versions    Check each version published

commands

ipscend browse

Opens the last published version of your application in the browser.

ipscend init

Initializes your project. Asks for the folder where the web application will be available and stores an ipscend.json object in your current path to store all the metadata it generates, such as published versions and taken screenshots.

ipscend ipfs start

Start and init an IPFS node (in case you don't want to install and run IPFS yourself)

ipscend preview

Serves your application on a local static file server, so that you can try it out before you feel ready to publish it.

ipscend publish

Publishes the current state of your application to IPFS and stores a reference to it.

Note: You have to have a local IPFS node running in order to publish, check below for how to get your local IPFS node running.

ipscend screenshot

Opens a screenshot preview of all the published versions of your app. In order to generate the screenshots, you must first run ipscend screenshot --gen.

Note: The webapp used for this is ipscend-screenshot-visualizer.

ipscend versions

Prints out the published versions for the app and its respective timestamp.

Note: In order to use this feature, you must set API_ORIGIN=* as an environment variable before running your IPFS node.

Use IPFS to host your webpage using a standard domain (includes cool DNS trick!)

If you are looking into having your application accesible through youdomain.com, instead of referencing it by a /ipfs/hash, we have a solution for you.

Every IPFS node HTTP interface checks the host header when it receives a request from a browser, then it performs a DNS lookup for a TXT Record, looks if there is any MerkleLink available, and, if there is, it performs a lookup, caching that path and serving it as if it was a static webserver.

To make this work, simply:

  1. Publish your application using ipscend publish.

  2. Save the returned hash.

  3. Find the IPFS ip addresses using $ dig ipfs.io. Example:

    $ dig +short ipfs.io
    178.62.61.185
    178.62.158.247
    104.236.76.40
    ...
  4. Decide which domain or subdomain will host your IPFS application. We're going to use ipfs.yourdomain.com

  5. In the DNS administration for your domain, add an A record for each of the ipfs.io IPs addresses. Example:

    yourdomain.com
    
    ipfs     A     178.62.61.185
    ipfs     A     178.62.158.247
    ipfs     A     104.236.76.40
    ...
    

    If you're using the root domain, your DNS rules should look like:

    yourdomain.com
    
    @        A     178.62.61.185
    @        A     178.62.158.247
    @        A     104.236.76.40
    ...
    
  6. Next, the cool DNS trick. Add a TXT record with the hash of your IPFS application. Example:

    yourdomain.com
    
    ipfs     TXT     dnslink=/ipfs/QmXkbSsxHZZniJ1rd5y7cJsDYyRKkcYeoEsN7p4PUq799L
    
  7. Wait a little bit for DNS to propagate.

  8. Open ipfs.yourdomain.com and see that your page was loaded!

Voilรก, your page is now cached and is being served by IPFS.

Note: You can also host your own IPFS nodes and use the same DNS trick.

Automate the DNS TXT Record update with dnslink tool

dnslink-deploy is a simple tool that lets you update your TXT records to the latest hash, if you happen to be using Digital Ocean's nameservers. To update it using the tool, simply run:

dnslink-deploy -d yourDomain -r @ -p /ipfs/QmeQT76CZLBhSxsLfSMyQjKn74UZski4iQSq9bW7YZy6x8

To learn more about how the tool works, visit https://github.com/ipfs/dnslink-deploy and to learn how to set up your domain with Digital Ocean's name servers, go to: https://www.digitalocean.com/community/tutorials/how-to-point-to-digitalocean-nameservers-from-common-domain-registrars

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

swift-ipfs-http-client

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

ipfs-share-files

Share files via IPFS
JavaScript
145
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