{ "$type": "place.hud.view", "app": "Bluesky", "description": "Bluesky's page for an account: their profile, posts and the feeds they made, as Bluesky's app shows a profile; one's own adds where to go in Bluesky", "domain": "bsky.app", "service": "did:web:api.bsky.app#bsky_appview", "origins": [ "https://cdn.bsky.app", "https://video.bsky.app", "https://video.cdn.bsky.app" ], "thumbnails": [ { "from": "https://cdn.bsky.app/img/avatar/plain/", "to": "https://cdn.bsky.app/img/avatar_thumbnail/plain/" } ], "page": { "tag": { "query": "app.bsky.feed.searchPosts", "params": { "q": { "$": "hashtag" }, "sort": "latest" } }, "join": [ { "as": "profile", "query": "app.bsky.actor.getProfile", "params": { "actor": { "$": "actor.did" } }, "say": { "noun": [ "post", "posts" ], "count": "postsCount" } }, { "as": "posts", "query": "app.bsky.feed.getAuthorFeed", "params": { "actor": { "$": "actor.did" }, "filter": "posts_and_author_threads", "limit": 10 }, "say": { "noun": [ "recent post", "recent posts" ], "count": "feed" } }, { "as": "feeds", "query": "app.bsky.feed.getActorFeeds", "params": { "actor": { "$": "actor.did" }, "limit": 10 }, "say": { "noun": [ "feed", "feeds" ], "count": "feeds" } } ], "layout": { "component": "Stack", "props": { "gap": "md" }, "children": [ { "component": "Profile", "props": { "name": { "$": [ "joins.profile.displayName", "joins.profile.handle" ] }, "handle": { "$": "joins.profile.handle" }, "avatar": { "$": "joins.profile.avatar" }, "banner": { "$": "joins.profile.banner" }, "description": { "$": "joins.profile.description" } } }, { "component": "Row", "props": { "gap": "md", "align": "center" }, "children": [ { "component": "Row", "props": { "gap": "xs", "align": "center" }, "children": [ { "component": "Text", "props": { "value": { "$": "joins.profile.followersCount" }, "style": "strong" } }, { "component": "Text", "props": { "value": "followers", "style": "muted" } } ] }, { "component": "Row", "props": { "gap": "xs", "align": "center" }, "children": [ { "component": "Text", "props": { "value": { "$": "joins.profile.followsCount" }, "style": "strong" } }, { "component": "Text", "props": { "value": "following", "style": "muted" } } ] }, { "component": "Row", "props": { "gap": "xs", "align": "center" }, "children": [ { "component": "Text", "props": { "value": { "$": "joins.profile.postsCount" }, "style": "strong" } }, { "component": "Text", "props": { "value": "posts", "style": "muted" } } ] } ] }, { "component": "Stack", "props": { "mine": "actor.did" }, "children": [ {"component": "Compose", "props": {"label": "New post", "icon": "plus", "send": "Post", "fields": [{"name": "text", "kind": "text", "placeholder": "What's up?", "max": 300, "facets": true, "suggest": {"method": "app.bsky.actor.searchActorsTypeahead", "service": "did:web:api.bsky.app#bsky_appview", "param": "q", "params": {"limit": 8}, "items": "actors", "did": "did", "handle": "handle", "name": "displayName", "avatar": "avatar"}, "required": true}, {"name": "photos", "kind": "photos", "label": "Images", "min": 0, "max": 4, "alt": true, "maxBytes": 1000000, "maxSide": 2000}, {"name": "card", "kind": "card", "from": "text"}, {"name": "langs", "kind": "langs", "label": "Language", "max": 3}, {"name": "labels", "kind": "labels", "label": "Content warning", "options": [{"value": "sexual", "label": "Suggestive"}, {"value": "nudity", "label": "Nudity"}, {"value": "porn", "label": "Porn"}, {"value": "graphic-media", "label": "Graphic media"}]}, {"name": "gate", "kind": "choice", "label": "Who can reply", "multiple": true, "options": [{"label": "Everybody", "value": null, "only": true}, {"label": "Nobody", "value": [], "only": true}, {"label": "Mentioned", "value": [{"$type": "app.bsky.feed.threadgate#mentionRule"}]}, {"label": "Following", "value": [{"$type": "app.bsky.feed.threadgate#followingRule"}]}, {"label": "Followers", "value": [{"$type": "app.bsky.feed.threadgate#followerRule"}]}]}], "writes": [{"as": "post", "collection": "app.bsky.feed.post", "record": {"text": {"$value": "text"}, "facets": {"$facets": "text"}, "langs": {"$value": "langs"}, "labels": {"$when": ["labels"], "value": {"$type": "com.atproto.label.defs#selfLabels", "values": {"$each": "labels", "value": {"val": {"$item": "."}}}}}, "embed": {"$first": [{"$when": ["photos"], "value": {"$type": "app.bsky.embed.images", "images": {"$each": "photos", "value": {"image": {"$item": "blob"}, "alt": {"$item": "alt"}, "aspectRatio": {"$item": "aspectRatio"}}}}}, {"$when": ["card"], "value": {"$type": "app.bsky.embed.external", "external": {"$value": "card"}}}]}, "createdAt": {"$now": true}}}, {"when": ["gate"], "rkey": {"$rkey": "post"}, "collection": "app.bsky.feed.threadgate", "record": {"post": {"$uri": "post"}, "allow": {"$value": "gate"}, "createdAt": {"$now": true}}}]}}, { "component": "List", "props": { "style": "inline", "items": [ { "label": "Following", "open": { "query": "app.bsky.feed.getTimeline", "params": {} } }, { "label": "Discover", "open": { "query": "app.bsky.feed.getFeed", "params": { "feed": "at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.generator/whats-hot" } } }, { "label": "Saved feeds", "open": { "query": "app.bsky.feed.getFeedGenerators", "params": { "feeds": "saved" } } }, { "label": "Notifications", "open": { "query": "app.bsky.notification.listNotifications", "params": { "limit": 25 } } } ] }, "children": [ { "component": "Badge", "props": { "value": { "$": "label" } } } ] } ] }, { "component": "List", "props": { "items": { "$": "joins.posts.feed" }, "title": "Posts", "empty": "No posts yet", "style": "rows", "open": { "query": "app.bsky.feed.getPostThread", "params": { "uri": { "$": "post.uri" } } } }, "children": [ { "component": "FeedContext", "props": { "item": { "$": "." }, "open": { "query": "app.bsky.feed.getPostThread", "params": { "uri": { "$": "post.uri" } } } }, "children": [ { "component": "Row", "props": { "gap": "sm", "align": "start" }, "children": [ { "component": "Image", "props": { "src": { "$": "post.author.avatar" }, "alt": { "$": "post.author.handle" }, "size": "face" } }, { "component": "Stack", "props": { "gap": "sm" }, "children": [ { "component": "Row", "props": { "gap": "xs", "align": "center", "wrap": "cut" }, "children": [ { "component": "Link", "props": { "href": { "$": "post.author.did" }, "label": { "$": [ "post.author.displayName", "post.author.handle" ] } } }, { "component": "Text", "props": { "value": { "$": "post.author.handle" }, "style": "muted", "prefix": "@" } }, { "component": "Text", "props": { "value": "·", "style": "muted" } }, { "component": "Time", "props": { "value": { "$": "post.record.createdAt" } } } ] }, { "component": "RichText", "props": { "value": { "$": "post.record.text" }, "format": "facets", "facets": { "$": "post.record.facets" } } }, { "component": "Embed", "props": { "value": { "$": "post.embed" }, "did": { "$": "post.author.did" }, "uri": { "$": "post.uri" } } }, { "component": "Row", "props": { "gap": "lg", "align": "center" }, "children": [ { "component": "Stat", "props": { "value": { "$": "post.replyCount" }, "icon": "reply", "label": "replies" } }, { "component": "Action", "props": { "label": "Repost", "icon": "repost", "count": { "$": "post.repostCount" }, "done": "Reposted", "create": { "collection": "app.bsky.feed.repost", "record": { "subject": { "$strongRef": "post" }, "createdAt": { "$now": true } } }, "existing": { "$": "post.viewer.repost" } } }, { "component": "Action", "props": { "label": "Like", "icon": "heart", "count": { "$": "post.likeCount" }, "done": "Liked", "create": { "collection": "app.bsky.feed.like", "record": { "subject": { "$strongRef": "post" }, "createdAt": { "$now": true } } }, "existing": { "$": "post.viewer.like" } } } ] } ] } ] } ] }, { "component": "Row", "props": { "gap": "sm", "align": "start" }, "children": [ { "component": "Image", "props": { "src": { "$": "post.author.avatar" }, "alt": { "$": "post.author.handle" }, "size": "face" } }, { "component": "Stack", "props": { "gap": "sm" }, "children": [ { "component": "Row", "props": { "gap": "xs", "align": "center", "wrap": "cut" }, "children": [ { "component": "Link", "props": { "href": { "$": "post.author.did" }, "label": { "$": [ "post.author.displayName", "post.author.handle" ] } } }, { "component": "Text", "props": { "value": { "$": "post.author.handle" }, "style": "muted", "prefix": "@" } }, { "component": "Text", "props": { "value": "·", "style": "muted" } }, { "component": "Time", "props": { "value": { "$": "post.record.createdAt" } } } ] }, { "component": "FeedContext", "props": { "item": { "$": "." }, "part": "replyTo", "open": { "query": "app.bsky.feed.getPostThread", "params": { "uri": { "$": "post.uri" } } } } }, { "component": "RichText", "props": { "value": { "$": "post.record.text" }, "format": "facets", "facets": { "$": "post.record.facets" } } }, { "component": "Embed", "props": { "value": { "$": "post.embed" }, "did": { "$": "post.author.did" }, "uri": { "$": "post.uri" } } }, { "component": "Row", "props": { "gap": "lg", "align": "center" }, "children": [ { "component": "Stat", "props": { "value": { "$": "post.replyCount" }, "icon": "reply", "label": "replies" } }, { "component": "Action", "props": { "label": "Repost", "icon": "repost", "count": { "$": "post.repostCount" }, "done": "Reposted", "create": { "collection": "app.bsky.feed.repost", "record": { "subject": { "$strongRef": "post" }, "createdAt": { "$now": true } } }, "existing": { "$": "post.viewer.repost" } } }, { "component": "Action", "props": { "label": "Like", "icon": "heart", "count": { "$": "post.likeCount" }, "done": "Liked", "create": { "collection": "app.bsky.feed.like", "record": { "subject": { "$strongRef": "post" }, "createdAt": { "$now": true } } }, "existing": { "$": "post.viewer.like" } } } ] } ] } ] } ] }, { "component": "Row", "props": { "gap": "md", "align": "center" }, "children": [ { "component": "Link", "props": { "label": "All posts", "open": { "query": "app.bsky.feed.getAuthorFeed", "params": { "actor": { "$": "actor.did" }, "filter": "posts_and_author_threads" } } } }, { "component": "Link", "props": { "label": "Replies", "open": { "query": "app.bsky.feed.getAuthorFeed", "params": { "actor": { "$": "actor.did" }, "filter": "posts_with_replies" } } } }, { "component": "Link", "props": { "label": "Media", "open": { "query": "app.bsky.feed.getAuthorFeed", "params": { "actor": { "$": "actor.did" }, "filter": "posts_with_media" } } } }, { "component": "Link", "props": { "label": "Videos", "open": { "query": "app.bsky.feed.getAuthorFeed", "params": { "actor": { "$": "actor.did" }, "filter": "posts_with_video" } } } } ] }, { "component": "List", "props": { "items": { "$": "joins.feeds.feeds" }, "title": "Feeds", "style": "rows", "open": { "query": "app.bsky.feed.getFeed", "params": { "feed": { "$": "uri" } } } }, "children": [ { "component": "Row", "props": { "gap": "sm", "align": "center" }, "children": [ { "component": "Image", "props": { "src": { "$": "avatar" }, "alt": { "$": "displayName" }, "size": "avatar" } }, { "component": "Text", "props": { "value": { "$": "displayName" }, "style": "strong" } }, { "component": "Stat", "props": { "value": { "$": "likeCount" }, "icon": "heart", "label": "likes" } } ] }, { "component": "RichText", "props": { "value": { "$": "description" }, "format": "facets", "facets": { "$": "descriptionFacets" }, "style": "muted", "clamp": 2 } } ] } ] } } }