Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
/ daslink Public archive
forked from paicha/daslink

DASLink is a simple tool to link ipfs content from DAS.

License

Notifications You must be signed in to change notification settings

dotbitHQ/daslink

 
 

Repository files navigation

DASLink

DASLink is a simple tool to link ipfs content from DAS.

How does it work?

Dependent on DNSLink, Cloudflare ipfs gateway, Cloudflare DNS and das-database.

┌───────────┐               ┌───────────┐               ┌────────────┐
│           │               │           │               │            │
│   Alice   │               │    DNS    │               │ipfs gateway│
│           │               │           │               │            │
└─────┬─────┘               └─────┬─────┘               └──────┬─────┘
      │                           │                            │
      │    visit alice.bit.cc     │                            │
      ├──────────────────────────►│                            │
      │                           │       CNAME point to       │
      │                           ├───────────────────────────►│
      │                           │                            │
      │                           │◄───────────────────────────┤
      │                           │ looking up the TXT record  │
      │                           ├───────────────────────────►│
      │                           │                            ├───────────┐
      │                           │                            │           │
      │                           │                            │    get the│ipfs content
      │                           │                            │           │
      │    return ipfs content    │                            │◄──────────┘
      │◄──────────────────────────┼────────────────────────────┤
      │                           │                            │
      │                           │                            │
┌─────┴─────┐               ┌─────┴─────┐               ┌──────┴─────┐
│           │               │           │               │            │
│   Alice   │               │    DNS    │               │ipfs gateway│
│           │               │           │               │            │
└───────────┘               └───────────┘               └────────────┘

Install

# run das-database and keep it synchronized with the latest data
https://github.com/DeAccountSystems/das-database

# get the code
git clone https://github.com/paicha/daslink.git

# get your Cloudflare api tokens
https://dash.cloudflare.com/profile/api-tokens

# edit config.yaml
cd config
cp config.yaml.sample config.yaml
vi config.yaml

# compile and run
go build
./daslink

About

DASLink is a simple tool to link ipfs content from DAS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%