All Projects β†’ ipfs-shipyard β†’ Ipfs Cohost

ipfs-shipyard / Ipfs Cohost

Licence: mit
A CLI to co-host websites published to IPFS

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Ipfs Cohost

Dtube
πŸ“Ί d.tube app. A full-featured video sharing website, decentralized.
Stars: ✭ 569 (+2609.52%)
Mutual labels:  ipfs
Filenation
The simplest way to send your files around the world using IPFS. ✏️ πŸ—ƒ
Stars: ✭ 805 (+3733.33%)
Mutual labels:  ipfs
Dnslink Cloudflare
Update dnslink TXT records in Cloudflare
Stars: ✭ 22 (+4.76%)
Mutual labels:  ipfs
Openbazaar Desktop
OpenBazaar 2.0 Desktop Client (talks to openbazaar-go server daemon)
Stars: ✭ 597 (+2742.86%)
Mutual labels:  ipfs
Rust Ipfs
The InterPlanetary File System (IPFS), implemented in Rust.
Stars: ✭ 739 (+3419.05%)
Mutual labels:  ipfs
Graph Node
Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
Stars: ✭ 884 (+4109.52%)
Mutual labels:  ipfs
Specs
Content-addressed, authenticated, immutable data structures
Stars: ✭ 539 (+2466.67%)
Mutual labels:  ipfs
Awesome Blockchain
⚑️Curated list of resources for the development and applications of blockchain.
Stars: ✭ 937 (+4361.9%)
Mutual labels:  ipfs
Ipfs Deploy
Zero-Config CLI to Deploy Static Websites to IPFS
Stars: ✭ 740 (+3423.81%)
Mutual labels:  ipfs
Papillon
A distributed blog publish system based on IPFS
Stars: ✭ 19 (-9.52%)
Mutual labels:  ipfs
Js Ipfs
IPFS implementation in JavaScript
Stars: ✭ 6,129 (+29085.71%)
Mutual labels:  ipfs
Pcp
πŸ“¦ Command line peer-to-peer data transfer tool based on libp2p.
Stars: ✭ 687 (+3171.43%)
Mutual labels:  ipfs
Docuhash
Simple PoC that shows you how to use IPFS and Ethereum blockchain to store files and their information.
Stars: ✭ 17 (-19.05%)
Mutual labels:  ipfs
Dstatuspage
Decentralized Status Page
Stars: ✭ 571 (+2619.05%)
Mutual labels:  ipfs
Openbazaar Go
OpenBazaar 2.0 Server Daemon in Go
Stars: ✭ 919 (+4276.19%)
Mutual labels:  ipfs
Peer Pad
πŸ“ Online editor providing collaborative editing in really real-time using CRDTs and IPFS.
Stars: ✭ 564 (+2585.71%)
Mutual labels:  ipfs
Ipfs Sync
Live IPFS directory synchronization.
Stars: ✭ 16 (-23.81%)
Mutual labels:  ipfs
Notes
ideas and planning on how to use IPFS together with Nix/OS
Stars: ✭ 15 (-28.57%)
Mutual labels:  ipfs
Subnode.org
SubNode: Social Media App
Stars: ✭ 25 (+19.05%)
Mutual labels:  ipfs
Peergos
A p2p, secure file storage, social network and application protocol
Stars: ✭ 895 (+4161.9%)
Mutual labels:  ipfs

ipfs-cohost 🌐✨🀝

A CLI to co-host websites published to IPFS.

If your domain has a DNSlink to a CID, then ipfs-cohost will let others pin it to their IPFS node.

Usage

Pass it the list of domains you want to cohost. It finds the CID from the DNSLink for that domain and starts cohosting the domains. By default, we use a full cohosting. You can force the domains to be lazily cohosted by using the flag --lazy.

$ ipfs-cohost add ipfs.io docs.ipfs.io awesome.ipfs.io
πŸ”Œ Using local ipfs daemon via http api
πŸ“ docs.ipfs.io    QmNrbogjGZWgUSrbmHXydwc5b51oJQsBfHA2RkNRVf2ikc 6.86 MB
πŸ“ awesome.ipfs.io QmPHrA6RT2j7bEcBrdeV2z6ZWrchDguw9wBchHPr6VZcFS 7.6 MB
πŸ“ ipfs.io         QmYb3dbymigAPcaiQUgnPxbwgMKjvxVBrrxSvFHwbZLVkq 10 MB
πŸ“¦ Total size 24.5 MB for 3 domains
🀝 Co-hosting 3 domains via IPFS.

Passing the --silent options will prevent any logging.

$ ipfs-cohost add ipfs.io --silent

Remove cohosted website

You can remove one or more websites at once:

$ ipfs-cohost rm ipfs.io docs.ipfs.io awesome.ipfs.io
πŸ”Œ Using local ipfs daemon via http api
βœ”  ipfs.io no longer cohosted.
βœ”  docs.ipfs.io no longer cohosted.
βœ”  awesome.ipfs.io no longer cohosted.

You can also remove every website you have cohosted:

$ ipfs-cohost rm --all
πŸ”Œ Using local ipfs daemon via http api
βœ” All cohosted websites removed.

List cohosted websites and snapshots

Use ls with no arguments to list the cohosted domains:

$ ipfs-cohost ls
πŸ”Œ Using local ipfs daemon via http api
πŸ“ Lazily cohosted domains:
      docs.ipfs.io
      ipfs.io
πŸ“ Fully cohosted domains:
      arewedistributedyet.com
      awesome.ipfs.io
      ipfs.io

Use ls with domains as arguments to list the snapshots for each domain:

$ ipfs-cohost awesome.ipfs.io
πŸ”Œ Using local ipfs daemon via http api
⏱ Full snapshots for ipfs.io:
      2019-10-06_095057
      2019-10-05_135342

Sync the current domains

Check if you have the most up to date version of each website and updates the snapshots.

$ ipfs-cohost sync
πŸ”Œ Using local ipfs daemon via http api
βœ”  Snapshots synced!

Prune

Delete all snapshots but the last n. If n is not provided, all snapshots but the last one will be deleted.

$ ipfs-cohost prune [n]
πŸ”Œ Using local ipfs daemon via http api
βœ”  Cohosted websites cleaned!

Only add latest copies

In some situations, you might want to be able to provide a strict list of domains you want to have one and only snapshot per domain. You can use ipfs-cohost latest <domain>... as a short hand for ipfs-cohost rm --all && ipfs-cohost add <domain>.... All flags apply.

Could you do these with a few lines of bash?

Yes. All of this commands can be reproducible via bash commands. Please take a look at the cohosting SPEC to know which ipfs commands are equivalent to these ones.

Install

With node >= 10.15 and npm > 6.9 installed , you can install ipfs-cohost via npm

# install it
$ npm i -g ipfs-cohost

# run it
$ ipfs-cohost add docs.ipfs.io blog.ipfs.io ipfs.io

You can run the latest version of ipfs-cohost without explicitly installing it via npx

$ npx ipfs-cohost add docs.ipfs.io blog.ipfs.io ipfs.io
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].