Something went wrong. Try again.
Diagnostics for atproto PDS hosts, DIDs, and handles: https://debug.hose.cam
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"/> <title>atproto PDS & account debugger</title> <meta name="description" content="Quick diagnostics for PDS hosts, handles, relay connections, handles, DIDs, ..." />
<script defer src="https://cdn.jsdelivr.net/npm/@alpinejs/intersect@3.x.x/dist/cdn.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script> <link href="https://cdn.jsdelivr.net/npm/daisyui@5" rel="stylesheet" type="text/css"/> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
<script type="module"> import { Client, ClientResponseError, ok, simpleFetchHandler, } from 'https://esm.sh/@atcute/client@4.1.1'; import { DohJsonHandleResolver, WellKnownHandleResolver, } from 'https://esm.sh/@atcute/identity-resolver@1.2.1';
window.SimpleQuery = service => { const client = new Client({ handler: simpleFetchHandler({ service }) }); return (...args) => ok(client.get(...args)); }; window.SimpleProc = service => { const client = new Client({ handler: simpleFetchHandler({ service }) }); return (...args) => ok(client.post(...args)); }; window.isXrpcErr = e => e instanceof ClientResponseError;
window.isBeforeNow = iso => new Date(iso) < new Date();
window.dnsResolver = new DohJsonHandleResolver({ dohUrl: 'https://mozilla.cloudflare-dns.com/dns-query', }); window.httpResolver = new WellKnownHandleResolver();
window.slingshot = window.SimpleQuery('https://slingshot.microcosm.blue'); window.relays = [ { name: 'Bluesky', icon: './icons/bsky-favicon.png', hostname: 'bsky.network', note: 'current', missingApis: { ['com.atproto.sync.getHostStatus']: 'missing API (old relay code)', ['com.atproto.sync.getRepoStatus']: 'missing API (old relay code)', }, }, { name: 'Microcosm Montreal', icon: './icons/microcosm-favicon.png', hostname: 'relay.fire.hose.cam', }, { name: 'Microcosm France', icon: './icons/microcosm-favicon.png', hostname: 'relay3.fr.hose.cam', }, { name: 'Upcloud', icon: 'https://upcloud.com/media/android-chrome-512x512-2-150x150.png', hostname: 'relay.upcloud.world', }, { name: 'Blacksky', icon: 'https://blacksky.community/static/favicon-32x32.png', hostname: 'atproto.africa', missingApis: { ['com.atproto.sync.getHostStatus']: 'API not yet deployed', ['com.atproto.sync.getRepoStatus']: 'API not implemented', }, }, { name: 'Bluesky East', icon: './icons/bsky-favicon.png', note: 'future', hostname: 'relay1.us-east.bsky.network', }, { name: 'Bluesky West', icon: './icons/bsky-favicon.png', note: 'future', hostname: 'relay1.us-west.bsky.network', }, ];
window.regionalModAccounts = [ // https://github.com/mary-ext/atproto-scraping?tab=readme-ov-file#bluesky-labelers 'https://mod-br.bsky.app', 'https://mod-de.bsky.app', 'https://mod-in.bsky.app', 'https://mod-ru.bsky.app', 'https://mod-tr.bsky.app', ];
window.bskyAccountDeathLabels = { ['needs-review']: 'Automated action, cleared by manual review from Bluesky moderation team. Your content can ve accessed via direct links on Bluesky, but invisible in feeds and replies to posts.', ['!suspend']: 'Moderation action from Bluesky moderation team. Makes your content inaccessible on the Bluesky app.', ['!takedown']: 'Moderation action from Bluesky moderation team. Makes your content inaccessible on the Bluesky app.', ['!hide']: 'Almost always used with !takedown, makes your content inaccessible on the Bluesky app.', // other labels shouldn't cause problems that make you think your pds is broken // 'spam': just hides replies by default + makes your posts click-through // 'intolerant', etc: similar to spam };
if (window.blehYeahReady) blehYeahReady(); else window.yeahBlehIsReady = true; </script>
<style> body:not(.ready) .hide-until-ready, body.ready .show-until-ready { display: none; } </style>
<script> document.addEventListener('alpine:init', () => { if (window.yeahBlehIsReady) { document.body.classList.add('ready'); } else { window.blehYeahReady = () => document.body.classList.add('ready'); }
Alpine.data('debug', () => ({ // form input identifier: '',
// state identifierLoading: false, identifierError: null,
// stuff to check pds: null, did: null, handle: null,
async goto(identifier) { this.identifier = identifier; await this.diagnose(); },
async diagnose() { this.identifierLoading = true; this.identifierError = null; this.pds = null; this.did = null; this.handle = null; this.identifier = this.identifier.trim(); if (this.identifier === '') { // do nothing } else if (this.identifier.startsWith('https://')) { this.pds = this.identifier; } else { if (this.identifier.startsWith('at://')) { this.identifier = this.identifier.slice('at://'.length); } if (this.identifier.startsWith('did:')) { this.did = this.identifier; let data; try { data = await window.slingshot('com.bad-example.identity.resolveMiniDoc', { params: { identifier: this.identifier }, }); this.pds = data.pds; this.handle = data.handle; } catch (e) { if (window.isXrpcErr(e)) { this.identifierError = e.error; if (e.message) this.description += ` ${e.description}`; } else { this.identifierError = 'Failed to resolve identifier, see console for error.'; console.error(e); } } } else { this.handle = this.identifier.toLowerCase(); let data; try { data = await window.slingshot('com.bad-example.identity.resolveMiniDoc', { params: { identifier: this.identifier.toLowerCase() }, }); this.did = data.did; this.pds = data.pds; } catch (e) { if (window.isXrpcErr(e)) { this.identifierError = e.error; if (e.message) this.description += ` ${e.description}`; } else { this.identifierError = 'Failed to resolve identifier, see console for error.'; console.error(e); } } } } this.identifierLoading = false; }, }));
Alpine.data('pdsCheck', pds => ({ loadingDesc: false, error: null, description: null, accounts: [], accountsComplete: false, version: null,
async init() { await this.update(pds); },
async update(pds) { this.loadingDesc = true; this.error = null; this.description = null; this.accounts = []; this.accountsComplete = false; this.version = null;
if (!pds) { this.loadingDesc = false; return; }
let query = window.SimpleQuery(pds); let version; try { this.description = await query('com.atproto.server.describeServer'); version = this.description.version; } catch (e) { if (window.isXrpcErr(e)) { this.error = e.error; } else { this.error = 'Failed to reach (see console)'; console.error(e); } } // fall back on /xrpc/_health for version if it's not in describeServer if (!version) { try { const health = await query('_health'); version = health.version; } catch (e) { console.warn("could not get version from describeServer or _health"); } } this.version = version;
let accountsRes; try { accountsRes = await query('com.atproto.sync.listRepos', { params: { limit: 100 }, }); this.accounts = accountsRes.repos;
// weird thing with the ref pds: it *always* has a cursor on the first page if (accountsRes.cursor) { // so grab a second page just to see if there really is a second page try { const secondPage = await query('com.atproto.sync.listRepos', { params: { limit: 1, cursor: accountsRes.cursor }, }); this.accountsComplete = !secondPage.cursor || secondPage.repos.length == 0; } catch (e) { // we're in a niche spot. ignore errors and look at the original (faulty) cursor this.accountsComplete = !accountsRes.cursor; // 🤷♀️ } } else { this.accountsComplete = true; }
} catch (e) { if (window.isXrpcErr(e)) { this.error = e.error; } else { this.error = 'Failed to reach (see console)'; console.error(e); } } this.loadingDesc = false; }, }));
Alpine.data('relayCheckHost', (pds, relay) => ({ loading: false, error: null, status: null, expectedErrorInfo: null, reqCrawlStatus: null, reqCrawlError: null,
async init() { await this.check(pds, relay); },
async check(pds, relay) { this.loading = true; this.error = null; this.status = null; this.expectedError = false; const query = window.SimpleQuery(`https://${relay.hostname}`); const hostname = pds.split('://')[1]; let data; try { data = await query('com.atproto.sync.getHostStatus', { params: { hostname }, }); this.status = data.status; } catch(e) { if (relay.missingApis?.['com.atproto.sync.getHostStatus']) { this.error = 'Can\'t check'; this.expectedErrorInfo = relay.missingApis?.['com.atproto.sync.getHostStatus']; } else if (window.isXrpcErr(e)) { this.error = e.error; } else { this.error = 'Failed to check (see console)'; console.error(e); } } this.loading = false; this.reqCrawlStatus = null; this.reqCrawlError = null; },
async requestCrawl(pds, relay) { this.reqCrawlStatus = "loading"; const proc = window.SimpleProc(`https://${relay.hostname}`); const hostname = pds.split('://')[1]; let data; try { data = await proc('com.atproto.sync.requestCrawl', { input: { hostname }, }); } catch (e) { if (window.isXrpcErr(e)) { this.reqCrawlError = e.error; } else { this.reqCrawlError = 'failed (see console)'; console.error(e); } } this.reqCrawlStatus = "done"; }, }));
Alpine.data('checkHandle', handle => ({ loading: false, dnsDid: null, dnsErr: null, httpDid: null, httpErr: null,
async init() { await this.updateHandle(handle); }, async updateHandle(handle) { this.loading = true; this.dnsDid = null; this.dnsErr = null; this.httpDid = null; this.httpErr = null; try { this.dnsDid = await window.dnsResolver.resolve(handle); } catch (e) { this.dnsErr = e.name; } try { this.httpDid = await window.httpResolver.resolve(handle); } catch (e) { this.httpErr = e.name; } this.loading = false; }, }));
Alpine.data('didToHandle', did => ({ loading: false, error: null, handle: null, async load() { loading = true; error = null; handle = null; let data; try { data = await window.slingshot('com.bad-example.identity.resolveMiniDoc', { params: { identifier: did }, }); this.handle = data.handle; } catch (e) { if (window.isXrpcErr(e)) { this.error = e.error; } else { this.error = 'failed (see console)'; console.error(e); } } loading = false; } }));
Alpine.data('didRepoState', (did, pds) => ({ loading: false, error: null, state: null,
async init() { await this.checkRepoState(did, pds); }, async checkRepoState(did, pds) { this.loading = true; this.error = null; this.state = null;
if (!did || !pds) { this.loading = false; return; } const query = window.SimpleQuery(pds); try { this.state = await query('com.atproto.sync.getRepoStatus', { params: { did }, }); } catch (e) { if (window.isXrpcErr(e)) { this.error = e.error; } else { this.error = 'failed (see console)'; console.error(e); } } this.loading = false; }, }));
Alpine.data('repoSize', () => ({ lading: false, error: null, size: null,
async loadRepoForSize(did, pds) { this.loading = true;
if (!did || !pds) { this.loading = false; return; } const query = window.SimpleQuery(pds); try { const res = await query('com.atproto.sync.getRepo', { params: { did }, as: 'blob', }); let bytes = res.size; let mbs = bytes / Math.pow(2, 20); this.size = mbs.toFixed(1); } catch (e) { if (window.isXrpcErr(e)) { this.error = e.error; } else { this.error = 'failed (see console)'; console.error(e); } } this.loading = false; }, }));
Alpine.data('relayCheckRepo', (did, relay) => ({ loading: false, error: null, status: null, expectedErrorInfo: null,
async init() { await this.check(did, relay); },
async check(did, relay) { this.loading = true; this.error = null; this.status = null; this.expectedErrorInfo = null;
const query = window.SimpleQuery(`https://${relay.hostname}`); try { this.status = await query('com.atproto.sync.getRepoStatus', { params: { did }, }); } catch(e) { if (relay.missingApis?.['com.atproto.sync.getRepoStatus']) { this.error = 'Can\'t check'; this.expectedErrorInfo = relay.missingApis?.['com.atproto.sync.getRepoStatus']; } else if (window.isXrpcErr(e)) { this.error = e.error; } else { this.error = 'Failed to check (see console)'; console.error(e); } }
this.loading = false; },
revStatus(repoRev) { if ( !repoRev || !(this.status && this.status.rev) ) return null;
if (this.status.rev < repoRev) return 'behind'; if (this.status.rev === repoRev) return 'current'; if (this.status.rev > repoRev) return 'ahead'; } }));
Alpine.data('modLabels', did => ({ loading: false, error: null, regionalErrors: [], labels: [],
async init() { this.loading = true; this.error = null; this.regionalErrors = []; this.labels = [];
const query = window.SimpleQuery('https://mod.bsky.app');
try { const res = await query('com.atproto.label.queryLabels', { params: { uriPatterns: [did] }, }); this.labels = res.labels ?? []; // TODO: handle cursors?
for (const region of window.regionalModAccounts) { // intentionally no await, these come in async // (...and could get messy if we start re-checking labels before they're done) this.checkRegionLabels(region); } } catch (e) { if (window.isXrpcErr(e)) { this.error = e.error; } else { this.error = 'Failed to check (see console)'; console.error(e); } } this.loading = false; },
async checkRegionLabels(labeler) { const query = window.SimpleQuery(labeler); try { const res = await query('com.atproto.label.queryLabels', { params: { uriPatterns: [did] }, }); if (res?.labels?.length > 0) this.labels.push(...res.labels); } catch (e) { if (window.isXrpcErr(e)) { this.regionalErrors.push(`${labeler}: ${e.error}`); } else { this.regionalErrors.push(`Failed to check ${labeler} (see console)`); console.error(`labeler: ${labeler}`, e); } } } }));
Alpine.data('pdsHistory', (did, currentPds) => ({ loading: false, error: null, history: [],
async init() { this.loading = true; this.error = null; this.history = []; try { const res = await fetch(`https://plc.directory/${did}/log/audit`); if (res.ok) { const log = await res.json(); let prev = null; for (op of log) { let opPds = null; const services = op.operation.services; if (services) { const app = services.atproto_pds; if (app) { opPds = app.endpoint; } } if (opPds === prev) continue; prev = opPds; this.history.push({ pds: opPds, date: op.createdAt, }); } this.history.reverse(); if (this.history[0]) this.history[0].current = true; } else { this.error = `${res.status}: ${await res.text()}`; } } catch (e) { this.error = 'failed to get history'; console.error(e); } this.loading = false; }, }));
Alpine.data('handleHistory', (did, currentHandle) => ({ loading: false, error: null, history: [],
async init() { this.loading = true; this.error = null; this.history = []; try { const res = await fetch(`https://plc.directory/${did}/log/audit`); if (res.ok) { const log = await res.json(); let prev = null; for (op of log) { let opHandle = null; if (op.operation.alsoKnownAs) { for (aka of op.operation.alsoKnownAs) { if (aka.startsWith("at://")) { opHandle = aka.slice("at://".length); break; } } } if (opHandle === prev) continue; prev = opHandle; this.history.push({ handle: opHandle, date: op.createdAt, }); } this.history.reverse(); } else { this.error = `${res.status}: ${await res.text()}`; } } catch (e) { this.error = 'failed to get history'; console.error(e); } this.loading = false; }, })); }) </script> </head> <body x-data="debug" class="bg-base-200"> <div class="hero bg-base-200 p-8"> <div class="hero-content flex-col"> <h1 class="text-2xl mb-8">PDS Debugger</h1> <p class="show-until-ready"><em>Loading…</em></p> <form class="hide-until-ready" @submit.prevent="await diagnose()"> <label class="text-sm text-primary" for="identifier"> atproto handle, DID, or HTTPS PDS URL </label> <br/> <div class="join"> <input id="identifier" class="input join-item" x-model="identifier" :disabled="identifierLoading" autofocus /> <button class="btn btn-primary join-item" type="submit" >go</button> </div> </form> </div> </div>
<div class="w-full max-w-lg mx-auto"> <template x-if="identifierError"> <p>uh oh: <span x-text="identifierError"></span></p> </template>
<template x-if="pds != null">
<div class="card bg-base-100 w-full max-w-2xl shrink-0 shadow-2xl m-4"> <div class="card-body"> <h2 class="card-title"> <span class="badge badge-secondary">PDS</span> <span x-text="pds"></span> </h2>
<div x-data="pdsCheck(pds)" x-init="$watch('pds', v => update(v))" > <h3 class="text-lg mt-3"> Server <span x-show="description !== null" class="badge badge-sm badge-soft badge-success" >online</span> </h3> <p x-show="loadingDesc">Loading…</p> <p x-show="error" class="text-warning" x-text="error"></p> <template x-if="description !== null"> <div> <div class="overflow-x-auto"> <table class="table table-xs"> <tbody> <tr> <td class="text-sm"> Open registration: <span x-text="!description.inviteCodeRequired" ></span> </td> </tr> <tr> <td class="text-sm"> Version: <code class="text-xs" x-text="version" ></code> </td> </tr> </tbody> </table> </div> <h4 class="font-bold"> Accounts </h4> <div class="overflow-x-auto overflow-y-auto max-h-26"> <table class="table table-xs"> <tbody> <template x-for="account in accounts"> <tr> <td> <code> <a href="#" class="link" x-text="account.did" @click.prevent="goto(account.did)" ></a> </code> </td> <td> <span x-show="account.active" class="badge badge-sm badge-soft badge-success" > active </span> <span x-show="!account.active" x-text="account.status" class="badge badge-sm badge-soft badge-warning" ></span> </td> <td x-data="didToHandle(account.did)" x-intersect:enter.once="load" > <span x-show="loading">Loading…</span> <span x-show="error !== null" x-text="error"></span> <a href="#" class="link" @click.prevent="goto(handle)" x-show="handle !== null" x-text="`@${handle}`" ></a> </td> </tr> </template> <template x-if="!loadingDesc && !accountsComplete"> <tr> <td colspan="2" class="text-xs text-warning-content"> (more accounts not shown) </td> </tr> </template> </tbody> </table> </div> </div> </template> </div>
<h3 class="text-lg mt-3">Relay host status</h3> <div class="overflow-x-auto"> <table class="table table-xs"> <tbody> <template x-for="relay in window.relays"> <tr x-data="relayCheckHost(pds, relay)" x-init="$watch('pds', pds => check(pds, relay))" > <td class="text-sm"> <div class="tooltip tooltip-right" :data-tip="relay.hostname"> <img class="inline-block h-4 w-4" :src="relay.icon" alt="" /> <span x-text="relay.name"></span> <span x-show="!!relay.note" x-text="relay.note" class="badge badge-soft badge-neutral badge-xs" ></span> </div> </td> <td> <template x-if="loading"> <em>loading…</em> </template> <template x-if="error"> <div class="text-xs" :class="expectedErrorInfo ? 'text-info tooltip tooltip-left cursor-help' : 'text-warning'" :data-tip="expectedErrorInfo" > <span x-text="error"></span> <span x-show="!!expectedErrorInfo" class="badge badge-soft badge-info badge-xs" >i</span> </div> </template> <template x-if="status"> <span x-text="status" class="badge badge-sm" :class="status === 'active' && 'badge-soft badge-success'" ></span> </template> </td> <td> <div x-show="status !== 'active' && !expectedErrorInfo"> <button x-show="reqCrawlStatus !== 'done'" class="btn btn-xs btn-ghost whitespace-nowrap" :disabled="reqCrawlStatus === 'loading'" @click="requestCrawl(pds, relay)" > request crawl </button> <span x-show="reqCrawlError !== null" x-text="reqCrawlError" class="text-xs text-warning" ></span> <button x-show="reqCrawlError === null && reqCrawlStatus === 'done'" class="btn btn-xs btn-soft btn-primary whitespace-nowrap" @click="check" > refresh </button> </div> </td> </tr> </template> </tbody> </table> </div> </div> </div> </template>
<template x-if="did != null"> <div class="card bg-base-100 w-full max-w-2xl shrink-0 shadow-2xl m-4"> <div class="card-body"> <h2 class="card-title"> <span class="badge badge-secondary">DID</span> <code x-text="did"></code> </h2> <template x-if="pds != null"> <div x-data="didRepoState(did, pds)"> <h3 class="text-lg mt-3"> Repo <span x-show="state && state.active" class="badge badge-sm badge-soft badge-success" >active</span> </h3> <div class="overflow-x-auto"> <table class="table table-xs"> <tbody> <tr> <td class="text-sm"> Rev: <code x-text="state && state.rev"></code> </td> </tr> <tr> <td class="text-sm"> Size: <span x-data="repoSize"> <template x-if="loading"> <em>loading…</em> </template> <template x-if="error"> <span class="text-xs text-warning" x-text="error"></span> </template> <template x-if="size"> <code> <span x-text="size"></span> MiB </code> </template> <template x-if="!size && !error && !loading"> <button class="btn btn-xs btn-soft btn-primary" @click.prevent="loadRepoForSize(did, pds)" >load</button> </template> </span> </td> </tr> <tr> <td class="text-sm"> PDS: <a href="#" class="link" @click.prevent="goto(pds)" x-text="pds" ></a> </td> </tr> <!--<tr> <td class="text-sm" x-data="repoMonitor(did, pds)" > <button class="btn btn-xs btn-success" >Start live monitoring</button> </td> </tr>--> </tbody> </table> </div>
<h3 class="text-lg mt-3"> Relay repo status </h3> <div class="overflow-x-auto"> <table class="table table-xs"> <tbody> <template x-for="relay in window.relays"> <tr x-data="relayCheckRepo(did, relay)" x-init="$watch('pds', pds => check(did, relay))" > <td class="text-sm"> <div class="tooltip tooltip-right" :data-tip="relay.hostname"> <img class="inline-block h-4 w-4" :src="relay.icon" alt="" /> <span x-text="relay.name"></span> <span x-show="!!relay.note" x-text="relay.note" class="badge badge-neutral badge-soft badge-xs" ></span> </div> </td> <template x-if="loading"> <td> <em>loading…</em> </td> </template> <template x-if="error"> <td> <div class="text-xs" :class="expectedErrorInfo ? 'text-info tooltip tooltip-left cursor-help' : 'text-warning'" :data-tip="expectedErrorInfo" > <span x-text="error"></span> <span x-show="!!expectedErrorInfo" class="badge badge-soft badge-info badge-xs" >i</span> </div> </td> </template> <template x-if="status"> <td> <span x-show="status.active" class="badge badge-sm badge-soft badge-success" > active </span> <span x-show="!status.active" x-text="status.status" class="badge badge-sm badge-soft badge-warning" ></span> </td> </template> <template x-if="revStatus(state && state.rev)"> <td x-data="{ asdf: revStatus(state.rev) }"> <span x-show="asdf === 'current'" class="badge badge-sm badge-soft badge-success" >current</span> <span x-show="asdf === 'behind'" class="badge badge-sm badge-soft badge-warning tooltip tooltip-left" :data-tip="status.rev" >behind</span> <span x-show="asdf === 'ahead'" class="badge badge-sm badge-soft badge-success tooltip tooltip-left" :data-tip="`Account may have updated between checks? ${status.rev}`" >ahead</span> </td> </template> <template x-if="!revStatus(state && state.rev)"> <td></td> </template> </tr> </template> </tbody> </table> </div>
<div x-data="modLabels(did)"> <h3 class="text-lg mt-3"> Labels </h3> <div class="overflow-x-auto"> <table class="table table-xs"> <tbody> <template x-if="loading"> <tr> <td>Loading…</td> </tr> </template> <template x-if="error"> <tr> <td>Error: <span x-text="error"></span></td> </tr> </template> <template x-if="!loading && !error && labels.length === 0"> <tr> <td class="text-xs"> <em>No Bluesky moderation labels found</em> </td> </tr> </template> <template x-for="label in labels"> <template x-if="!!label"> <tr x-data="{ expired: isBeforeNow(label.exp) }"> <td> <span x-show="label.neg">removed</span> <code x-text="label.cts.split('T')[0]" :title="label.cts" ></code> </td> <td> <template x-if="!!label.exp"> <span x-text="expired ? 'expired' : 'expires'"></span> <code x-text="label.exp.split('T')[0]" :title="label.exp" ></code> </template> </td> <td> <code x-text="label.val" class="badge badge-sm badge-soft" :class="(label.neg || expired) ? 'badge-neutral line-through' : !!window.bskyAccountDeathLabels[label.val] ? 'badge-warning' : 'badge-info'" :title="label.neg ? 'label negated' : expired ? 'label expired' : window.bskyAccountDeathLabels[label.val] ?? ''" ></code> </td> <td x-data="didToHandle(label.src)" x-intersect:enter.once="load" > <span x-show="loading">Loading…</span> <span x-show="error !== null" x-text="error"></span> <a href="#" class="link" @click.prevent="goto(handle)" x-show="handle !== null" x-text="`@${handle}`" ></a> </td> </tr> </template> </template> </tbody> </table> </div> <template x-for="error in regionalErrors"> <p x-text="error" class="text-xs text-warning" ></p> </template> </div>
<template x-if="did.startsWith('did:plc:')"> <div x-data="pdsHistory(did, pds)"> <h3 class="text-lg mt-3"> PLC PDS history </h3> <div class="overflow-x-auto"> <table class="table table-xs"> <tbody> <template x-if="loading"> <tr> <td>Loading…</td> </tr> </template> <template x-if="error"> <tr> <td>Error: <span x-text="error"></span></td> </tr> </template> <template x-if="!loading && !error && history.length === 0"> <tr> <td class="text-sm"> <em>no previous PDS</em> </td> </tr> </template> <template x-for="event in history"> <tr x-data="didRepoState(did, event.pds)"> <td> <code x-text="event.date.split('T')[0]"></code> </td> <td> <a href="#" class="link" @click.prevent="goto(event.pds)" x-text="event.pds" ></a> </td> <template x-if="event.current"> <td> <span x-show="state && !state.active" x-text="state && state.status" class="badge badge-sm badge-soft badge-warning" ></span> <span x-show="state && state.active" class="badge badge-sm badge-soft badge-success" >current</span> </td> </template> <template x-if="!event.current"> <td> <span x-show="state && !state.active" x-text="state && state.status" class="badge badge-sm badge-soft badge-success" ></span> <span x-show="state && state.active" class="badge badge-sm badge-soft badge-warning" >active</span> </td> </template> </tr> </template> </tbody> </table> </div> </div> </template> </div> </template> </div> </div> </template>
<template x-if="handle !== null"> <div class="card bg-base-100 w-full max-w-2xl shrink-0 shadow-2xl m-4"> <div x-data="checkHandle(handle)" x-init="$watch('handle', h => updateHandle(h))" class="card-body" > <h2 class="card-title"> <span class="badge badge-secondary">Handle</span> <span x-text="handle"></span> </h2>
<h3 class="text-lg mt-3"> Resolution </h3> <p x-show="loading" class="text-i">Loading…</p> <div x-show="!loading" class="overflow-x-auto"> <table class="table table-xs"> <tbody> <tr> <td class="text-sm">DNS</td> <td class="text-sm"> <code x-text="dnsDid"></code> </td> <td> <div class="badge badge-sm badge-soft badge-neutral" x-show="dnsErr !== null" x-text="dnsErr" ></div> </td> </tr> <tr> <td class="text-sm">Http</td> <td class="text-sm"> <code x-text="httpDid"></code> </td> <td> <div class="badge badge-sm badge-soft badge-neutral" x-show="httpErr !== null" x-text="httpErr" ></div> </td> </tr> </tbody> </table> </div>
<template x-if="did !== null && did.startsWith('did:plc:')">
<div x-data="handleHistory(did, handle)"> <h3 class="text-lg mt-3"> PLC handle history </h3> <div class="overflow-x-auto"> <table class="table table-xs"> <tbody> <template x-if="loading"> <tr> <td>Loading…</td> </tr> </template> <template x-if="error"> <tr> <td>Error: <span x-text="error"></span></td> </tr> </template> <template x-if="!loading && !error && history.length === 0"> <tr> <td class="text-sm"> <em>no previous handle</em> </td> </tr> </template> <template x-for="event in history"> <tr> <td> <code x-text="event.date.split('T')[0]"></code> </td> <td> <a href="#" class="link" @click.prevent="goto(event.handle)" x-text="event.handle" ></a> </td> </tr> </template> </tbody> </table> </div> </div>
</template> </div> </div> </template> </div>
<div class="footer text-xs sm:footer-horizontal text-neutral mt-32 p-8 max-w-2xl mx-auto"> <nav> <h3 class="footer-title mt-3">Current limitations</h3> <p>PDS hosts without CORS will fail tests.</p> <p>Bluesky relay is missing API endpoints.</p> <p>Blacksky relay is also missing API endpoints.</p> <p>The requestCrawl button is not well tested.</p>
<h3 class="footer-title mt-3">Future features</h3> <p>Firehose listener</p> <p>URL routing</p> <p>Less strict identity resolution</p> </nav>
<nav> <h3 class="footer-title mt-3">Places</h3> <p><a href="https://tangled.org/microcosm.blue/pds-debug">Source code (tangled.org)</a></p> <p><a href="https://discord.gg/Vwamex5UFS">Discord (microcosm)</a></p> <p><a href="https://pdsmoover.com/">PDS Moover</a></p> <p><a href="https://microcosm.blue">microcosm</a></p>
<h3 class="footer-title mt-3">Made by</h3> <p> <a href="https://bsky.app/profile/did:plc:hdhoaan3xa3jiuq4fg4mefid">fig</a> <a href="https://github.com/sponsors/uniphil">(sponsor)</a> </p> <p> <a href="https://bsky.app/profile/did:plc:rnpkyqnmsw4ipey6eotbdnnf">bailey</a> <a href="https://github.com/sponsors/fatfingers23">(sponsor)</a> </p> </nav> </div>
</body></html>