{"id":26825079,"url":"https://github.com/chancehudson/dnslink","last_synced_at":"2025-04-28T14:05:36.455Z","repository":{"id":57213705,"uuid":"156568135","full_name":"chancehudson/dnslink","owner":"chancehudson","description":"Resolve and update domain dnslink records","archived":false,"fork":false,"pushed_at":"2019-01-31T05:05:12.000Z","size":116,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T14:05:33.204Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chancehudson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-07T15:34:04.000Z","updated_at":"2022-05-05T06:20:26.000Z","dependencies_parsed_at":"2022-08-29T01:50:46.648Z","dependency_job_id":null,"html_url":"https://github.com/chancehudson/dnslink","commit_stats":null,"previous_names":["common-theory/dnslink","chancehudson/dnslink"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chancehudson%2Fdnslink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chancehudson%2Fdnslink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chancehudson%2Fdnslink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chancehudson%2Fdnslink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chancehudson","download_url":"https://codeload.github.com/chancehudson/dnslink/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251326836,"owners_count":21571634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-30T10:19:09.148Z","updated_at":"2025-04-28T14:05:36.428Z","avatar_url":"https://github.com/chancehudson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dnslink [![Build Status](https://travis-ci.org/common-theory/dnslink.svg?branch=master)](https://travis-ci.org/common-theory/dnslink) [![npm](https://img.shields.io/npm/v/dnslink.svg)](https://www.npmjs.com/package/dnslink) [![npm type definitions](https://img.shields.io/npm/types/dnslink.svg)](https://github.com/common-theory/dnslink)\n\nA javascript [dnslink](https://docs.ipfs.io/guides/concepts/dnslink/) resolution implementation. See [ipfs/go-dnslink](https://github.com/ipfs/go-dnslink) for more information.\n\n## Usage\n\n### `update`\n\n#### Command Line\n\nCreate a dnslink binding via digitalocean.\n\nAn environment variable called `DIGITAL_OCEAN_TOKEN` should be set.\n\n```sh\n$ jsdnslink update commontheory.io /ipfs/QmStyTZJJugmdFub1GBBGhtXpwxghT4EGvBCz8jNSLdBcy\nUnable to find dnslink record, creating a new one\nDNS record updated\n```\n\n#### JS/TS\n\n```ts\nimport { update } from 'dnslink';\n\n// async/await\nawait update('commontheory.io', '/ipfs/QmStyTZJJugmdFub1GBBGhtXpwxghT4EGvBCz8jNSLdBcy');\n\n// promises\nupdate('commontheory.io', '/ipfs/QmStyTZJJugmdFub1GBBGhtXpwxghT4EGvBCz8jNSLdBcy')\n  .then(() =\u003e /* Your logic */);\n```\n\n### `resolve`\n\nGet the CID associated with a domain. This evaluates via the DNS, not IPFS.\n\n#### Command Line\n\n```sh\n$ jsdnslink resolve commontheory.io\n/ipfs/QmStyTZJJugmdFub1GBBGhtXpwxghT4EGvBCz8jNSLdBcy\n```\n\n#### JS/TS\n\n```ts\nimport { resolve } from 'dnslink';\n\n// async/await\nconst cid = await resolve('commontheory.io');\n\n// promises\nresolve('commontheory.io')\n  .then(cid =\u003e /* Your logic */);\n```\n\n## Note\n\nThis package is not maintained by, or affiliated with IPFS or Protocol Labs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchancehudson%2Fdnslink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchancehudson%2Fdnslink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchancehudson%2Fdnslink/lists"}