{"id":13728240,"url":"https://github.com/talentlessguy/get-ens","last_synced_at":"2025-04-15T01:09:10.301Z","repository":{"id":45152238,"uuid":"395066872","full_name":"talentlessguy/get-ens","owner":"talentlessguy","description":"🗝️ Get text records of an ENS address with ease","archived":false,"fork":false,"pushed_at":"2023-01-25T16:46:32.000Z","size":195,"stargazers_count":39,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T01:09:02.895Z","etag":null,"topics":["blockchain","ens","ethereum"],"latest_commit_sha":null,"homepage":"","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/talentlessguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"ko_fi":"v1rtl","liberapay":"v1rtl","issuehunt":"talentlessguy","custom":["https://gitcoin.co/talentlessguy","https://v1rtl.site/support"]}},"created_at":"2021-08-11T17:24:09.000Z","updated_at":"2024-07-23T16:38:16.000Z","dependencies_parsed_at":"2023-02-14T09:10:18.731Z","dependency_job_id":null,"html_url":"https://github.com/talentlessguy/get-ens","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentlessguy%2Fget-ens","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentlessguy%2Fget-ens/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentlessguy%2Fget-ens/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talentlessguy%2Fget-ens/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/talentlessguy","download_url":"https://codeload.github.com/talentlessguy/get-ens/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986313,"owners_count":21194025,"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":["blockchain","ens","ethereum"],"created_at":"2024-08-03T02:00:39.115Z","updated_at":"2025-04-15T01:09:10.282Z","avatar_url":"https://github.com/talentlessguy.png","language":"TypeScript","funding_links":["https://ko-fi.com/v1rtl","https://liberapay.com/v1rtl","https://issuehunt.io/r/talentlessguy","https://gitcoin.co/talentlessguy","https://v1rtl.site/support"],"categories":["Packages"],"sub_categories":["Ethereum"],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://www.pngkit.com/png/full/152-1526200_ens-logo-ethereum-name-service.png\" height=\"150px\" /\u003e\u003cbr /\u003e\n\n# get-ens\n\n[![Version][v-badge-url]][npm-url] [![Downloads][dl-badge-url]][npm-url] [![GitHub Workflow Status][gh-actions-img]][github-actions] [![Codecov][cov-badge-url]][cov-url] [![][docs-badge]][docs]\n\n\u003csub\u003eGet text records of an [ENS](app.ens.domains) address with ease.\u003c/sub\u003e\n\n\u003c/div\u003e\n\nThis library simplifies the process of retreiving ENS data with the help of [TheGraph ENS explorer](https://thegraph.com/explorer/subgraph/ensdomains/ens) and ENS [TextResolver](https://github.com/ensdomains/ens-contracts/blob/master/contracts/resolvers/profiles/TextResolver.sol) contract.\n\n## Features\n\n- Fully Typed\n- Custom ENS contract address and TheGraph endpoint support\n- Reverse ENS lookup if address is passed\n\n## Install\n\n```sh\npnpm i get-ens\n```\n\n## Usage\n\n### Node.js\n\n```ts\nimport { getDefaultProvider } from '@ethersproject/providers'\nimport { getENS } from 'get-ens'\nimport fetch from 'node-fetch'\n\nconst provider = getDefaultProvider()\n\n// @ts-ignore\nglobalThis.fetch = fetch\n\nconst { address, records, owner } = await getENS({ provider })('foda.eth')\n\n/*\n{\n  address: '0xf75ed978170dfa5ee3d71d95979a34c91cd7042e',\n  owner: '0xf75ed978170dfa5ee3d71d95979a34c91cd7042e',\n  records: {\n    avatar: 'https://slate.textile.io/ipfs/bafkreiddogjj5m6nhru72cqvj7napv3knwyqcvxlfxu4axkwhhlg55t5cu',\n    color: '#f0da91',\n    description: 'ⓕ™',\n    email: 'foda@just.is',\n    url: 'https://asf.is',\n    web: {\n      github: 'https://github.com/a-s-f',\n      instagram: 'https://instagram.com/foda.farm',\n      twitter: 'twitter.com/fodasynthesis'\n    }\n  }\n}\n*/\n```\n\n### Deno\n\n```ts\nimport { getENS } from 'https://esm.sh/get-ens'\nimport { getDefaultProvider } from 'https://esm.sh/@ethersproject/providers'\n\nconst provider = getDefaultProvider()\n\nconst { address, records, owner } = await getENS({ provider })('foda.eth')\n```\n\n[v-badge-url]: https://img.shields.io/npm/v/get-ens.svg?style=for-the-badge\u0026color=4D48F7\u0026label=\u0026logo=npm\n[npm-url]: https://www.npmjs.com/package/get-ens\n[cov-badge-url]: https://img.shields.io/coveralls/github/talentlessguy/get-ens?style=for-the-badge\u0026color=4D48F7\n[cov-url]: https://coveralls.io/github/talentlessguy/get-ens\n[dl-badge-url]: https://img.shields.io/npm/dt/get-ens?style=for-the-badge\u0026color=4D48F7\n[github-actions]: https://github.com/talentlessguy/get-ens/actions\n[gh-actions-img]: https://img.shields.io/github/actions/workflow/status/talentlessguy/get-ens/main.yml?branch=master\u0026style=for-the-badge\u0026color=4D48F7\n[docs-badge]: https://img.shields.io/badge/Docs-4D48F7?style=for-the-badge\u0026logo=deno\n[docs]: https://doc.deno.land/https/esm.sh/get-ens\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalentlessguy%2Fget-ens","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalentlessguy%2Fget-ens","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalentlessguy%2Fget-ens/lists"}