0.12.0 β€’ Published 3 years ago

hyper-dns v0.12.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

hyper-dns

Advanced resolving of decentralized web links using different name systems such as DNS Txt entries and .well-known https lookups locations. It implements various naming systems such as dat, hyper and cabal but is extensible to support other systems as well.

πŸš€ Basic API

After installing it through npm, you can simply run it like this:

const { resolveProtocol, resolve, resolveURL } = require('hyper-dns')
const protocol = 'dat'
const domain = 'dat-ecosystem.org'
const key = await resolveProtocol(protocol, domain)

Note: You may need to wrap it in a async function until top level async/await lands.

That's it! πŸŽ‰ - in the key variable you will get the dat key or null, if it can't be found.

πŸ§™β€β™€οΈ What is this magic?

Different decentralized web systems have different means to resolve "names" to a decentralized document.

hyper-dns contains a variety of implementations. Many are using DNS TXT records that contain a key of specified pattern, but other means are possible as well. βˆ’ (more in the Protocol Guide)

The power of hyper-dns in comparison to other, protocol-specific implementations is that it has a shared cache for all protocols, it works in he browser and does a list of things well. βˆ’ (more in the Architecture Overview)

πŸ‘©β€πŸŽ“ Further reading

πŸ“œ License

MIT License

0.12.0

3 years ago

0.11.5

3 years ago

0.11.0

3 years ago

0.11.1

3 years ago

0.11.2

3 years ago

0.11.3

3 years ago

0.11.4

3 years ago

0.10.0

3 years ago

0.9.0

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago