chadtmiller.com/hud
A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts
place.hud.hudkit 0.5.0 Latest 5 packages
0
0
{
"about": "What each copy of the marking rule marks in a text: crates/hud-core/src/richtext.rs, web/renderer/src/tree/compose/text.ts, HUDKit's Compose.swift and the Android kit's Compose.kt, whose tests all read this table. Each mark is the text it covers, its kind and its value (a link's URL, a mention's handle, a tag), and, for the server, which counts by UTF-8 bytes, where it starts.",
"cases": [
{ "text": "grain.social", "marks": [{ "text": "grain.social", "kind": "link", "value": "https://grain.social", "byteStart": 0 }] },
{ "text": "see grain.social/x.", "marks": [{ "text": "grain.social/x", "kind": "link", "value": "https://grain.social/x", "byteStart": 4 }] },
{ "text": "(knotless.dev)", "marks": [{ "text": "knotless.dev", "kind": "link", "value": "https://knotless.dev", "byteStart": 1 }] },
{ "text": "@grain.social", "marks": [{ "text": "@grain.social", "kind": "mention", "value": "grain.social", "byteStart": 0 }] },
{ "text": "a@b.com", "marks": [] },
{ "text": "node.js", "marks": [] },
{ "text": "v1.2.3", "marks": [] },
{ "text": "e.g. this", "marks": [] },
{ "text": "example.co.uk/path?q=1", "marks": [{ "text": "example.co.uk/path?q=1", "kind": "link", "value": "https://example.co.uk/path?q=1", "byteStart": 0 }] },
{ "text": "Grain.Social", "marks": [{ "text": "Grain.Social", "kind": "link", "value": "https://Grain.Social", "byteStart": 0 }] },
{ "text": "-a.com a-.com a..com .com com", "marks": [] },
{ "text": "héllo 🌄 grain.social", "marks": [{ "text": "grain.social", "kind": "link", "value": "https://grain.social", "byteStart": 12 }] },
{
"text": "héllo @Alice.test (see https://a.example/x?y=1). #atproto #2026 @nope # #日本 #a#b http://localhost",
"marks": [
{ "text": "@Alice.test", "kind": "mention", "value": "alice.test", "byteStart": 7 },
{ "text": "https://a.example/x?y=1", "kind": "link", "value": "https://a.example/x?y=1", "byteStart": 24 },
{ "text": "#atproto", "kind": "tag", "value": "atproto", "byteStart": 50 },
{ "text": "#日本", "kind": "tag", "value": "日本", "byteStart": 73 }
]
},
{ "text": "plain words, http://localhost and ftp://a.example", "marks": [] }
]
}