{"id":15022976,"url":"https://github.com/willin/fediverse-alias","last_synced_at":"2025-10-25T02:30:58.642Z","repository":{"id":213711349,"uuid":"734747506","full_name":"willin/fediverse-alias","owner":"willin","description":"A Fediverse Alias Service for Cloudflare Workers Routes","archived":false,"fork":false,"pushed_at":"2023-12-23T09:22:37.000Z","size":25,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T18:44:21.474Z","etag":null,"topics":["activitypub","alias","cloudflare","domain","fediverse","mastodon","routes","webfinger","workers"],"latest_commit_sha":null,"homepage":"https://alias.willin.wang/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willin.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},"funding":{"github":"willin","custom":"https://afdian.net/@willin"}},"created_at":"2023-12-22T14:00:32.000Z","updated_at":"2024-05-31T01:14:03.000Z","dependencies_parsed_at":"2023-12-22T15:59:11.131Z","dependency_job_id":"eaa8d7a7-49e3-4bd6-8dc7-39139d08d63c","html_url":"https://github.com/willin/fediverse-alias","commit_stats":null,"previous_names":["willin/fediverse-alias"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Ffediverse-alias","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Ffediverse-alias/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Ffediverse-alias/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Ffediverse-alias/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willin","download_url":"https://codeload.github.com/willin/fediverse-alias/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238065140,"owners_count":19410587,"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":["activitypub","alias","cloudflare","domain","fediverse","mastodon","routes","webfinger","workers"],"created_at":"2024-09-24T19:58:35.891Z","updated_at":"2025-10-25T02:30:58.268Z","avatar_url":"https://github.com/willin.png","language":"TypeScript","readme":"# Fediverse Aliases Service\n\n## Useage\n\n### Step 1: Init\n\nFork/Clone this repo:\n\n```\ngit clone https://github.com/willin/fediverse-alias.git\n```\n\n### Step 2: Config\n\n- Change Domain Routes\n- Change Database ID\n\nEdit `wrangler.toml`:\n\n```toml\nname = \"fediverse-alias\"\ncompatibility_date = \"2023-01-01\"\n\n# change these to your own domain\nroutes = [\n  { pattern = \"log.lu/.well-known/webfinger*\", zone_name = \"log.lu\" },\n  { pattern = \"js.cool/.well-known/webfinger*\", zone_name = \"js.cool\" },\n  { pattern = \"v0.chat/.well-known/webfinger*\", zone_name = \"v0.chat\" },\n  { pattern = \"xn--wkua.xn--6qq986b3xl/.well-known/webfinger*\", zone_name = \"xn--wkua.xn--6qq986b3xl\" },\n  { pattern = \"sh.gg/.well-known/webfinger*\", zone_name = \"sh.gg\" },\n  { pattern = \"css.fund/.well-known/webfinger*\", zone_name = \"css.fund\" },\n  { pattern = \"kaiyuan.fund/.well-known/webfinger*\", zone_name = \"kaiyuan.fund\" },\n  { pattern = \"v0.md/.well-known/webfinger*\", zone_name = \"v0.md\" },\n  { pattern = \"willin.org/.well-known/webfinger*\", zone_name = \"willin.org\" },\n  { pattern = \"willin.wang/.well-known/webfinger*\", zone_name = \"willin.wang\" }\n]\n\n[[d1_databases]]\nbinding = \"DB\"\ndatabase_name = \"dns\"\n# change database_id into yours\ndatabase_id = \"20204091-f55f-430d-a100-2292d8ea305a\"\n```\n\n- Init seed data\n\nEdit `migrations/0011_seeds.sql`:\n\n```sql\n-- Here is an example\nINSERT INTO aliases(`alias`,`account`,`owner`) VALUES('i@v0.md','willin@log.lu','');\nINSERT INTO aliases(`alias`,`account`,`owner`) VALUES('i@sh.gg','willin@log.lu','');\nINSERT INTO aliases(`alias`,`account`,`owner`) VALUES('i@js.cool','willin@log.lu','');\n```\n\n### Step 3: Deploy\n\n```bash\nnpm run deploy\nnpm run migration\n```\n\n## 赞助 Sponsor\n\n如果您对本项目感兴趣，可以通过以下方式支持我：\n\n- 关注我的 Github 账号：[@willin](https://github.com/willin) [![github](https://img.shields.io/github/followers/willin.svg?style=social\u0026label=Followers)](https://github.com/willin)\n- 参与 [爱发电](https://afdian.net/@willin) 计划\n- 支付宝或微信[扫码打赏](https://user-images.githubusercontent.com/1890238/89126156-0f3eeb80-d516-11ea-9046-5a3a5d59b86b.png)\n\nDonation ways:\n\n- Github: \u003chttps://github.com/sponsors/willin\u003e\n- Paypal: \u003chttps://paypal.me/willinwang\u003e\n- Alipay or Wechat Pay: [QRCode](https://user-images.githubusercontent.com/1890238/89126156-0f3eeb80-d516-11ea-9046-5a3a5d59b86b.png)\n\n## 许可证 License\n\nApache-2.0\n","funding_links":["https://github.com/sponsors/willin","https://afdian.net/@willin","https://paypal.me/willinwang"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Ffediverse-alias","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillin%2Ffediverse-alias","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Ffediverse-alias/lists"}