this repo has no description
1#!/usr/bin/env python3
2
3import json
4
5collections = {
6 'Popfeed': ('social-popfeed', 'pop culture hub'),
7 'PinkSea': ('com-shinolabs-pinksea', 'oekaki on atproto'),
8 'WhiteWind': ('com-whtwnd', 'markdown blog service'),
9 'Smoke Signal': ('events-smokesignal', 'manage events and RSVPs'),
10 'teal.fm': ('fm-teal', 'your music, beautifully tracked'),
11 'Frontpage': ('fyi-unravel-frontpage', 'a decentralised and federated link aggregator'),
12 'Flushes': ('im-flushing', 'The Decentralized Toilet Network of Planet Earth & Simulation 12B'),
13 'Streamplace': ('place-stream', 'live video on the AT Protocol'),
14 'Tangled': ('sh-tangled', 'tightly-knit social coding'),
15 'Spark': ('so-sprk', 'short-form video/photo app'),
16 'Statusphere': ('xyz-statusphere', 'atproto quick start'),
17 'Roomy': ('space-roomy', 'group chat on atproto'),
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'),
24 'Leaflet': ('pub-leaflet', 'social publishing / blogging'),
25 'Wamellow': ('com-wamellow', 'bluesky to discord notifications'),
26 'Grain': ('social-grain', 'a photo sharing platform'),
27 'Anisota': ('net-anisota', 'a new, experimental way to use social media'),
28 'BookHive': ('buzz-bookhive', 'manage, organize, and review your books anywhere'),
29 'Woosh': ('link-woosh', 'effortlessly share everything you create, curate, and sell'),
30 'Snowpost': ('st-snowpo', 'a simple, minimalist writing platform'),
31 'Skylights': ('my-skylights', 'a simple, minimalist writing platform'),
32 'Status': ('io-zzstoatzz-status', 'a personal status tracker built on at protocol'),
33 'Yōten': ('app-yoten', 'a social tracker for your language learning journey'),
34 'Flashes': ('blue-flashes', 'a photo viewing client for u'),
35 'at://work': ('place-atwork', 'Your Career. Your Data. Your Place.'),
36 'Monomarks': ('at-monomarks', 'a place for sharing and discovering interesting links'),
37 'Wafrn': ('net-wafrn', 'a federated social media inspired by Tumblr'),
38 'Nooki': ('community-nooki', 'a federated social media inspired by Tumblr'),
39 'xcvr': ('org-xcvr', 'hyper-real-time communication on atproto'),
40 'Lanyards': ('app-lanyards', 'one link to make your research life easier to share'),
41 'Thought Stream': ('stream-thought', 'an experimental real-time, global, multi-agent communication system with optional human participation'),
42 'plyr.fm': ('fm-plyr', 'music on atproto'),
43 'Sidetrail': ('app-sidetrail', 'a little app for sharing "trails"'),
44 'Anchor': ('app-dropanchor', 'an experiment in geolocation on the AT protocol'),
45 'ATProtoFans': ('com-atprotofans', 'Connecting Fans and Creators'),
46 # 'name': ('nsid-with-dashes', 'description'),
47}
48
49values = []
50defs = []
51
52key_func = lambda obj: str.casefold(obj[0])
53for name, (identifier, description) in sorted(collections.items(), key=key_func):
54 nsid = identifier.replace('-', '.')
55 if identifier == 'blue-twentyfortyeight':
56 # https://atproto.com/specs/label#recommended-string-syntax
57 nsid = 'blue.2048'
58 values.append(identifier)
59 defs.append(dict(
60 blurs = 'none',
61 severity = 'inform',
62 adultOnly = False,
63 identifier = identifier,
64 defaultSetting = 'warn',
65 locales = [dict(
66 lang = 'en',
67 name = name,
68 description = f'{description} ({nsid}.*)',
69 )],
70 ))
71
72doc = {
73 'labelValues': values,
74 'labelValueDefinitions': defs,
75}
76
77print(json.dumps(doc))