chadtmiller.com/hud
A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts
place.hud.hudkit 0.3.1 Latest 5 packages
0
0
// Whose clock, locale and time zone a tree's dates and counts are written
// in: while a page drawn on a server is hydrated, none of the browser's,
// so the browser's first drawing of it writes them as the server did
// (`fixed`, ../format.ts) and reads times against the tree's `now`; once a
// `Tree` has mounted on the page, the browser's own, which every one drawn
// after takes from the start. A server never mounts one, so it keeps nothing.
let mounted = $state(false);
export const clock = {
/** Whether dates and counts are written fixed, as on any machine: until a `Tree` has mounted. */
get fixed(): boolean {
return !mounted;
}
};
/** Says a `Tree` has mounted on the page: its dates and counts are the browser's from now on. */
export function settle(): void {
mounted = true;
}