@outtacontrol/socks-domain-interceptor
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

socks-domain-registry

Reads a hyperdrive archive by the given domain name. The saved domain must contain a signature and a public key for the verification.

A toplevel domain (tld) contains a configuration file called tld.json.

./tld.json

{
    "name": "toplevel-domain-name",
    "domain-expire-time": 7776000000
}

The name is the toplevel domain name. If you have a domain example and your tld is code then you call it in the browser as example.code.

The domain-expire-time is the lifetime of the domain until it gets expired and must be renewed. This field is optional. If you leave it blank or set it to null, it will be ignored.

A domain entry is not a DNS call. It's a JSON file that can contain various information about the page. Signing is using the ed25519 curve and I'm using the sodium library.

./<tld-name>/mydomain.json

{
    "sig": "... 128 byte hex string ...",
    "owner": "... 64 byte hex string ...",
    "created": 1234567890123,
    "title": "custom page title for search engines and stuff",
    "description": "custom page description",
    "tags": ["custom", "tags", "for the sake of satan of course"],
    "uri": "target URI (depends on the proxy)"
}

Readme

Keywords

none

Package Sidebar

Install

npm i @outtacontrol/socks-domain-interceptor

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

28.2 kB

Total Files

30

Last publish

Collaborators

  • phoenix344