SOURCE / PINNED RELEASE
Made of little things.
Faultline
- Release
- da1ffaa5624c…
- Author-recorded commit
- 60f5f03189db…
- License
- LICENSE
- Author’s source reference
- nostr://npub182jczunncwe0jn6frpqwq3e0qjws7yqqnc3auccqv9nte2dnd63scjm4rf/wss%3A%2F%2Fgit.napplet.soy%2F/n-6932b12c78c
Archive hash verified: 5a2e0492417ec4e7…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
// Public rendezvous, never a bearer credential. The napplet chooses its provider.
export const protocol = 'faultline-arena-v4';
export type Entry = {
version: 1;
provider: string;
napplet: string;
protocol: string;
room: string;
};
export function roomEntry(v: unknown, provider: string, napplet: string): Entry | null {
if (!v || typeof v !== 'object') return null;
const r = v as Entry;
return r.version === 1 &&
r.provider === provider &&
r.napplet === napplet &&
r.protocol === protocol &&
typeof r.room === 'string' &&
/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(r.room)
? { version: 1, provider, napplet, protocol, room: r.room }
: null;
}
