~ 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
458 lines · 11.8 KB Raw History
{
	"domain": "grain.social",
	"name": "Grain",
	"look": {
		"fonts": {
			"href": "https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap",
			"sans": "\"Plus Jakarta Sans\", -apple-system, system-ui, sans-serif",
			"display": "\"Syne\", \"Plus Jakarta Sans\", sans-serif"
		},
		"light": {
			"canvas": "#eef0f5",
			"background": "#ffffff",
			"panel": "#f6f7fa",
			"soft": "#f0f2f7",
			"border": "#e2e6ef",
			"borderStrong": "#ccd3e0",
			"text": "#0d1424",
			"textMuted": "#4a5568",
			"textFaint": "#5f6a79",
			"primary": "#4a5df9",
			"onPrimary": "#ffffff",
			"accent": "#3b4ddb",
			"accentSoft": "#eef0fe",
			"danger": "#aa2318",
			"notice": "#fdf3e1",
			"onNotice": "#7d5200"
		},
		"dark": {
			"canvas": "#04060a",
			"background": "#080b12",
			"panel": "#0f1419",
			"soft": "#161d27",
			"border": "#1e293b",
			"borderStrong": "#2a3a4e",
			"text": "#e2e8f0",
			"textMuted": "#94a3b8",
			"textFaint": "#7c8ba1",
			"primary": "#4a5df9",
			"onPrimary": "#ffffff",
			"accent": "#85a1ff",
			"accentSoft": "#1a2340",
			"danger": "#f39a90",
			"notice": "#392e18",
			"onNotice": "#ecc274"
		}
	},
	"scheme": {
		"call": {
			"name": "query",
			"args": {
				"method": "social.grain.actor.getPreferences",
				"service": "did:web:grain.social#grain_appview",
				"params": {}
			}
		},
		"at": "preferences.@themePref.theme",
		"after": "social.grain.actor.setPreference"
	},
	"signIn": {
		"title": "Log in with your atmosphere account",
		"text": "[What is an atmosphere account?](https://atmosphereaccount.com/)",
		"placeholder": "e.g. user.bsky.social",
		"legal": "By signing in you agree to our [Terms](/support/terms), [Privacy Policy](/support/privacy), and [Community Guidelines](/support/community-guidelines).",
		"create": { "text": "Don't have an account?", "label": "Create one" },
		"typeahead": {
			"url": "https://typeahead.waow.tech",
			"method": "tech.waow.typeahead.searchActors",
			"param": "q",
			"params": { "limit": 5 },
			"items": "actors",
			"did": "did",
			"handle": "handle",
			"name": "displayName",
			"avatar": "avatar",
			"avatarFallback": "avatarFallback"
		}
	},
	"tabs": [
		{
			"label": "Home",
			"wordmark": "grain",
			"path": "/",
			"icon": "feed",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.feed.getFeed",
					"params": {
						"feed": "at://did:web:grain.social/social.grain.feed.generator/recent"
					}
				}
			},
			"guest": "call",
			"first": {
				"call": {
					"name": "query",
					"args": {
						"method": "social.grain.actor.getPreferences",
						"service": "did:web:grain.social#grain_appview",
						"params": {}
					}
				},
				"at": "preferences.@pinnedFeedsPref.items",
				"path": "path",
				"after": "social.grain.actor.setPreference"
			}
		},
		{
			"label": "Explore",
			"icon": "search",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.gallery.getLocations",
					"params": {}
				}
			},
			"guest": "call"
		},
		{
			"label": "Notifications",
			"icon": "notification",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.notification.listNotifications"
				}
			},
			"badge": {
				"call": {
					"name": "query",
					"args": {
						"method": "social.grain.notification.getUnreadCount",
						"params": {},
						"service": "did:web:grain.social#grain_appview"
					}
				},
				"count": "count"
			}
		},
		{
			"label": "Profile",
			"icon": "people",
			"call": {
				"name": "describe_app",
				"args": {
					"domain": "grain.social",
					"actor": "me"
				}
			}
		}
	],
	"routes": [
		{
			"path": "/feeds/recent",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.feed.getFeed",
					"params": {
						"feed": "at://did:web:grain.social/social.grain.feed.generator/recent"
					}
				}
			}
		},
		{
			"path": "/feeds/following",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.feed.getFeed",
					"params": {
						"feed": "at://did:web:grain.social/social.grain.feed.generator/following"
					}
				}
			}
		},
		{
			"path": "/feeds/for-you",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.feed.getFeed",
					"params": {
						"feed": "at://did:web:grain.social/social.grain.feed.generator/foryou"
					}
				}
			}
		},
		{
			"path": "/hashtags/{tag}",
			"tab": "Explore",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.feed.getFeed",
					"params": {
						"feed": "at://did:web:grain.social/social.grain.feed.generator/hashtag",
						"tag": "{tag}"
					}
				}
			}
		},
		{
			"path": "/camera/{name}",
			"tab": "Explore",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.feed.getFeed",
					"params": {
						"feed": "at://did:web:grain.social/social.grain.feed.generator/camera",
						"camera": "{name}"
					}
				}
			}
		},
		{
			"path": "/location/{h3}?name={name}",
			"tab": "Explore",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.feed.getFeed",
					"params": {
						"feed": "at://did:web:grain.social/social.grain.feed.generator/location",
						"location": "{h3}",
						"name": "{name}"
					}
				}
			}
		},
		{
			"path": "/locations",
			"tab": "Explore",
			"call": {
				"name": "query",
				"args": { "method": "social.grain.gallery.getLocations", "params": { "pins": true } }
			}
		},
		{
			"path": "/cameras",
			"tab": "Explore",
			"call": {
				"name": "query",
				"args": { "method": "social.grain.gallery.getCameras", "params": {} }
			}
		},
		{
			"path": "/explore",
			"call": {
				"name": "query",
				"args": { "method": "social.grain.gallery.getLocations", "params": {} }
			}
		},
		{
			"path": "/notifications",
			"call": {
				"name": "query",
				"args": { "method": "social.grain.notification.listNotifications" }
			}
		},
		{
			"path": "/search?q={q}&tab=people",
			"tab": "Explore",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.actor.searchActors",
					"params": { "q": "{q}" }
				}
			}
		},
		{
			"path": "/search?q={q}",
			"tab": "Explore",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.gallery.searchGalleries",
					"params": { "q": "{q}" }
				}
			}
		},
		{
			"path": "/settings",
			"call": {
				"name": "query",
				"args": { "method": "social.grain.actor.getPreferences" }
			}
		},
		{
			"path": "/settings/moderation/muted",
			"call": {
				"name": "query",
				"args": { "method": "social.grain.graph.getMutes" }
			}
		},
		{
			"path": "/settings/moderation/blocked",
			"call": {
				"name": "query",
				"args": { "method": "social.grain.graph.getBlocks" }
			}
		},
		{
			"path": "/profile/{actor}/followers",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.graph.getFollowers",
					"params": { "actor": "{actor}" }
				}
			}
		},
		{
			"path": "/profile/{actor}/following",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.graph.getFollowing",
					"params": { "actor": "{actor}" }
				}
			}
		},
		{
			"path": "/profile/{actor}/known-followers",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.graph.getKnownFollowers",
					"params": { "actor": "{actor}" }
				}
			}
		},
		{
			"path": "/profile/{actor}/gallery/{rkey}",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.gallery.getGallery",
					"params": { "gallery": "at://{actor}/social.grain.gallery/{rkey}" }
				}
			}
		},
		{
			"path": "/profile/{actor}/gallery/{rkey}",
			"call": {
				"name": "get_record",
				"args": { "uri": "at://{actor}/social.grain.gallery/{rkey}" }
			}
		},
		{
			"path": "/profile/{actor}/story/{rkey}",
			"call": {
				"name": "query",
				"args": {
					"method": "social.grain.story.getArchive",
					"params": { "actor": "{actor:did}" },
					"at": "at://{actor:did}/social.grain.story/{rkey}"
				}
			}
		},
		{
			"path": "/profile/{actor}",
			"call": {
				"name": "describe_app",
				"args": { "domain": "grain.social", "actor": "{actor}" }
			}
		}
	],
	"head": {
		"siteName": "Grain",
		"title": "Grain: photo sharing on the AT Protocol",
		"description": "Grain is a photo sharing app built on the AT Protocol. Share galleries, follow photographers, and own your data.",
		"image": "https://grain.social/og-default.jpg",
		"imageAlt": "Grain: photo sharing on the AT Protocol"
	},
	"refresh": {
		"method": "social.grain.sync.indexRecords",
		"service": "did:web:grain.social#grain_appview"
	},
	"permissions": [
		{
			"include": "social.grain.authFull",
			"service": "did:web:grain.social#grain_appview"
		}
	],
	"push": {
		"register": {
			"method": "social.grain.notification.registerPush",
			"service": "did:web:grain.social#grain_appview",
			"input": {
				"serviceDid": "did:web:grain.social",
				"token": { "$token": true },
				"platform": { "$platform": true },
				"appId": { "$appId": true }
			}
		},
		"unregister": {
			"method": "social.grain.notification.unregisterPush",
			"service": "did:web:grain.social#grain_appview",
			"input": {
				"serviceDid": "did:web:grain.social",
				"token": { "$token": true },
				"platform": { "$platform": true },
				"appId": { "$appId": true }
			}
		},
		"open": [
			{
				"when": { "uri": "at://{actor}/social.grain.gallery/{rkey}" },
				"path": "/profile/{actor}/gallery/{rkey}"
			},
			{
				"when": { "uri": "at://{actor}/social.grain.story/{rkey}" },
				"path": "/profile/{actor}/story/{rkey}"
			},
			{ "when": { "did": "{actor}" }, "path": "/profile/{actor}" }
		]
	},
	"frame": {
		"destinations": "tabs",
		"action": {
			"label": "Create",
			"icon": "imagePlus",
			"call": { "name": "query", "args": { "method": "social.grain.feed.getFeed", "params": { "feed": "at://did:web:grain.social/social.grain.feed.generator/foryou" }, "compose": "New gallery" } }
		},
		"account": {
			"picture": {
				"tab": "Profile",
				"call": { "name": "query", "args": { "method": "social.grain.actor.getProfile", "service": "did:web:grain.social#grain_appview", "params": { "actor": "me" } } },
				"at": "avatar"
			},
			"items": [
				{ "label": "Settings", "icon": "settings", "call": { "name": "query", "args": { "method": "social.grain.actor.getPreferences" } } },
				{ "host": "signOut", "label": "Log out", "icon": "logOut" },
				{ "host": "signIn", "label": "Sign in", "icon": "logIn", "about": "Share your photography" }
			]
		},
		"links": [
			{ "label": "Terms", "href": "/support/terms" },
			{ "label": "Privacy", "href": "/support/privacy" },
			{ "label": "Copyright", "href": "/support/copyright" },
			{ "label": "Guidelines", "href": "/support/community-guidelines" },
			{ "label": "Child Safety", "href": "/support/child-safety" },
			{ "label": "AT Protocol", "href": "https://atproto.com" }
		],
		"sizes": { "content": 600, "wide": 935 }
	},
	"pages": [
		{ "path": "/support/terms", "title": "Terms and Conditions", "description": "The terms of using Grain, the photo sharing app built on the AT Protocol.", "markdown": "pages/terms.md" },
		{ "path": "/support/privacy", "title": "Privacy Policy", "description": "What Grain stores, what is public on the AT Protocol, and how location and EXIF data are handled.", "markdown": "pages/privacy.md" },
		{ "path": "/support/copyright", "title": "Copyright Policy", "description": "How to report content on Grain that infringes your copyright, and how Grain responds.", "markdown": "pages/copyright.md" },
		{ "path": "/support/community-guidelines", "title": "Community Guidelines", "description": "What Grain is for, what's not allowed on it, and how to report violations.", "markdown": "pages/community-guidelines.md" },
		{ "path": "/support/child-safety", "title": "Child Safety Standards", "description": "Grain's zero tolerance for child sexual abuse and exploitation: what's prohibited, how to report it and how Grain responds.", "markdown": "pages/child-safety.md" }
	]
}