{"id":15428715,"url":"https://github.com/gskril/eth-leaderboard","last_synced_at":"2025-04-19T15:30:20.163Z","repository":{"id":38380241,"uuid":"435102844","full_name":"gskril/eth-leaderboard","owner":"gskril","description":"The most followed Twitter accounts with .eth names","archived":false,"fork":false,"pushed_at":"2023-05-20T03:12:56.000Z","size":1225,"stargazers_count":37,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-29T09:22:53.327Z","etag":null,"topics":["ens","ethereum"],"latest_commit_sha":null,"homepage":"https://ethleaderboard.xyz","language":"TypeScript","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/gskril.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-05T07:34:02.000Z","updated_at":"2024-04-27T14:04:10.000Z","dependencies_parsed_at":"2024-10-20T18:48:44.497Z","dependency_job_id":null,"html_url":"https://github.com/gskril/eth-leaderboard","commit_stats":{"total_commits":167,"total_committers":5,"mean_commits":33.4,"dds":0.281437125748503,"last_synced_commit":"c821bae3d8a6a0392fc9295426fc0d38b945454c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gskril%2Feth-leaderboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gskril%2Feth-leaderboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gskril%2Feth-leaderboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gskril%2Feth-leaderboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gskril","download_url":"https://codeload.github.com/gskril/eth-leaderboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249726970,"owners_count":21316532,"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":["ens","ethereum"],"created_at":"2024-10-01T18:06:13.610Z","updated_at":"2025-04-19T15:30:20.138Z","avatar_url":"https://github.com/gskril.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ETH Leaderboard\n\nThe most followed accounts with .eth names on Twitter\n\n## Run locally\n\nCreate a PostgreSQL database with the following table:\n```sql\nCREATE TABLE \"Profile\" (\n    \"id\" text NOT NULL,\n    \"name\" text,\n    \"handle\" text,\n    \"location\" text,\n    \"description\" text,\n    \"followers\" int4,\n    \"verified\" bool,\n    \"avatar\" text,\n    \"added\" timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\n    \"updated\" timestamp(3),\n    PRIMARY KEY (\"id\")\n);\n```\n\nCreate a materialized view based on the above table:\n```sql\nCREATE MATERIALIZED VIEW eth AS (\n    SELECT \n        id,\n        name,\n        REGEXP_REPLACE(LOWER(name), '^((?![^\\s(｜|]+(.eth)).)*', '') AS ens,\n        handle,\n        location,\n        description,\n        followers,\n        verified,\n        avatar,\n        added,\n        updated,\n        rank() OVER (ORDER BY followers DESC) AS rank\n    FROM \"Profile\"\n    WHERE LOWER(name) like '%.eth%'\n);\n\nCREATE UNIQUE INDEX ON eth (id);\n```\n\nRename `.env.example` to `.env` and configure the variables:\n\n```bash\nPGDATABASE = ''\nPGPORT = ''\nPGPASSWORD = ''\nPGHOST = ''\nPGUSER = ''\n```\n\nRun the NextJS development server \n\n```bash\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgskril%2Feth-leaderboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgskril%2Feth-leaderboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgskril%2Feth-leaderboard/lists"}