{"id":18300962,"url":"https://github.com/bonfida/name-resolver","last_synced_at":"2025-04-05T14:30:47.783Z","repository":{"id":49745203,"uuid":"516017581","full_name":"Bonfida/name-resolver","owner":"Bonfida","description":"Solana name service resolver in browser","archived":false,"fork":false,"pushed_at":"2024-04-06T03:42:02.000Z","size":1176,"stargazers_count":13,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T05:32:52.137Z","etag":null,"topics":["cloudflare-workers","rust","solana","webassembly"],"latest_commit_sha":null,"homepage":"https://sol-domain.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bonfida.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-07-20T14:35:30.000Z","updated_at":"2025-02-05T12:57:49.000Z","dependencies_parsed_at":"2024-01-29T07:02:56.840Z","dependency_job_id":"2a94d4b0-9550-4d12-8c62-34989dc0ee1a","html_url":"https://github.com/Bonfida/name-resolver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bonfida%2Fname-resolver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bonfida%2Fname-resolver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bonfida%2Fname-resolver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bonfida%2Fname-resolver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bonfida","download_url":"https://codeload.github.com/Bonfida/name-resolver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247352256,"owners_count":20925237,"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":["cloudflare-workers","rust","solana","webassembly"],"created_at":"2024-11-05T15:13:58.605Z","updated_at":"2025-04-05T14:30:47.094Z","avatar_url":"https://github.com/Bonfida.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eName Resolver\u003c/h1\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg width=\"250\" src=\"https://i.imgur.com/nn7LMNV.png\"/\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://twitter.com/bonfida\"\u003e\n\u003cimg src=\"https://img.shields.io/twitter/url?label=Bonfida\u0026style=social\u0026url=https%3A%2F%2Ftwitter.com%2Fbonfida\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Cloudflare-F38020?style=for-the-badge\u0026logo=Cloudflare\u0026logoColor=white\" /\u003e\n\u003cimg src=\"https://img.shields.io/badge/Rust-000000?style=for-the-badge\u0026logo=rust\u0026logoColor=white\" /\u003e\n\u003cimg src=\"https://img.shields.io/badge/WebAssembly-654FF0?style=for-the-badge\u0026logo=WebAssembly\u0026logoColor=white\"\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\u003ca name=\"introduction\"\u003e\u003c/a\u003e\n\u003ch2 align=\"center\"\u003eIntroduction\u003c/h2\u003e\n\u003cbr /\u003e\n\n![diagram](/assets/diagram.png)\n\nThis repository is an implementation of a Solana Name Service resolver made with Cloudflare workers.\n\nIt allows people to browse SNS websites directly from their favorite web browser (e.g [https://bonfida.sol-domain.org](https://bonfida.sol-domain.org)). The resolver supports URLs, [IPFS CIDs](https://www.ipfs.com/) and [Arweave hashes](https://www.arweave.org/).\n\nWhen resolving a domain the worker will look into the following records and return the first one that exists:\n\n- `url` record\n- `IPFS` record\n- `ARWV` record\n- `SHDW` record\n- `A` record\n- `CNAME` record\n\nThe resolver will resolve both records v1 and records v2, but records v2 are given priority.\n\n\u003cbr /\u003e\n\u003ch2 align=\"center\"\u003eDeployment\u003c/h2\u003e\n\u003cbr /\u003e\n\nThis resolver is deployed on [https://sol-domain.org](https://sol-domain.org)\n\n\u003cbr /\u003e\n\u003ch2 align=\"center\"\u003eGet started\u003c/h2\u003e\n\u003cbr /\u003e\n\n1. Install the wrangler CLI\n\n```\nyarn global add wrangler\n```\n\n2. Run the worker locally\n\n```\nwrangler dev\n```\n\n3. Deploy on Cloudflare\n\n```\nwrangler publish\n```\n\n\u003cbr /\u003e\n\u003ch2 align=\"center\"\u003eEdit your records\u003c/h2\u003e\n\u003cbr /\u003e\n\nTo make your domain browsable, you must set your records:\n\n- Go to your domain's page (e.g [https://www.sns.id/domain?domain=bonfida](https://www.sns.id/domain?domain=bonfida))\n- Connect your wallet\n- In order to resolve your domain one of the following record must be set:\n  - `IPFS`: With the following format `ipfs://\u003cCID\u003e` (e.g `ipfs://QmZk9uh2mqmXJFKu2Hq7kFRh93pA8GDpSZ6ReNqubfRKKQ`)\n  - `ARWV`: With the following format `arwv://\u003cHASH\u003e` (e.g `arwv://KuB5jmew87_M2flH9f6ZpB9jlDv8hZSHPrmGUY8KqEk`)\n  - `url`: With the following format `url_to_your_website` (e.g `https://bonfida.org`)\n\n![record](/assets/record.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonfida%2Fname-resolver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbonfida%2Fname-resolver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonfida%2Fname-resolver/lists"}