STEP 1: Create a worker and map it to a route like below. *yourdomain.com/.well-known/nostr.json* STEP 2: Use this sample as your worker.js addEventListener('fetch', event => { event.respondWith(handleRequest(event.request)) }) const nostrjson = `{ "names": { "YOUR_NOSTR_NAME": "YOUR_NOSTR_PUBLIC_KEY_IN_HEX" } } `; async function handleRequest(request) { return new Response( nostrjson, { status: 200, headers: { 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'Accept-Ranges': 'bytes', 'Content-Security-Policy': "connect-src 'self' ws: wss: * ;" } } ) } STEP 3: You are done!