Skip to content

Commit

Permalink
chore: forgot about bsky.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-ext committed Oct 19, 2024
1 parent b435497 commit a0d5edb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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 |
<!-- bsky-labeler-end -->

### Third-party labelers
Expand Down Expand Up @@ -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 |
Expand Down
10 changes: 7 additions & 3 deletions scripts/generate-markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand All @@ -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`;
Expand Down Expand Up @@ -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++;
Expand Down Expand Up @@ -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);
}
}

0 comments on commit a0d5edb

Please sign in to comment.