chadtmiller.com/knotless

Git hosted in your atproto account, on any stock PDS, fast enough for agents.

git clone knotless://chadtmiller.com/knotless

needs the knotless git helper. set it up

main
8 lines · 462 B Raw History
<script lang="ts">
	import { hue, initial } from '#lib/format.ts';
	/** A round mark: the picture at `src`, or else a name's first letter, in a color its name picks. */
	let { name, size, src }: { name: string; size?: 'lg' | 'xl'; src?: string | null } = $props();
	let cls = $derived(size ? `av ${size}` : 'av');
</script>

{#if src}<img class={cls} {src} alt="" />{:else}<span class={cls} style="--h:{hue(name)}" aria-hidden="true">{initial(name)}</span>{/if}