+5
cmd/recordcollector/main.go
+5
cmd/recordcollector/main.go
···
37
37
var labelPrefixes = map[string]string{
38
38
// NSID prefix // Label
39
39
"app.popsky": "app-popsky",
40
+
"blue.badge": "blue-badge",
40
41
"blue.zio.atfile": "blue-zio-atfile",
41
42
"chat.roomy": "chat-roomy",
42
43
"com.shinolabs.pinksea": "com-shinolabs-pinksea",
···
49
50
"sh.tangled": "sh-tangled",
50
51
"so.sprk": "so-sprk",
51
52
"xyz.statusphere": "xyz-statusphere",
53
+
"blue.2048": "blue-twentyfortyeight",
54
+
"exchange.recipe": "exchange-recipe",
55
+
"blue.linkat": "blue-linkat",
56
+
"app.rocksky": "app-rocksky",
52
57
}
53
58
54
59
//go:embed schema.sql
+8
genlabeldefs.py
+8
genlabeldefs.py
···
16
16
'Statusphere': ('xyz-statusphere', 'atproto quick start'),
17
17
'Roomy': ('chat-roomy', 'group chat on atproto'),
18
18
'ATFile': ('blue-zio-atfile', 'store and retrieve files'),
19
+
'Blue Badge': ('blue-badge', 'badges for atproto handles'),
20
+
'2048': ('blue-twentyfortyeight', '2048 on atproto'),
21
+
'recipe.exchange': ('exchange-recipe', 'discover and share your favorite recipes'),
22
+
'Linkat': ('blue-linkat', 'link collections'),
23
+
'Rocksky': ('app-rocksky', 'decentralized music tracking and discovery platform'),
19
24
# 'name': ('ns-id', 'description'),
20
25
}
21
26
···
25
30
key_func = lambda obj: str.casefold(obj[0])
26
31
for name, (identifier, description) in sorted(collections.items(), key=key_func):
27
32
nsid = identifier.replace('-', '.')
33
+
if identifier == 'blue-twentyfortyeight':
34
+
# https://atproto.com/specs/label#recommended-string-syntax
35
+
nsid = 'blue.2048'
28
36
values.append(identifier)
29
37
defs.append(dict(
30
38
blurs = 'none',