Something went wrong. Try again.
Monorepo for the nibling.run platform
Something went wrong. Try again.
123456789101112// Resolves an actor against live infrastructure: node scripts/resolve.ts <handle-or-did> [--no-slingshot]import { configure, resolveActor, resolveService } from '../src/index.ts';
const [identifier = 'tangled.org', flag] = process.argv.slice(2);if (flag === '--no-slingshot') configure({ slingshot: null });
const started = performance.now();const actor = await resolveActor(identifier);const pds = await resolveService(actor.did, '#atproto_pds');const path = flag === '--no-slingshot' ? 'plc+appview' : 'slingshot';console.log(JSON.stringify({ path, actor, documentPds: pds, ms: Math.round(performance.now() - started) }));