~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0
154 lines · 2.8 KB Raw History
{
	"$type": "place.hud.view",
	"method": "dev.knotless.getActorStars",
	"app": "knotless",
	"service": "did:web:knotless.dev#knotless_appview",
	"description": "The repositories an account starred, the latest first (params: { actor: a handle or DID })",
	"records": [{ "collection": "dev.knotless.star", "params": { "actor": { "$": "did" } } }],
	"origins": [
		"https://cdn.bsky.app",
		"https://knotless.dev"
	],
	"thumbnails": [
		{
			"from": "https://cdn.bsky.app/img/avatar/plain/",
			"to": "https://cdn.bsky.app/img/avatar_thumbnail/plain/"
		}
	],
	"query": {
		"items": "repos",
		"summary": {
			"noun": [
				"starred repository",
				"starred repositories"
			],
			"label": {
				"$": "name"
			}
		},
		"layout": {
			"component": "List",
			"props": {
				"items": {
					"$": "items"
				},
				"style": "rows",
				"empty": "No starred repositories yet",
				"open": {
					"query": "dev.knotless.getRepo",
					"params": {
						"repo": {
							"$": "uri"
						}
					}
				}
			},
			"children": [
				{
					"component": "Row",
					"props": {
						"gap": "sm",
						"align": "center"
					},
					"children": [
						{
							"component": "Image",
							"props": {
								"src": {
									"$": "owner.avatar"
								},
								"alt": {
									"$": "owner.handle"
								},
								"size": "avatar"
							}
						},
						{
							"component": "Stack",
							"props": {
								"gap": "sm"
							},
							"children": [
								{
									"component": "Row",
									"props": {
										"gap": "xs",
										"align": "center"
									},
									"children": [
										{
											"component": "Text",
											"props": {
												"value": {
													"$": "owner.handle"
												},
												"style": "muted"
											}
										},
										{
											"component": "Text",
											"props": {
												"value": {
													"$": "name"
												},
												"style": "strong"
											}
										}
									]
								},
								{
									"component": "Text",
									"props": {
										"value": {
											"$": "description"
										},
										"style": "muted",
										"clamp": 1
									}
								}
							]
						}
					]
				},
				{
					"component": "Row",
					"props": {
						"gap": "md",
						"align": "center"
					},
					"children": [
						{
							"component": "Text",
							"props": {
								"value": {
									"$": "language.name"
								},
								"style": "muted"
							}
						},
						{
							"component": "Stat",
							"props": {
								"value": {
									"$": "starCount"
								},
								"icon": "star",
								"label": "stars"
							}
						},
						{
							"component": "Stat",
							"props": {
								"value": {
									"$": "forkCount"
								},
								"icon": "fork",
								"label": "forks"
							}
						}
					]
				}
			]
		}
	}
}