diff --git a/README.md b/README.md index e92ff58..b7530f2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Scraped AT Protocol instances -Last updated: 2024-10-19T07:35:36.133Z[^1] +Last updated: 2024-10-19T07:40:54.665Z[^1] Found by enumerating plc.directory and bsky.network, some instances might not be part of mainnet. @@ -598,6 +598,7 @@ Instances that have not been active for more than 7 days gets dropped off from t | ✅ mod-br.bsky.app | git-60df3fc | | ✅ mod-de.bsky.app | git-60df3fc | | ✅ mod.bsky.app | git-60df3fc | +| ✅ mod.staging.bsky.dev | git-60df3fc | ### Third-party labelers @@ -635,7 +636,6 @@ Instances that have not been active for more than 7 days gets dropped off from t | ✅ mod.armifi.com | 0.1.38 | | ✅ mod.blackskyweb.xyz | 0.1.38 | | ✅ mod.laelaps.fyi | 0.1.38 | -| ✅ mod.staging.bsky.dev | git-60df3fc | | ❌ mod.zio.blue | ??? | | ✅ ozone.anon5r.com | 0.1.42 | | ✅ ozone.asukafield.xyz | 0.1.38 | diff --git a/scripts/generate-markdown.ts b/scripts/generate-markdown.ts index 3aabc84..82ed864 100644 --- a/scripts/generate-markdown.ts +++ b/scripts/generate-markdown.ts @@ -98,7 +98,7 @@ Instances that have not been active for more than 7 days gets dropped off from t const v = version || (version === null ? 'N/A' : '???'); const invites = inviteCodeRequired === false ? 'Yes' : 'No'; - if (host === 'bsky.social' || host.endsWith('.host.bsky.network')) { + if (isBlueskyHost(host)) { pdsBskyTable += `| ${on} ${host} | ${invites} | ${v} |\n`; } else { pds3pTable += `| ${on} ${host} | ${invites} | ${v} |\n`; @@ -113,7 +113,7 @@ Instances that have not been active for more than 7 days gets dropped off from t const on = errorAt === undefined ? '✅' : '❌'; const v = version || (version === null ? 'N/A' : '???'); - if (host.endsWith('.bsky.app')) { + if (isBlueskyHost(host)) { labelerBskyTable += `| ${on} ${host} | ${v} |\n`; } else { labeler3pTable += `| ${on} ${host} | ${v} |\n`; @@ -178,7 +178,7 @@ Instances that have not been active for more than 7 days gets dropped off from t offlineCount++; } - if (host.endsWith('.host.bsky.network')) { + if (isBlueskyHost(host)) { blueskyHostedCount++; } else { nonBlueskyHostedCount++; @@ -217,4 +217,8 @@ Instances that have not been active for more than 7 days gets dropped off from t `**${offlineCount}** offline` ); } + + function isBlueskyHost(host: string): boolean { + return /(?:^|\.)(?:bsky\.network|bsky\.app|bsky\.dev|bsky\.social)$/.test(host); + } }