cohost re-implementation on atprotocol

initial commit

+1
.gitignore
··· 1 + /target
+7
Cargo.lock
··· 1 + # This file is automatically @generated by Cargo. 2 + # It is not intended for manual editing. 3 + version = 3 4 + 5 + [[package]] 6 + name = "adhfhgkufard" 7 + version = "0.1.0"
+6
Cargo.toml
··· 1 + [package] 2 + name = "adhfhgkufard" 3 + version = "0.1.0" 4 + edition = "2021" 5 + 6 + [dependencies]
README.md

This is a binary file and will not be displayed.

+5
lexicons/org/athost/actor/defs.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "org.athost.actor.defs", 4 + "defs": {} 5 + }
+49
lexicons/org/athost/actor/profile.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "org.athost.actor.profile", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "description": "A declaration of an Athost account profile.", 8 + "key": "literal:self", 9 + "record": { 10 + "type": "object", 11 + "properties": { 12 + "displayName": { 13 + "type": "string", 14 + "maxGraphemes": 64, 15 + "maxLength": 640 16 + }, 17 + "description": { 18 + "type": "string", 19 + "description": "Free-form profile description text.", 20 + "maxGraphemes": 256, 21 + "maxLength": 2560 22 + }, 23 + "avatar": { 24 + "type": "blob", 25 + "description": "Small image to be displayed next to posts from account. AKA, 'profile picture'", 26 + "accept": ["image/png", "image/jpeg"], 27 + "maxSize": 1000000 28 + }, 29 + "banner": { 30 + "type": "blob", 31 + "description": "Larger horizontal image to display behind profile view.", 32 + "accept": ["image/png", "image/jpeg"], 33 + "maxSize": 1000000 34 + }, 35 + "labels": { 36 + "type": "union", 37 + "description": "Self-label values, specific to the Bluesky application, on the overall account.", 38 + "refs": ["com.atproto.label.defs#selfLabels"] 39 + }, 40 + "pinnedPost": { 41 + "type": "ref", 42 + "ref": "com.atproto.repo.strongRef" 43 + }, 44 + "createdAt": { "type": "string", "format": "datetime" } 45 + } 46 + } 47 + } 48 + } 49 + }
+32
lexicons/org/athost/feed/comment.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "org.athost.feed.comment", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "description": "A comment on a post.", 8 + "key": "tid", 9 + "record": { 10 + "type": "object", 11 + "required": ["content", "createdAt"], 12 + "properties": { 13 + "content": { 14 + "type": "string", 15 + "maxLength": 3000, 16 + "maxGraphemes": 300, 17 + "desc": "A comment on a post." 18 + }, 19 + "facets": { 20 + "type": "array", 21 + "description": "Annotations of text (mentions, URLs, hashtags, etc)", 22 + "items": { "type": "ref", "ref": "app.bsky.richtext.facet" } 23 + }, 24 + "createdAt": { 25 + "type": "string", 26 + "desc": "The timestamp when the comment was created." 27 + } 28 + } 29 + } 30 + } 31 + } 32 + }
+5
lexicons/org/athost/feed/defs.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "org.athost.feed.defs", 4 + "defs": {} 5 + }
+19
lexicons/org/athost/feed/like.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "org.athost.feed.like", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "description": "Record declaring a 'like' of a piece of subject content.", 8 + "key": "tid", 9 + "record": { 10 + "type": "object", 11 + "required": ["subject", "createdAt"], 12 + "properties": { 13 + "subject": { "type": "ref", "ref": "com.atproto.repo.strongRef" }, 14 + "createdAt": { "type": "string", "format": "datetime" } 15 + } 16 + } 17 + } 18 + } 19 + }
+53
lexicons/org/athost/feed/post.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "org.athost.feed.post", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "description": "Record containing an Athost post.", 8 + "key": "tid", 9 + "record": { 10 + "type": "object", 11 + "required": ["content", "createdAt"], 12 + "properties": { 13 + "content": { 14 + "type": "html", 15 + "maxSizeKB": 5, 16 + "description": "The primary post content. May be an empty string, if there are embeds." 17 + }, 18 + "embed": { 19 + "type": "union", 20 + "refs": ["app.bsky.embed.image", "app.bsky.embed.video"] 21 + }, 22 + "langs": { 23 + "type": "array", 24 + "description": "Indicates human language of post primary text content.", 25 + "maxLength": 3, 26 + "items": { "type": "string", "format": "language" } 27 + }, 28 + "labels": { 29 + "type": "union", 30 + "description": "Self-label values for this post. Effectively content warnings.", 31 + "refs": ["com.atproto.label.defs#selfLabels"] 32 + }, 33 + "tags": { 34 + "type": "array", 35 + "description": "Tags associated with the post.", 36 + "maxLength": 16, 37 + "items": { "type": "string", "maxLength": 640, "maxGraphemes": 64 } 38 + }, 39 + "createdAt": { 40 + "type": "string", 41 + "format": "datetime", 42 + "description": "Client-declared timestamp when this post was originally created." 43 + }, 44 + "archive": { 45 + "type": "string", 46 + "format": "datetime", 47 + "description": "Timestamp when this post was originally created if it was archived." 48 + } 49 + } 50 + } 51 + } 52 + } 53 + }
lexicons/org/athost/feed/repost.json

This is a binary file and will not be displayed.

+3
src/main.rs
··· 1 + fn main() { 2 + println!("Hello, world!"); 3 + }