{"_id":"nsite-clay","_rev":"13-2b1e7c4a51426c69f70fd80715626412","name":"nsite-clay","dist-tags":{"latest":"0.4.2"},"versions":{"0.3.17":{"name":"nsite-clay","version":"0.3.17","keywords":["nostr","nsite","blossom","nip-5a","malleable-html","self-saving","single-file","static-site","local-first","no-build","contenteditable"],"license":"MIT-0","_id":"nsite-clay@0.3.17","maintainers":[{"name":"jooray","email":"npmjs@moonlestial.com"}],"homepage":"https://nsite-clay.cypherpunk.today/","bugs":{"url":"https://github.com/jooray/nsite-clay/issues"},"bin":{"nsite-clay":"bin/nsite-clay.mjs"},"dist":{"shasum":"36befd91a930a199d14c387b264fd0a70a1c2f11","tarball":"https://registry.npmjs.org/nsite-clay/-/nsite-clay-0.3.17.tgz","fileCount":78,"integrity":"sha512-Zo3btLjfOo+I2Z9rleTMpx2VuMByx347By5jrHkmcJN33y1pqODj6I8f6i6Qy5sT08uDwl1JG5I+oyeP/Dmd2Q==","signatures":[{"sig":"MEYCIQDc3Rb9FJjwMp0TAkzsJx5Tq1WhBTyew4tX5ZFZt4jehQIhALQKpCmZdRjLfFb6g731wa/GL9uE91v6ySfuLtPwLQim","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2534725},"main":"./dist/nsite-clay.esm.js","type":"module","engines":{"node":">=18"},"exports":{".":"./dist/nsite-clay.esm.js","./src/*":"./src/*","./dist/*":"./dist/*","./package.json":"./package.json"},"gitHead":"c38367501596fe5fa47aa613a69b0a0adf9f3da7","scripts":{"test":"node test/secret-files.mjs && node test/served-types.mjs && node test/verify.mjs && node test/ai-client.mjs && node test/ai-workflows.mjs && node test/publisher-ai.mjs && node test/publisher-key.mjs && node test/vault.mjs && node test/cashu.mjs && node test/wallet.mjs && node test/e2e-ai.mjs && node test/ai-evaluation.mjs","build":"node build.mjs","devnet":"node tools/devnet.mjs","review":"npm run site:build && node tools/review.mjs","demo:build":"node build.mjs && rm -rf demo-dist && mkdir -p demo-dist && cp demo/index.html demo-dist/ && cp dist/nsite-clay.js demo-dist/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js demo-dist/","demo:serve":"npm run demo:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css'};createServer((q,s)=>{let p=join('demo-dist',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream','Cache-Control':'no-store'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4790,()=>console.log('demo on http://127.0.0.1:4790/'))\"","site:build":"node build.mjs && cp dist/nsite-clay.js dist/nsite-clay-source.js dist/nsite-clay-wallet.js site/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js site/ && cp icons/nsite-clay-transparent.png icons/nsite-clay-mark.svg icons/nsite-clay.png site/ && cp media/editing.png site/ && mkdir -p site/shots && cp media/guide/*.png site/shots/ && node tools/stage-templates.mjs && node tools/stage-deploy.mjs && node tools/stage-runtime.mjs","site:serve":"npm run site:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css','.png':'image/png','.svg':'image/svg+xml','.md':'text/markdown'};createServer((q,s)=>{let p=join('site',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4780,()=>console.log('site/ on http://127.0.0.1:4780/ (site root = server root, as a gateway serves it)'))\"","walkthrough":"npm run site:build && node tools/publish-walkthrough.mjs","publish:local":"npm run site:build && node tools/publish-local.mjs","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"jooray","email":"npmjs@moonlestial.com"},"repository":{"url":"git+https://github.com/jooray/nsite-clay.git","type":"git"},"_npmVersion":"11.19.1","description":"A self-editable nsite. One HTML file that edits and republishes itself, hosted on Nostr.","directories":{},"_nodeVersion":"26.9.0","dependencies":{"ws":"^8.18.0","parse5":"8.0.1","quickcrop":"1.2.0","hyper-undo":"0.6.0","nostr-tools":"^2.10.4","@noble/hashes":"^1.7.1","qrcode-generator":"^1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.24.2","dompurify":"^3.4.15","playwright":"1.62.1"},"_npmOperationalInternal":{"tmp":"tmp/nsite-clay_0.3.17_1790369145518_0.3553118243955977","host":"s3://npm-registry-packages-npm-production"}},"0.3.19":{"name":"nsite-clay","version":"0.3.19","keywords":["nostr","nsite","blossom","nip-5a","malleable-html","self-saving","single-file","static-site","local-first","no-build","contenteditable"],"license":"MIT-0","_id":"nsite-clay@0.3.19","maintainers":[{"name":"jooray","email":"npmjs@moonlestial.com"}],"homepage":"https://nsite-clay.cypherpunk.today/","bugs":{"url":"https://github.com/jooray/nsite-clay/issues"},"bin":{"nsite-clay":"bin/nsite-clay.mjs"},"dist":{"shasum":"b2eabb2839e97303c167a63132c1f1d560488293","tarball":"https://registry.npmjs.org/nsite-clay/-/nsite-clay-0.3.19.tgz","fileCount":79,"integrity":"sha512-QSR22/q3Z4rsQbWGMyvlgW4I8OnxH9RCMwKhWiJ9eE14yaERfA8zY9sM/m2yAgjX9Zf01vnmq4xoExHcT86Amw==","signatures":[{"sig":"MEUCIQDUmfM4mAY+YVrDJ+eF4xASv4qhTaPVqzajuKwgjwgFxQIgFY3dhe3ffVTDnwa8f+SyDJ5VMO4WizANtWEQgJ916NU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDsXn1E5nkvUBL8qk33AiWWVbqAdJ95ojSwJ7oJmVxPYwIgS0rDdneIOmaV6Rz6DLBkMdTd9xtgzPoO05c5yeM8Bhg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2544618},"main":"./dist/nsite-clay.esm.js","type":"module","engines":{"node":">=18"},"exports":{".":"./dist/nsite-clay.esm.js","./src/*":"./src/*","./dist/*":"./dist/*","./package.json":"./package.json"},"gitHead":"228b4ee2a22f93d0e4c1bc88c96acf07e073e02e","scripts":{"test":"node test/secret-files.mjs && node test/served-types.mjs && node test/relay-list.mjs && node test/verify.mjs && node test/ai-client.mjs && node test/ai-workflows.mjs && node test/publisher-ai.mjs && node test/publisher-key.mjs && node test/vault.mjs && node test/cashu.mjs && node test/wallet.mjs && node test/e2e-ai.mjs && node test/ai-evaluation.mjs","build":"node build.mjs","devnet":"node tools/devnet.mjs","review":"npm run site:build && node tools/review.mjs","demo:build":"node build.mjs && rm -rf demo-dist && mkdir -p demo-dist && cp demo/index.html demo-dist/ && cp dist/nsite-clay.js demo-dist/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js demo-dist/","demo:serve":"npm run demo:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css'};createServer((q,s)=>{let p=join('demo-dist',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream','Cache-Control':'no-store'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4790,()=>console.log('demo on http://127.0.0.1:4790/'))\"","site:build":"node build.mjs && cp dist/nsite-clay.js dist/nsite-clay-source.js dist/nsite-clay-wallet.js site/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js site/ && cp icons/nsite-clay-transparent.png icons/nsite-clay-mark.svg icons/nsite-clay.png site/ && cp media/editing.png site/ && mkdir -p site/shots && cp media/guide/*.png site/shots/ && node tools/stage-templates.mjs && node tools/stage-deploy.mjs && node tools/stage-runtime.mjs","site:serve":"npm run site:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css','.png':'image/png','.svg':'image/svg+xml','.md':'text/markdown'};createServer((q,s)=>{let p=join('site',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4780,()=>console.log('site/ on http://127.0.0.1:4780/ (site root = server root, as a gateway serves it)'))\"","walkthrough":"npm run site:build && node tools/publish-walkthrough.mjs","publish:local":"npm run site:build && node tools/publish-local.mjs","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"jooray","email":"npmjs@moonlestial.com"},"repository":{"url":"git+https://github.com/jooray/nsite-clay.git","type":"git"},"_npmVersion":"11.19.1","description":"A self-editable nsite. One HTML file that edits and republishes itself, hosted on Nostr.","directories":{},"_nodeVersion":"26.9.0","dependencies":{"ws":"^8.18.0","parse5":"8.0.1","quickcrop":"1.2.0","hyper-undo":"0.6.0","nostr-tools":"^2.10.4","@noble/hashes":"^1.7.1","qrcode-generator":"^1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.24.2","dompurify":"^3.4.15","playwright":"1.62.1"},"_npmOperationalInternal":{"tmp":"tmp/nsite-clay_0.3.19_1790406041302_0.056426854242163094","host":"s3://npm-registry-packages-npm-production"}},"0.3.20":{"name":"nsite-clay","version":"0.3.20","keywords":["nostr","nsite","blossom","nip-5a","malleable-html","self-saving","single-file","static-site","local-first","no-build","contenteditable"],"license":"MIT-0","_id":"nsite-clay@0.3.20","maintainers":[{"name":"jooray","email":"npmjs@moonlestial.com"}],"homepage":"https://nsite-clay.cypherpunk.today/","bugs":{"url":"https://github.com/jooray/nsite-clay/issues"},"bin":{"nsite-clay":"bin/nsite-clay.mjs"},"dist":{"shasum":"1e53878ee7120c68d4c0f607e34098852d664eed","tarball":"https://registry.npmjs.org/nsite-clay/-/nsite-clay-0.3.20.tgz","fileCount":79,"integrity":"sha512-2sTOza/P8QBtMfGArMHs0P7F3xU8I8GCGtmO5+uUIsNWJynxAZszKpTBTI8Y604AkDB8aqdsFBf6Xu4QGKDh/w==","signatures":[{"sig":"MEYCIQD0N/HvOh3nubbqAtEETAhWIT2CFDM9+xrFALS8gIG+CwIhAIa8JACbmPWsPO8NjbSeEtEZ9xZ9LyiC9F7bFR7tB8Z6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCICcVFvzKJzz+hmDRAbgUFgpuZQK9DI9nZ7uvGNLCfKWIAiB301rVoF72pXSbM7JVVIbtdU1vw3PWQX1o5T+wZ/EMHQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2563413},"main":"./dist/nsite-clay.esm.js","type":"module","engines":{"node":">=18"},"exports":{".":"./dist/nsite-clay.esm.js","./src/*":"./src/*","./dist/*":"./dist/*","./package.json":"./package.json"},"gitHead":"d8b877d7ac30c9cc24d19cf4728190ae6fa1ccdc","scripts":{"test":"node test/secret-files.mjs && node test/served-types.mjs && node test/relay-list.mjs && node test/unpublish.mjs && node test/verify.mjs && node test/ai-client.mjs && node test/ai-workflows.mjs && node test/publisher-ai.mjs && node test/publisher-key.mjs && node test/vault.mjs && node test/cashu.mjs && node test/wallet.mjs && node test/e2e-ai.mjs && node test/ai-evaluation.mjs","build":"node build.mjs","devnet":"node tools/devnet.mjs","review":"npm run site:build && node tools/review.mjs","demo:build":"node build.mjs && rm -rf demo-dist && mkdir -p demo-dist && cp demo/index.html demo-dist/ && cp dist/nsite-clay.js demo-dist/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js demo-dist/","demo:serve":"npm run demo:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css'};createServer((q,s)=>{let p=join('demo-dist',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream','Cache-Control':'no-store'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4790,()=>console.log('demo on http://127.0.0.1:4790/'))\"","site:build":"node build.mjs && cp dist/nsite-clay.js dist/nsite-clay-source.js dist/nsite-clay-wallet.js site/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js site/ && cp icons/nsite-clay-transparent.png icons/nsite-clay-mark.svg icons/nsite-clay.png site/ && cp media/editing.png site/ && mkdir -p site/shots && cp media/guide/*.png site/shots/ && node tools/stage-templates.mjs && node tools/stage-deploy.mjs && node tools/stage-runtime.mjs","site:serve":"npm run site:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css','.png':'image/png','.svg':'image/svg+xml','.md':'text/markdown'};createServer((q,s)=>{let p=join('site',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4780,()=>console.log('site/ on http://127.0.0.1:4780/ (site root = server root, as a gateway serves it)'))\"","walkthrough":"npm run site:build && node tools/publish-walkthrough.mjs","publish:local":"npm run site:build && node tools/publish-local.mjs","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"jooray","email":"npmjs@moonlestial.com"},"repository":{"url":"git+https://github.com/jooray/nsite-clay.git","type":"git"},"_npmVersion":"11.19.1","description":"A self-editable nsite. One HTML file that edits and republishes itself, hosted on Nostr.","directories":{},"_nodeVersion":"26.9.0","dependencies":{"ws":"^8.18.0","parse5":"8.0.1","quickcrop":"1.2.0","hyper-undo":"0.6.0","nostr-tools":"^2.10.4","@noble/hashes":"^1.7.1","qrcode-generator":"^1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.24.2","dompurify":"^3.4.15","playwright":"1.62.1"},"_npmOperationalInternal":{"tmp":"tmp/nsite-clay_0.3.20_1790500432722_0.6723600598135764","host":"s3://npm-registry-packages-npm-production"}},"0.3.21":{"name":"nsite-clay","version":"0.3.21","keywords":["nostr","nsite","blossom","nip-5a","malleable-html","self-saving","single-file","static-site","local-first","no-build","contenteditable"],"license":"MIT-0","_id":"nsite-clay@0.3.21","maintainers":[{"name":"jooray","email":"npmjs@moonlestial.com"}],"homepage":"https://nsite-clay.cypherpunk.today/","bugs":{"url":"https://github.com/jooray/nsite-clay/issues"},"bin":{"nsite-clay":"bin/nsite-clay.mjs"},"dist":{"shasum":"604c87a5caaa5b96c7aedf5676220a7ee49dd935","tarball":"https://registry.npmjs.org/nsite-clay/-/nsite-clay-0.3.21.tgz","fileCount":79,"integrity":"sha512-I2Dox5QqaVU8bmPANlilacjIjzIFCdI981yIz2hi87Z8zfZSmCdFu/0Fs3JvgWtd7J0bcwvr/DLMRQOkVyxGtA==","signatures":[{"sig":"MEUCIAVdFvjFVdlviyyUFTW1J21WLfshGUqVjLj+ZlCcA9T/AiEAiHfwGOn8IULYI6CQR6iyScyAkB5Ay58SqPfzYJEzZFI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDMxLKAoaYMRt26kdyT0CEX52mpSfiPiGjItW9qPEi/zgIgYA1uCFeTcZnHE5CCE4vh4QpzvC2zY7GnV5sAc+haNzg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2564430},"main":"./dist/nsite-clay.esm.js","type":"module","engines":{"node":">=18"},"exports":{".":"./dist/nsite-clay.esm.js","./src/*":"./src/*","./dist/*":"./dist/*","./package.json":"./package.json"},"gitHead":"5fc003a428de0583d900e1838a981cc67cf40abc","scripts":{"test":"node test/secret-files.mjs && node test/served-types.mjs && node test/relay-list.mjs && node test/unpublish.mjs && node test/verify.mjs && node test/ai-client.mjs && node test/ai-workflows.mjs && node test/publisher-ai.mjs && node test/publisher-key.mjs && node test/vault.mjs && node test/cashu.mjs && node test/wallet.mjs && node test/e2e-ai.mjs && node test/ai-evaluation.mjs","build":"node build.mjs","devnet":"node tools/devnet.mjs","review":"npm run site:build && node tools/review.mjs","demo:build":"node build.mjs && rm -rf demo-dist && mkdir -p demo-dist && cp demo/index.html demo-dist/ && cp dist/nsite-clay.js demo-dist/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js demo-dist/","demo:serve":"npm run demo:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css'};createServer((q,s)=>{let p=join('demo-dist',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream','Cache-Control':'no-store'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4790,()=>console.log('demo on http://127.0.0.1:4790/'))\"","site:build":"node build.mjs && cp dist/nsite-clay.js dist/nsite-clay-source.js dist/nsite-clay-wallet.js site/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js site/ && cp icons/nsite-clay-transparent.png icons/nsite-clay-mark.svg icons/nsite-clay.png site/ && cp media/editing.png site/ && mkdir -p site/shots && cp media/guide/*.png site/shots/ && node tools/stage-templates.mjs && node tools/stage-deploy.mjs && node tools/stage-runtime.mjs","site:serve":"npm run site:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css','.png':'image/png','.svg':'image/svg+xml','.md':'text/markdown'};createServer((q,s)=>{let p=join('site',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4780,()=>console.log('site/ on http://127.0.0.1:4780/ (site root = server root, as a gateway serves it)'))\"","walkthrough":"npm run site:build && node tools/publish-walkthrough.mjs","publish:local":"npm run site:build && node tools/publish-local.mjs","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"jooray","email":"npmjs@moonlestial.com"},"repository":{"url":"git+https://github.com/jooray/nsite-clay.git","type":"git"},"_npmVersion":"11.20.0","description":"A self-editable nsite. One HTML file that edits and republishes itself, hosted on Nostr.","directories":{},"_nodeVersion":"26.12.0","dependencies":{"ws":"^8.18.0","parse5":"8.0.1","quickcrop":"1.2.0","hyper-undo":"0.6.0","nostr-tools":"^2.10.4","@noble/hashes":"^1.7.1","qrcode-generator":"^1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.24.2","dompurify":"^3.4.15","playwright":"1.62.1"},"_npmOperationalInternal":{"tmp":"tmp/nsite-clay_0.3.21_1792404018939_0.06084895681115077","host":"s3://npm-registry-packages-npm-production"}},"0.3.22":{"name":"nsite-clay","version":"0.3.22","keywords":["nostr","nsite","blossom","nip-5a","malleable-html","self-saving","single-file","static-site","local-first","no-build","contenteditable"],"license":"MIT-0","_id":"nsite-clay@0.3.22","maintainers":[{"name":"jooray","email":"npmjs@moonlestial.com"}],"homepage":"https://nsite-clay.cypherpunk.today/","bugs":{"url":"https://github.com/jooray/nsite-clay/issues"},"bin":{"nsite-clay":"bin/nsite-clay.mjs"},"dist":{"shasum":"c71f1d6f3ed03db8449a69de39de0e6609e4d0b0","tarball":"https://registry.npmjs.org/nsite-clay/-/nsite-clay-0.3.22.tgz","fileCount":80,"integrity":"sha512-6qGl9pufhIih8pnnR50g/HSHpwnEIt7mA+hRlnGMkM0ZSPDQL+aPf/SrebFC7l0bDeyan9cbStI3u+HCt5EHFA==","signatures":[{"sig":"MEUCIQDqn+P7Yg7lMuBjEMpxPLtN+wRrTMLvz377ckhl0m54egIgaAzZNllLvTis0pk4gcasoEzEx8bV99fCk/WQ/owSGWA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCmrvqfFljogItw1xPp8W7tdO6axAdUdDr6DOzMObNVNgIgS2fMRHscvyd7zxJ5Imkd3p55yzmCzqJcGBXy4hdItnY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2615159},"main":"./dist/nsite-clay.esm.js","type":"module","engines":{"node":">=18"},"exports":{".":"./dist/nsite-clay.esm.js","./src/*":"./src/*","./dist/*":"./dist/*","./package.json":"./package.json"},"gitHead":"fbe90f66e0332f51ea3da6c8637d84e4d4cfd509","scripts":{"test":"node test/secret-files.mjs && node test/served-types.mjs && node test/relay-list.mjs && node test/unpublish.mjs && node test/verify.mjs && node test/ai-client.mjs && node test/ai-workflows.mjs && node test/ai-pictures.mjs && node test/publisher-ai.mjs && node test/publisher-key.mjs && node test/vault.mjs && node test/cashu.mjs && node test/wallet.mjs && node test/e2e-ai.mjs && node test/ai-evaluation.mjs","build":"node build.mjs","devnet":"node tools/devnet.mjs","review":"npm run site:build && node tools/review.mjs","demo:build":"node build.mjs && rm -rf demo-dist && mkdir -p demo-dist && cp demo/index.html demo-dist/ && cp dist/nsite-clay.js demo-dist/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js demo-dist/","demo:serve":"npm run demo:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css'};createServer((q,s)=>{let p=join('demo-dist',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream','Cache-Control':'no-store'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4790,()=>console.log('demo on http://127.0.0.1:4790/'))\"","site:build":"node build.mjs && cp dist/nsite-clay.js dist/nsite-clay-source.js dist/nsite-clay-wallet.js site/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js site/ && cp icons/nsite-clay-transparent.png icons/nsite-clay-mark.svg icons/nsite-clay.png site/ && cp media/editing.png site/ && mkdir -p site/shots && cp media/guide/*.png site/shots/ && node tools/stage-templates.mjs && node tools/stage-deploy.mjs && node tools/stage-runtime.mjs","site:serve":"npm run site:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css','.png':'image/png','.svg':'image/svg+xml','.md':'text/markdown'};createServer((q,s)=>{let p=join('site',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4780,()=>console.log('site/ on http://127.0.0.1:4780/ (site root = server root, as a gateway serves it)'))\"","walkthrough":"npm run site:build && node tools/publish-walkthrough.mjs","publish:local":"npm run site:build && node tools/publish-local.mjs","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"jooray","email":"npmjs@moonlestial.com"},"repository":{"url":"git+https://github.com/jooray/nsite-clay.git","type":"git"},"_npmVersion":"11.20.0","description":"A self-editable nsite. One HTML file that edits and republishes itself, hosted on Nostr.","directories":{},"_nodeVersion":"26.12.0","dependencies":{"ws":"^8.18.0","parse5":"8.0.1","quickcrop":"1.2.0","hyper-undo":"0.6.0","nostr-tools":"^2.10.4","@noble/hashes":"^1.7.1","qrcode-generator":"^1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.24.2","dompurify":"^3.4.15","playwright":"1.62.1"},"_npmOperationalInternal":{"tmp":"tmp/nsite-clay_0.3.22_1792409891153_0.13455249927380497","host":"s3://npm-registry-packages-npm-production"}},"0.3.26":{"name":"nsite-clay","version":"0.3.26","keywords":["nostr","nsite","blossom","nip-5a","malleable-html","self-saving","single-file","static-site","local-first","no-build","contenteditable"],"license":"MIT-0","_id":"nsite-clay@0.3.26","maintainers":[{"name":"jooray","email":"npmjs@moonlestial.com"}],"homepage":"https://nsite-clay.cypherpunk.today/","bugs":{"url":"https://github.com/jooray/nsite-clay/issues"},"bin":{"nsite-clay":"bin/nsite-clay.mjs"},"dist":{"shasum":"caf2a959ad61d0375a4ba6f775dc345b86b67f9c","tarball":"https://registry.npmjs.org/nsite-clay/-/nsite-clay-0.3.26.tgz","fileCount":82,"integrity":"sha512-ulrSivX8varsciEtHVZ0QVtJU4hpiyX5nVGMTBx+SLp6vJg1N8jAjz6EYBMckgeOHhqBl6LCAdXwuIgfehu4zw==","signatures":[{"sig":"MEUCICeuSe29ztjKTmrfhRj8kyd/8dLGhMv6t/XeYNo/HGW0AiEAroOqY6ASPDz3evksWAn0YtFlS2TTHfx2YukyPARSvyA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIGoXcCgGRSgGDPsQ6RxD0KF/BPzt9PcqusOWyWybbO4bAiEA3XPpy1jDy5mXTQpaLc+J/fnenNOhTJSfI4FszoUAThM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2969658},"main":"./dist/nsite-clay.esm.js","type":"module","engines":{"node":">=18"},"exports":{".":"./dist/nsite-clay.esm.js","./src/*":"./src/*","./dist/*":"./dist/*","./package.json":"./package.json"},"gitHead":"1813989804111781244341e9fc8c645df2fb91f0","scripts":{"test":"node test/secret-files.mjs && node test/served-types.mjs && node test/relay-list.mjs && node test/unpublish.mjs && node test/upgrade-siblings.mjs && node test/pull.mjs && node test/verify.mjs && node test/remembered-editor.mjs && node test/kept-signin.mjs && node test/multi-page.mjs && node test/agent-brief.mjs && node test/ai-client.mjs && node test/ai-workflows.mjs && node test/ai-pictures.mjs && node test/publisher-ai.mjs && node test/publisher-key.mjs && node test/vault.mjs && node test/cashu.mjs && node test/wallet.mjs && node test/e2e-ai.mjs && node test/ai-evaluation.mjs","build":"node build.mjs","devnet":"node tools/devnet.mjs","review":"npm run site:build && node tools/review.mjs","demo:build":"node build.mjs && rm -rf demo-dist && mkdir -p demo-dist && cp demo/index.html demo-dist/ && cp dist/nsite-clay.js demo-dist/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js demo-dist/","demo:serve":"npm run demo:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css'};createServer((q,s)=>{let p=join('demo-dist',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream','Cache-Control':'no-store'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4790,()=>console.log('demo on http://127.0.0.1:4790/'))\"","site:build":"node build.mjs && cp dist/nsite-clay.js dist/nsite-clay-source.js dist/nsite-clay-wallet.js site/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js site/ && cp icons/nsite-clay-transparent.png icons/nsite-clay-mark.svg icons/nsite-clay.png site/ && cp media/editing.png site/ && mkdir -p site/shots && cp media/guide/*.png site/shots/ && node tools/stage-templates.mjs && node tools/stage-deploy.mjs && node tools/stage-runtime.mjs && node tools/stage-agent.mjs","site:serve":"npm run site:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css','.png':'image/png','.svg':'image/svg+xml','.md':'text/markdown'};createServer((q,s)=>{let p=join('site',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4780,()=>console.log('site/ on http://127.0.0.1:4780/ (site root = server root, as a gateway serves it)'))\"","walkthrough":"npm run site:build && node tools/publish-walkthrough.mjs","publish:local":"npm run site:build && node tools/publish-local.mjs","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"jooray","email":"npmjs@moonlestial.com"},"repository":{"url":"git+https://github.com/jooray/nsite-clay.git","type":"git"},"_npmVersion":"11.20.0","description":"A self-editable nsite. One HTML file that edits and republishes itself, hosted on Nostr.","directories":{},"_nodeVersion":"26.12.1","dependencies":{"ws":"^8.18.0","parse5":"8.0.1","quickcrop":"1.2.0","hyper-undo":"0.6.0","nostr-tools":"^2.10.4","@noble/hashes":"^1.7.1","qrcode-generator":"^1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.24.2","dompurify":"^3.4.15","playwright":"1.62.1"},"_npmOperationalInternal":{"tmp":"tmp/nsite-clay_0.3.26_1792755144376_0.12931449224028002","host":"s3://npm-registry-packages-npm-production"}},"0.3.27":{"name":"nsite-clay","version":"0.3.27","keywords":["nostr","nsite","blossom","nip-5a","malleable-html","self-saving","single-file","static-site","local-first","no-build","contenteditable"],"license":"MIT-0","_id":"nsite-clay@0.3.27","maintainers":[{"name":"jooray","email":"npmjs@moonlestial.com"}],"homepage":"https://nsite-clay.cypherpunk.today/","bugs":{"url":"https://github.com/jooray/nsite-clay/issues"},"bin":{"nsite-clay":"bin/nsite-clay.mjs"},"dist":{"shasum":"94be20b952d67f7d8c8e68f61bf92a8b9fdf7e3c","tarball":"https://registry.npmjs.org/nsite-clay/-/nsite-clay-0.3.27.tgz","fileCount":82,"integrity":"sha512-LtbqcX0HL4hb47rnT8gPqP2o7MmuND7xoQWnLpAiol23cUL8b9Eawe0TJ1zjh8sRVpbaxquhMI+VR2LC4ByJXA==","signatures":[{"sig":"MEQCID4avKLaCnIX+dKeR+AHQ5+wu4TJay2qBc7cpYAUZbsqAiB+3RCLSmae8MrGJQ4gkGZPIEgXk1cRNEZelLON0QX+3w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDAvTDsyNgb3io/kp3eDSvH4prQmg+YoA8WkF7LFCnHYAIhANkek13P/ZVz1sUIpaBNTjIjozPWg61xwDRJsyTdYFEK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2977972},"main":"./dist/nsite-clay.esm.js","type":"module","engines":{"node":">=18"},"exports":{".":"./dist/nsite-clay.esm.js","./src/*":"./src/*","./dist/*":"./dist/*","./package.json":"./package.json"},"gitHead":"e926e09bc546468fcfa8b38a9ac352a71e95722e","scripts":{"test":"node test/secret-files.mjs && node test/served-types.mjs && node test/relay-list.mjs && node test/unpublish.mjs && node test/upgrade-siblings.mjs && node test/pull.mjs && node test/verify.mjs && node test/stale-copy.mjs && node test/remembered-editor.mjs && node test/kept-signin.mjs && node test/multi-page.mjs && node test/agent-brief.mjs && node test/ai-client.mjs && node test/ai-workflows.mjs && node test/ai-pictures.mjs && node test/publisher-ai.mjs && node test/publisher-key.mjs && node test/vault.mjs && node test/cashu.mjs && node test/wallet.mjs && node test/e2e-ai.mjs && node test/ai-evaluation.mjs","build":"node build.mjs","devnet":"node tools/devnet.mjs","review":"npm run site:build && node tools/review.mjs","demo:build":"node build.mjs && rm -rf demo-dist && mkdir -p demo-dist && cp demo/index.html demo-dist/ && cp dist/nsite-clay.js demo-dist/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js demo-dist/","demo:serve":"npm run demo:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css'};createServer((q,s)=>{let p=join('demo-dist',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream','Cache-Control':'no-store'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4790,()=>console.log('demo on http://127.0.0.1:4790/'))\"","site:build":"node build.mjs && cp dist/nsite-clay.js dist/nsite-clay-source.js dist/nsite-clay-wallet.js site/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js site/ && cp icons/nsite-clay-transparent.png icons/nsite-clay-mark.svg icons/nsite-clay.png site/ && cp media/editing.png site/ && mkdir -p site/shots && cp media/guide/*.png site/shots/ && node tools/stage-templates.mjs && node tools/stage-deploy.mjs && node tools/stage-runtime.mjs && node tools/stage-agent.mjs","site:serve":"npm run site:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css','.png':'image/png','.svg':'image/svg+xml','.md':'text/markdown'};createServer((q,s)=>{let p=join('site',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4780,()=>console.log('site/ on http://127.0.0.1:4780/ (site root = server root, as a gateway serves it)'))\"","walkthrough":"npm run site:build && node tools/publish-walkthrough.mjs","publish:local":"npm run site:build && node tools/publish-local.mjs","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"jooray","email":"npmjs@moonlestial.com"},"repository":{"url":"git+https://github.com/jooray/nsite-clay.git","type":"git"},"_npmVersion":"11.20.0","description":"A self-editable nsite. One HTML file that edits and republishes itself, hosted on Nostr.","directories":{},"_nodeVersion":"26.12.1","dependencies":{"ws":"^8.18.0","parse5":"8.0.1","quickcrop":"1.2.0","hyper-undo":"0.6.0","nostr-tools":"^2.10.4","@noble/hashes":"^1.7.1","qrcode-generator":"^1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.24.2","dompurify":"^3.4.15","playwright":"1.62.1"},"_npmOperationalInternal":{"tmp":"tmp/nsite-clay_0.3.27_1792795698313_0.05880853125753016","host":"s3://npm-registry-packages-npm-production"}},"0.3.28":{"name":"nsite-clay","version":"0.3.28","keywords":["nostr","nsite","blossom","nip-5a","malleable-html","self-saving","single-file","static-site","local-first","no-build","contenteditable"],"license":"MIT-0","_id":"nsite-clay@0.3.28","maintainers":[{"name":"jooray","email":"npmjs@moonlestial.com"}],"homepage":"https://nsite-clay.cypherpunk.today/","bugs":{"url":"https://github.com/jooray/nsite-clay/issues"},"bin":{"nsite-clay":"bin/nsite-clay.mjs"},"dist":{"shasum":"5c85b6e1f467292be1b9c17b4de02a337a65d052","tarball":"https://registry.npmjs.org/nsite-clay/-/nsite-clay-0.3.28.tgz","fileCount":89,"integrity":"sha512-CRuwLpK777p6A1syxhLMDZ655oZzMhew+03X+WkFS9SjisfG3RpKoLVxtkogx2nMN9VERVi0dG9qnbdAfTshlw==","signatures":[{"sig":"MEYCIQC1c3MoSMeyGdKfMlffMi/4LNOOBS4PqV7fT4T5JsJwDQIhALXc+d56awK3IGNR0i53iemRS+x3XoeEfsouhM6pXleu","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQC6En5Vjasj0PnbfqmBaMUEJINF2Fc2h8EdvK9xcE8NIgIgcDxlNTB3Y7j8zCGufzU+lln9fAe1YdqxbyWlEvLHPrY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3540924},"main":"./dist/nsite-clay.esm.js","type":"module","engines":{"node":">=18"},"exports":{".":"./dist/nsite-clay.esm.js","./src/*":"./src/*","./dist/*":"./dist/*","./package.json":"./package.json"},"gitHead":"3a823a5964a896987f8897a9a81dab3258f5260a","scripts":{"test":"node test/secret-files.mjs && node test/served-types.mjs && node test/relay-list.mjs && node test/unpublish.mjs && node test/upgrade-siblings.mjs && node test/pull.mjs && node test/verify.mjs && node test/stale-copy.mjs && node test/remembered-editor.mjs && node test/kept-signin.mjs && node test/multi-page.mjs && node test/agent-brief.mjs && node test/ai-client.mjs && node test/ai-workflows.mjs && node test/ai-pictures.mjs && node test/publisher-ai.mjs && node test/publisher-key.mjs && node test/vault.mjs && node test/cashu.mjs && node test/wallet.mjs && node test/e2e-ai.mjs && node test/ai-evaluation.mjs && node test/sealed.mjs","build":"node build.mjs","devnet":"node tools/devnet.mjs","review":"npm run site:build && node tools/review.mjs","demo:build":"node build.mjs && rm -rf demo-dist && mkdir -p demo-dist && cp demo/index.html demo-dist/ && cp dist/nsite-clay.js demo-dist/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js demo-dist/","demo:serve":"npm run demo:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css'};createServer((q,s)=>{let p=join('demo-dist',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream','Cache-Control':'no-store'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4790,()=>console.log('demo on http://127.0.0.1:4790/'))\"","site:build":"node build.mjs && cp dist/nsite-clay.js dist/nsite-clay-source.js dist/nsite-clay-wallet.js site/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js site/ && cp icons/nsite-clay-transparent.png icons/nsite-clay-mark.svg icons/nsite-clay.png site/ && cp media/editing.png site/ && mkdir -p site/shots && cp media/guide/*.png site/shots/ && node tools/stage-templates.mjs && node tools/stage-deploy.mjs && node tools/stage-runtime.mjs && node tools/stage-agent.mjs","site:serve":"npm run site:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css','.png':'image/png','.svg':'image/svg+xml','.md':'text/markdown'};createServer((q,s)=>{let p=join('site',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4780,()=>console.log('site/ on http://127.0.0.1:4780/ (site root = server root, as a gateway serves it)'))\"","walkthrough":"npm run site:build && node tools/publish-walkthrough.mjs","publish:local":"npm run site:build && node tools/publish-local.mjs","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"jooray","email":"npmjs@moonlestial.com"},"repository":{"url":"git+https://github.com/jooray/nsite-clay.git","type":"git"},"_npmVersion":"11.20.0","description":"A self-editable nsite. One HTML file that edits and republishes itself, hosted on Nostr.","directories":{},"_nodeVersion":"26.13.0","dependencies":{"ws":"^8.18.0","parse5":"8.0.1","quickcrop":"1.2.0","hyper-undo":"0.6.0","nostr-tools":"^2.10.4","@noble/hashes":"^1.7.1","qrcode-generator":"^1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.24.2","dompurify":"^3.4.15","playwright":"1.62.1"},"_npmOperationalInternal":{"tmp":"tmp/nsite-clay_0.3.28_1794732794704_0.5929421526383354","host":"s3://npm-registry-packages-npm-production"}},"0.3.32":{"name":"nsite-clay","version":"0.3.32","keywords":["nostr","nsite","blossom","nip-5a","malleable-html","self-saving","single-file","static-site","local-first","no-build","contenteditable"],"license":"MIT-0","_id":"nsite-clay@0.3.32","maintainers":[{"name":"jooray","email":"npmjs@moonlestial.com"}],"homepage":"https://nsite-clay.cypherpunk.today/","bugs":{"url":"https://github.com/jooray/nsite-clay/issues"},"bin":{"nsite-clay":"bin/nsite-clay.mjs"},"dist":{"shasum":"1bdee0eaabdc180940dfeadbcace00a52c2ef676","tarball":"https://registry.npmjs.org/nsite-clay/-/nsite-clay-0.3.32.tgz","fileCount":93,"integrity":"sha512-GXprPBEv8pHNilWwLw6jtENKzsQiMUOMO5tJ+rjv6UbBjd/1kTjsHgbu8VYbKpU2k1+gIVTgFb+y9rP2JArKog==","signatures":[{"sig":"MEUCIDrpWZdn8vaz+WAgtc9mPPvjU9QJvl1sTPMzoZL45HSBAiEA4KLByiefzuw9qhIOA46FLdKYVHvaYPcWvqpmGquV734=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIElv/qVljvspCGh916rD0bnwocDA58tVe8lRT6ie/Z95AiEAtoDAg5lJUEDAJWLj9E9UYVvodtLrpbDoN8+dmoLACmM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3761537},"main":"./dist/nsite-clay.esm.js","type":"module","engines":{"node":">=18"},"exports":{".":"./dist/nsite-clay.esm.js","./src/*":"./src/*","./dist/*":"./dist/*","./package.json":"./package.json"},"gitHead":"9e4bfa05d701f12c53b3b3615329f653e48544ff","scripts":{"test":"node test/secret-files.mjs && node test/served-types.mjs && node test/relay-list.mjs && node test/unpublish.mjs && node test/upgrade-siblings.mjs && node test/pull.mjs && node test/verify.mjs && node test/stale-copy.mjs && node test/remembered-editor.mjs && node test/kept-signin.mjs && node test/multi-page.mjs && node test/agent-brief.mjs && node test/ai-client.mjs && node test/ai-workflows.mjs && node test/ai-pictures.mjs && node test/publisher-ai.mjs && node test/publisher-key.mjs && node test/vault.mjs && node test/cashu.mjs && node test/wallet.mjs && node test/e2e-ai.mjs && node test/ai-evaluation.mjs && node test/sealed.mjs && node test/comments.mjs && node test/signer-app.mjs && node test/publisher-signer.mjs &&node test/skills.mjs","build":"node build.mjs","devnet":"node tools/devnet.mjs","review":"npm run site:build && node tools/review.mjs","demo:build":"node build.mjs && rm -rf demo-dist && mkdir -p demo-dist && cp demo/index.html demo-dist/ && cp dist/nsite-clay.js demo-dist/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js demo-dist/","demo:serve":"npm run demo:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css'};createServer((q,s)=>{let p=join('demo-dist',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream','Cache-Control':'no-store'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4790,()=>console.log('demo on http://127.0.0.1:4790/'))\"","site:build":"node build.mjs && cp dist/nsite-clay.js dist/nsite-clay-source.js dist/nsite-clay-wallet.js site/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js site/ && cp icons/nsite-clay-transparent.png icons/nsite-clay-mark.svg icons/nsite-clay.png site/ && cp media/editing.png site/ && mkdir -p site/shots && cp media/guide/*.png site/shots/ && node tools/stage-templates.mjs && node tools/stage-deploy.mjs && node tools/stage-runtime.mjs && node tools/stage-agent.mjs && npm run skills:pack && rm -rf site/skills && mkdir -p site/skills && cp dist-skills/*.zip site/skills/","site:serve":"npm run site:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css','.png':'image/png','.svg':'image/svg+xml','.md':'text/markdown'};createServer((q,s)=>{let p=join('site',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4780,()=>console.log('site/ on http://127.0.0.1:4780/ (site root = server root, as a gateway serves it)'))\"","skills:pack":"node tools/pack-skills.mjs","walkthrough":"npm run site:build && node tools/publish-walkthrough.mjs","publish:local":"npm run site:build && node tools/publish-local.mjs","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"jooray","email":"npmjs@moonlestial.com"},"repository":{"url":"git+https://github.com/jooray/nsite-clay.git","type":"git"},"_npmVersion":"11.20.0","description":"A self-editable nsite. One HTML file that edits and republishes itself, hosted on Nostr.","directories":{},"_nodeVersion":"26.13.1","dependencies":{"ws":"^8.18.0","parse5":"8.0.1","quickcrop":"1.2.0","hyper-undo":"0.6.0","nostr-tools":"^2.10.4","@noble/hashes":"^1.7.1","qrcode-generator":"^1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.24.2","dompurify":"^3.4.15","playwright":"1.62.1"},"_npmOperationalInternal":{"tmp":"tmp/nsite-clay_0.3.32_1794756314872_0.4864052393424253","host":"s3://npm-registry-packages-npm-production"}},"0.3.33":{"name":"nsite-clay","version":"0.3.33","keywords":["nostr","nsite","blossom","nip-5a","malleable-html","self-saving","single-file","static-site","local-first","no-build","contenteditable"],"license":"MIT-0","_id":"nsite-clay@0.3.33","maintainers":[{"name":"jooray","email":"npmjs@moonlestial.com"}],"homepage":"https://nsite-clay.cypherpunk.today/","bugs":{"url":"https://github.com/jooray/nsite-clay/issues"},"bin":{"nsite-clay":"bin/nsite-clay.mjs"},"dist":{"shasum":"185014f54046ee36bc52803279ac3336fc7b0f77","tarball":"https://registry.npmjs.org/nsite-clay/-/nsite-clay-0.3.33.tgz","fileCount":93,"integrity":"sha512-CwInhWnjzwAZAfcR3jUJC0BO99+I1erU/5QF4RC1sMMfP9MrNCH/sMQ3anWUw1xAQdGMS5FFFdfaoJ4ELSn/rA==","signatures":[{"sig":"MEQCIHtQ5FySW/l2d6hMeUhOuIY9b6v/YpYzr6iS+4R/udslAiAhGG/pVJk4IOh98+cPmQjRgYLNZnHeYZNuLpN37RXrJw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCNVPoYA7rgwiqHJxF8d9AszvhTb4ZCE4/1rusW1jZDfAIgLPmP98dpynThVAB2O2wlSJKEu1mXfjvCGBtBZg8bNPw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3764619},"main":"./dist/nsite-clay.esm.js","type":"module","engines":{"node":">=18"},"exports":{".":"./dist/nsite-clay.esm.js","./src/*":"./src/*","./dist/*":"./dist/*","./package.json":"./package.json"},"gitHead":"ccb6d2bc2aaf6629194e68bc4fa44a45636daecc","scripts":{"test":"node test/secret-files.mjs && node test/served-types.mjs && node test/relay-list.mjs && node test/unpublish.mjs && node test/upgrade-siblings.mjs && node test/pull.mjs && node test/verify.mjs && node test/stale-copy.mjs && node test/remembered-editor.mjs && node test/kept-signin.mjs && node test/multi-page.mjs && node test/agent-brief.mjs && node test/ai-client.mjs && node test/ai-workflows.mjs && node test/ai-pictures.mjs && node test/publisher-ai.mjs && node test/publisher-key.mjs && node test/vault.mjs && node test/cashu.mjs && node test/wallet.mjs && node test/e2e-ai.mjs && node test/ai-evaluation.mjs && node test/sealed.mjs && node test/comments.mjs && node test/signer-app.mjs && node test/publisher-signer.mjs &&node test/skills.mjs","build":"node build.mjs","devnet":"node tools/devnet.mjs","review":"npm run site:build && node tools/review.mjs","demo:build":"node build.mjs && rm -rf demo-dist && mkdir -p demo-dist && cp demo/index.html demo-dist/ && cp dist/nsite-clay.js demo-dist/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js demo-dist/","demo:serve":"npm run demo:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css'};createServer((q,s)=>{let p=join('demo-dist',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream','Cache-Control':'no-store'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4790,()=>console.log('demo on http://127.0.0.1:4790/'))\"","site:build":"node build.mjs && cp dist/nsite-clay.js dist/nsite-clay-source.js dist/nsite-clay-wallet.js site/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js site/ && cp icons/nsite-clay-transparent.png icons/nsite-clay-mark.svg icons/nsite-clay.png site/ && cp media/editing.png site/ && mkdir -p site/shots && cp media/guide/*.png site/shots/ && node tools/stage-templates.mjs && node tools/stage-deploy.mjs && node tools/stage-runtime.mjs && node tools/stage-agent.mjs && npm run skills:pack && rm -rf site/skills && mkdir -p site/skills && cp dist-skills/*.zip site/skills/","site:serve":"npm run site:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css','.png':'image/png','.svg':'image/svg+xml','.md':'text/markdown'};createServer((q,s)=>{let p=join('site',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4780,()=>console.log('site/ on http://127.0.0.1:4780/ (site root = server root, as a gateway serves it)'))\"","skills:pack":"node tools/pack-skills.mjs","walkthrough":"npm run site:build && node tools/publish-walkthrough.mjs","publish:local":"npm run site:build && node tools/publish-local.mjs","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"jooray","email":"npmjs@moonlestial.com"},"repository":{"url":"git+https://github.com/jooray/nsite-clay.git","type":"git"},"_npmVersion":"11.20.0","description":"A self-editable nsite. One HTML file that edits and republishes itself, hosted on Nostr.","directories":{},"_nodeVersion":"26.13.1","dependencies":{"ws":"^8.18.0","parse5":"8.0.1","quickcrop":"1.2.0","hyper-undo":"0.6.0","nostr-tools":"^2.10.4","@noble/hashes":"^1.7.1","qrcode-generator":"^1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.24.2","dompurify":"^3.4.15","playwright":"1.62.1"},"_npmOperationalInternal":{"tmp":"tmp/nsite-clay_0.3.33_1794788668369_0.21244988626690509","host":"s3://npm-registry-packages-npm-production"}},"0.3.34":{"name":"nsite-clay","version":"0.3.34","keywords":["nostr","nsite","blossom","nip-5a","malleable-html","self-saving","single-file","static-site","local-first","no-build","contenteditable"],"license":"MIT-0","_id":"nsite-clay@0.3.34","maintainers":[{"name":"jooray","email":"npmjs@moonlestial.com"}],"homepage":"https://nsite-clay.cypherpunk.today/","bugs":{"url":"https://github.com/jooray/nsite-clay/issues"},"bin":{"nsite-clay":"bin/nsite-clay.mjs"},"dist":{"shasum":"2c299b76928e23b0e6b1dfb51495f18d5a8cc61b","tarball":"https://registry.npmjs.org/nsite-clay/-/nsite-clay-0.3.34.tgz","fileCount":93,"integrity":"sha512-433KmPveyXmWs18O6CglpWcePgaT2DcnE3y4L2IYsREW50LfjwcP/gfQaXSumY6RLrTC29DbGx2qB+S6T/GiyQ==","signatures":[{"sig":"MEUCIDF3N70TDaaZ8CGrrDcVIQKaYMjAYkmXKYdZpjyzsOaoAiEAnLSE69evBftKdqIljRoOAcKdyomcYOzdzWbk2lmAuqE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIAJttIq5E6H7CpeaPS2rGimxnHIhXjfGvhv5BNafU36dAiEA8AqNpIWI+dU6nafptgFxLliHj9+/o0NmiRDezZ67XAM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3765158},"main":"./dist/nsite-clay.esm.js","type":"module","engines":{"node":">=18"},"exports":{".":"./dist/nsite-clay.esm.js","./src/*":"./src/*","./dist/*":"./dist/*","./package.json":"./package.json"},"gitHead":"fee910887564c93de7e8b1680e7f73ae62931e91","scripts":{"test":"node test/secret-files.mjs && node test/served-types.mjs && node test/relay-list.mjs && node test/unpublish.mjs && node test/upgrade-siblings.mjs && node test/pull.mjs && node test/verify.mjs && node test/stale-copy.mjs && node test/remembered-editor.mjs && node test/kept-signin.mjs && node test/multi-page.mjs && node test/agent-brief.mjs && node test/ai-client.mjs && node test/ai-workflows.mjs && node test/ai-pictures.mjs && node test/publisher-ai.mjs && node test/publisher-key.mjs && node test/vault.mjs && node test/cashu.mjs && node test/wallet.mjs && node test/e2e-ai.mjs && node test/ai-evaluation.mjs && node test/sealed.mjs && node test/comments.mjs && node test/signer-app.mjs && node test/publisher-signer.mjs &&node test/skills.mjs","build":"node build.mjs","devnet":"node tools/devnet.mjs","review":"npm run site:build && node tools/review.mjs","demo:build":"node build.mjs && rm -rf demo-dist && mkdir -p demo-dist && cp demo/index.html demo-dist/ && cp dist/nsite-clay.js demo-dist/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js demo-dist/","demo:serve":"npm run demo:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css'};createServer((q,s)=>{let p=join('demo-dist',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream','Cache-Control':'no-store'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4790,()=>console.log('demo on http://127.0.0.1:4790/'))\"","site:build":"node build.mjs && cp dist/nsite-clay.js dist/nsite-clay-source.js dist/nsite-clay-wallet.js site/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js site/ && cp icons/nsite-clay-transparent.png icons/nsite-clay-mark.svg icons/nsite-clay.png site/ && cp media/editing.png site/ && mkdir -p site/shots && cp media/guide/*.png site/shots/ && node tools/stage-templates.mjs && node tools/stage-deploy.mjs && node tools/stage-runtime.mjs && node tools/stage-agent.mjs && npm run skills:pack && rm -rf site/skills && mkdir -p site/skills && cp dist-skills/*.zip site/skills/","site:serve":"npm run site:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css','.png':'image/png','.svg':'image/svg+xml','.md':'text/markdown'};createServer((q,s)=>{let p=join('site',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4780,()=>console.log('site/ on http://127.0.0.1:4780/ (site root = server root, as a gateway serves it)'))\"","skills:pack":"node tools/pack-skills.mjs","walkthrough":"npm run site:build && node tools/publish-walkthrough.mjs","publish:local":"npm run site:build && node tools/publish-local.mjs","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"jooray","email":"npmjs@moonlestial.com"},"repository":{"url":"git+https://github.com/jooray/nsite-clay.git","type":"git"},"_npmVersion":"11.20.0","description":"A self-editable nsite. One HTML file that edits and republishes itself, hosted on Nostr.","directories":{},"_nodeVersion":"26.13.1","dependencies":{"ws":"^8.18.0","parse5":"8.0.1","quickcrop":"1.2.0","hyper-undo":"0.6.0","nostr-tools":"^2.10.4","@noble/hashes":"^1.7.1","qrcode-generator":"^1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.24.2","dompurify":"^3.4.15","playwright":"1.62.1"},"_npmOperationalInternal":{"tmp":"tmp/nsite-clay_0.3.34_1794818589525_0.8722715345131994","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"nsite-clay","version":"0.4.1","keywords":["nostr","nsite","blossom","nip-5a","malleable-html","self-saving","single-file","static-site","local-first","no-build","contenteditable"],"license":"MIT-0","_id":"nsite-clay@0.4.1","maintainers":[{"name":"jooray","email":"npmjs@moonlestial.com"}],"homepage":"https://nsite-clay.cypherpunk.today/","bugs":{"url":"https://github.com/jooray/nsite-clay/issues"},"bin":{"nsite-clay":"bin/nsite-clay.mjs"},"dist":{"shasum":"86a495dfc55bed09e7e29aa2fa9145d9a9bdd688","tarball":"https://registry.npmjs.org/nsite-clay/-/nsite-clay-0.4.1.tgz","fileCount":120,"integrity":"sha512-nyuzh/8RUoorJyOgrpF1k4F4fwH6tqi1hTZe6DIvSQVCiZ/pntijy/9JItxmVleviNt8ZrF2npFFjv33DN+b4A==","signatures":[{"sig":"MEUCIQCRO4JHmbuEP5RXWrF0pe7Bm9NgiAzlI0fzfBCHdz1dOAIgGeO9oAwDDmJZG5ba4TFSSCOpsoOdPg7Z4OGXjxCR4lw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCWcDxnDa2+Je3SNtULKOdl2IxEe+rYSwa8imWG/rhsJAIgVuYsAWBLN5Cr84zozjuw2x/hCNGKHBe3EH0gDrq+IDA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4162727},"main":"./dist/nsite-clay.esm.js","type":"module","engines":{"node":">=18"},"exports":{".":"./dist/nsite-clay.esm.js","./src/*":"./src/*","./dist/*":"./dist/*","./package.json":"./package.json"},"gitHead":"c108d303ba360a6f80035fef63e36f48b6a9485a","scripts":{"test":"node test/secret-files.mjs && node test/served-types.mjs && node test/relay-list.mjs && node test/unpublish.mjs && node test/upgrade-siblings.mjs && node test/pull.mjs && node test/verify.mjs && node test/stale-copy.mjs && node test/remembered-editor.mjs && node test/blossom-servers.mjs && node test/kept-signin.mjs && node test/multi-page.mjs && node test/agent-brief.mjs && node test/ai-client.mjs && node test/ai-workflows.mjs && node test/ai-pictures.mjs && node test/publisher-ai.mjs && node test/publisher-key.mjs && node test/vault.mjs && node test/cashu.mjs && node test/wallet.mjs && node test/e2e-ai.mjs && node test/ai-evaluation.mjs && node test/sealed.mjs && node test/stale-gateway.mjs && node test/comments.mjs && node test/artifact-faults.mjs && node test/workspace-faults.mjs && node test/workspace-browser.mjs && node test/artifact-guard.mjs &&node test/signer-app.mjs && node test/publisher-signer.mjs && node test/skills.mjs && node test/decision-board.mjs && node test/decision-board-browser.mjs","build":"node build.mjs","devnet":"node tools/devnet.mjs","review":"npm run site:build && node tools/review.mjs","demo:build":"node build.mjs && rm -rf demo-dist && mkdir -p demo-dist && cp demo/index.html demo-dist/ && cp dist/nsite-clay.js demo-dist/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js demo-dist/","demo:serve":"npm run demo:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css'};createServer((q,s)=>{let p=join('demo-dist',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream','Cache-Control':'no-store'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4790,()=>console.log('demo on http://127.0.0.1:4790/'))\"","site:build":"node build.mjs && cp dist/nsite-clay.js dist/nsite-clay-source.js dist/nsite-clay-wallet.js site/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js site/ && cp icons/nsite-clay-transparent.png icons/nsite-clay-mark.svg icons/nsite-clay.png site/ && cp media/editing.png site/ && mkdir -p site/shots && cp media/guide/*.png site/shots/ && node tools/stage-templates.mjs && node tools/stage-deploy.mjs && node tools/stage-runtime.mjs && node tools/stage-agent.mjs && npm run skills:pack && rm -rf site/skills && mkdir -p site/skills && cp dist-skills/*.zip site/skills/","site:serve":"npm run site:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css','.png':'image/png','.svg':'image/svg+xml','.md':'text/markdown'};createServer((q,s)=>{let p=join('site',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4780,()=>console.log('site/ on http://127.0.0.1:4780/ (site root = server root, as a gateway serves it)'))\"","skills:pack":"node tools/pack-skills.mjs","walkthrough":"npm run site:build && node tools/publish-walkthrough.mjs","publish:local":"npm run site:build && node tools/publish-local.mjs","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"jooray","email":"npmjs@moonlestial.com"},"repository":{"url":"git+https://github.com/jooray/nsite-clay.git","type":"git"},"_npmVersion":"11.20.0","description":"A self-editable nsite. One HTML file that edits and republishes itself, hosted on Nostr.","directories":{},"_nodeVersion":"26.13.1","dependencies":{"ws":"^8.18.0","parse5":"8.0.1","quickcrop":"1.2.0","hyper-undo":"0.6.0","nostr-tools":"^2.10.4","@noble/hashes":"^1.7.1","qrcode-generator":"^1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.24.2","dompurify":"^3.4.15","playwright":"1.62.1"},"_npmOperationalInternal":{"tmp":"tmp/nsite-clay_0.4.1_1795365026114_0.552147602878592","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"_id":"nsite-clay@0.4.2","bin":{"nsite-clay":"bin/nsite-clay.mjs"},"bugs":{"url":"https://github.com/jooray/nsite-clay/issues"},"dist":{"shasum":"d0856fcf47ff3ac960a9f40f8f6889925f64e282","tarball":"https://registry.npmjs.org/nsite-clay/-/nsite-clay-0.4.2.tgz","fileCount":120,"integrity":"sha512-PRPCHmt5jYjFe+eicOwIH8l0rSr+2K3tNfbB2o62tGaqJauGPzs3EQhxI5Y4CLYyRNaPPuk6F8DiD4Q5f4RiEA==","signatures":[{"sig":"MEQCIEMmr9ZMqDxZv1FHGE3SuZet/3rmlE0U7thQ89ahQ9/iAiBrR/uK7pRaxgCjywiZA/4VWE7zzMIssaL+4bLR3fHKRw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCIeU7FPtYPut6BTeHoRiV/wpLNBAQrZB1eJm+E3Hb2pQIhAKsizZztmbdZtigaTtZrXfjXGfv9DLlFpt0E7/Zo3J2n"}],"unpackedSize":4172889},"main":"./dist/nsite-clay.esm.js","name":"nsite-clay","type":"module","engines":{"node":">=18"},"exports":{".":"./dist/nsite-clay.esm.js","./src/*":"./src/*","./dist/*":"./dist/*","./package.json":"./package.json"},"gitHead":"6bbbbf2e9d2051f7d94f527f29bcc4cdf0b613ee","license":"MIT-0","scripts":{"test":"node test/secret-files.mjs && node test/served-types.mjs && node test/relay-list.mjs && node test/unpublish.mjs && node test/upgrade-siblings.mjs && node test/pull.mjs && node test/verify.mjs && node test/stale-copy.mjs && node test/remembered-editor.mjs && node test/blossom-servers.mjs && node test/kept-signin.mjs && node test/multi-page.mjs && node test/agent-brief.mjs && node test/ai-client.mjs && node test/ai-workflows.mjs && node test/ai-pictures.mjs && node test/publisher-ai.mjs && node test/publisher-key.mjs && node test/vault.mjs && node test/cashu.mjs && node test/wallet.mjs && node test/e2e-ai.mjs && node test/ai-evaluation.mjs && node test/sealed.mjs && node test/stale-gateway.mjs && node test/comments.mjs && node test/artifact-faults.mjs && node test/workspace-faults.mjs && node test/workspace-browser.mjs && node test/artifact-guard.mjs &&node test/signer-app.mjs && node test/publisher-signer.mjs && node test/skills.mjs && node test/decision-board.mjs && node test/decision-board-browser.mjs","build":"node build.mjs","devnet":"node tools/devnet.mjs","review":"npm run site:build && node tools/review.mjs","demo:build":"node build.mjs && rm -rf demo-dist && mkdir -p demo-dist && cp demo/index.html demo-dist/ && cp dist/nsite-clay.js demo-dist/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js demo-dist/","demo:serve":"npm run demo:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css'};createServer((q,s)=>{let p=join('demo-dist',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream','Cache-Control':'no-store'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4790,()=>console.log('demo on http://127.0.0.1:4790/'))\"","site:build":"node build.mjs && cp dist/nsite-clay.js dist/nsite-clay-source.js dist/nsite-clay-wallet.js site/ && cp templates/_shared/nsite-clay-base.css templates/_shared/nsite-clay-chrome.js site/ && cp icons/nsite-clay-transparent.png icons/nsite-clay-mark.svg icons/nsite-clay.png site/ && cp media/editing.png site/ && mkdir -p site/shots && cp media/guide/*.png site/shots/ && node tools/stage-templates.mjs && node tools/stage-deploy.mjs && node tools/stage-runtime.mjs && node tools/stage-agent.mjs && npm run skills:pack && rm -rf site/skills && mkdir -p site/skills && cp dist-skills/*.zip site/skills/","site:serve":"npm run site:build && node -e \"const{createServer}=require('node:http'),{readFileSync,statSync}=require('node:fs'),{join,extname}=require('node:path');const T={'.html':'text/html','.js':'text/javascript','.css':'text/css','.png':'image/png','.svg':'image/svg+xml','.md':'text/markdown'};createServer((q,s)=>{let p=join('site',decodeURIComponent(q.url.split('?')[0]));try{if(statSync(p).isDirectory())p=join(p,'index.html')}catch{}try{const b=readFileSync(p);s.writeHead(200,{'Content-Type':T[extname(p)]||'application/octet-stream'});s.end(b)}catch{s.writeHead(404);s.end('not found')}}).listen(4780,()=>console.log('site/ on http://127.0.0.1:4780/ (site root = server root, as a gateway serves it)'))\"","skills:pack":"node tools/pack-skills.mjs","walkthrough":"npm run site:build && node tools/publish-walkthrough.mjs","publish:local":"npm run site:build && node tools/publish-local.mjs","prepublishOnly":"npm run build && npm test"},"version":"0.4.2","_npmUser":{"name":"jooray","email":"npmjs@moonlestial.com"},"homepage":"https://nsite-clay.cypherpunk.today/","keywords":["nostr","nsite","blossom","nip-5a","malleable-html","self-saving","single-file","static-site","local-first","no-build","contenteditable"],"repository":{"url":"git+https://github.com/jooray/nsite-clay.git","type":"git"},"_npmVersion":"11.20.0","description":"A self-editable nsite. One HTML file that edits and republishes itself, hosted on Nostr.","directories":{},"maintainers":[{"name":"jooray","email":"npmjs@moonlestial.com"}],"_nodeVersion":"26.13.1","dependencies":{"ws":"^8.18.0","parse5":"8.0.1","quickcrop":"1.2.0","hyper-undo":"0.6.0","nostr-tools":"^2.10.4","@noble/hashes":"^1.7.1","qrcode-generator":"^1.5.2"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.24.2","dompurify":"^3.4.15","playwright":"1.62.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nsite-clay_0.4.2_1795379923038_0.06873770071691532"}}},"time":{"created":"2026-09-25T20:45:45.442Z","modified":"2026-11-22T20:38:43.593Z","0.3.17":"2026-09-25T20:45:45.684Z","0.3.19":"2026-09-26T07:00:41.517Z","0.3.20":"2026-09-27T09:13:52.849Z","0.3.21":"2026-10-19T10:00:19.051Z","0.3.22":"2026-10-19T11:38:11.347Z","0.3.26":"2026-10-23T11:32:24.496Z","0.3.27":"2026-10-23T22:48:18.423Z","0.3.28":"2026-11-15T08:53:14.813Z","0.3.32":"2026-11-15T15:25:15.025Z","0.3.33":"2026-11-16T00:24:28.494Z","0.3.34":"2026-11-16T08:43:09.670Z","0.4.1":"2026-11-22T16:30:26.233Z","0.4.2":"2026-11-22T20:38:43.176Z"},"bugs":{"url":"https://github.com/jooray/nsite-clay/issues"},"license":"MIT-0","homepage":"https://nsite-clay.cypherpunk.today/","keywords":["nostr","nsite","blossom","nip-5a","malleable-html","self-saving","single-file","static-site","local-first","no-build","contenteditable"],"repository":{"url":"git+https://github.com/jooray/nsite-clay.git","type":"git"},"description":"A self-editable nsite. One HTML file that edits and republishes itself, hosted on Nostr.","maintainers":[{"name":"jooray","email":"npmjs@moonlestial.com"}],"readme":"<p align=\"center\">\n  <img src=\"icons/nsite-clay-transparent.png\" alt=\"\" width=\"140\" height=\"140\">\n</p>\n\n<h1 align=\"center\">nsite-clay</h1>\n\n<p align=\"center\">\n  A self-editable nsite.<br>\n  One HTML file that edits and republishes itself, hosted on Nostr.\n</p>\n\n<p align=\"center\">\n  <a href=\"https://nsite-clay.cypherpunk.today/\"><b>Homepage</b></a>\n  ·\n  <a href=\"https://npub16kwfcualkq4kz6vgs8tze0j4jkpgs53h48ghmpnj80s7cvfjspwsh4uk9u.nsite.lol/\">Live demo</a>\n  ·\n  <a href=\"docs/RUNTIME-API.md\">Runtime reference</a>\n</p>\n\n<p align=\"center\"><sub>The homepage is itself an nsite-clay document, and it edits itself.<br>\nIt is served at <code>nsite-clay.cypherpunk.today</code> for readability, which redirects to the\naddress that actually owns it:<br>\n<code>npub12edc7326qsryw5rw5yw0yh57fmj9r8jf4c8xazz6333w305qgnms9ypvj2.nsite.lol</code>. That one\nneeds no domain, no server and no renewal.</sub></p>\n\n<p align=\"center\">\n  <img src=\"media/editing.png\" alt=\"The heading of a published page being edited in the browser, with the block menu open\" width=\"880\">\n</p>\n\n---\n\n<!-- jooray-links:start -->\n### More from me\n\n**Related projects**\n\n- [nostr-emanator](https://github.com/jooray/nostr-emanator): schedule Nostr posts, paired over NIP-46 and Amber\n- [nostrautica](https://github.com/jooray/nostrautica): Nostr-native event organizer with end-to-end encrypted data\n- [oracolo](https://github.com/jooray/oracolo): a Nostr blog in a single HTML file\n- [anonmicroblog](https://github.com/jooray/anonmicroblog): anonymous microblogs on Nostr\n- [lievik](https://github.com/jooray/lievik): Nostr-first content curation for creators with several audiences\n\n**Full project showcase:** [nsite-clay in my project showcase](https://juraj.bednar.io/showcase/#PUB-01), or [all my projects](https://juraj.bednar.io/showcase/).\n\nI write about building things on [my blog](https://juraj.bednar.io/en/blog-en/). I also wrote a cypherpunk novel, [Tamers of Entropy](https://tamersofentropy.net/), and there is a [trailer](https://tamersofentropy.net/#trailer).\n<!-- jooray-links:end -->\n\nOpen the page, sign in with your key, and type into it. The document serialises its own DOM,\npushes those bytes to a [Blossom](https://github.com/hzrd149/blossom) server as one\ncontent-addressed blob, and republishes the [NIP-5A](https://github.com/nostr-protocol/nips/blob/master/5A.md)\nnsite manifest that points at it. Anyone else loading the page gets a plain static document with\nyour changes already in it.\n\nNothing in that loop is a server you have to run. Relays hold the manifest, Blossom servers hold\nthe bytes, and the browser does the rest. Ownership is a keypair rather than an account, so\n\"who may edit this page\" is not a row in somebody else's database.\n\nThe idea is [HyperClay](https://hyperclay.com)'s and the editing model follows\n[ClayJS](https://clayjs.com); this is that model with Nostr underneath instead of a hosting\nplatform.\n\n## Description for Nostr geeks\n\nAn nsite is web hosting. Not long-form notes, whole HTML files. That is all an\nnsite is.\n\nnsite-clay adds one thing to it: the page edits and updates itself, so the CMS\nsits inside the static HTML rather than behind it.\n\nYou change the DOM. Click around the page and edit things, or open your\nbrowser's DOM inspector and change it there; the page does not care which. The\nnew version is uploaded to your Blossom servers, and one replaceable event is\nrepublished saying which Blossom hash `/` or `/about-us` now points to. Any\nnsite gateway renders it.\n\nSaving keeps the original HTML's formatting wherever it can. A small text edit\ndoes not have to rewrite every quote and space around it. The runtime checks\nthat the saved markup still represents the page and falls back to a full\nserialization if it cannot preserve the source safely.\n\n## Write and edit with AI\n\nDescribe the page you want in\n[the publisher](https://nsite-clay.cypherpunk.today/deploy.html) and AI writes\nit: the layout, the stylesheet, text you can edit and empty frames for your own\nphotos. Look at the preview, ask for changes, and publish it with your own key.\n\nOn a page that is already published, press **Edit with AI** and say what should\nchange, either the whole page or only the part you clicked. Nothing reaches the\npage until you keep the result. **Undo** takes it back, and **Save** publishes it.\n\nYou pay for AI in one of three ways:\n\n1. **Support the project.** The default. Pay one 2000 sat Lightning invoice and\n   everything works: 1000 sats fund nsite-clay, and 1000 become your AI credit\n   on our Routstr node, `routstr.cypherpunk.today`. The credit pays for the\n   page and for the pictures AI makes for it, about 24 sats each. The key is kept encrypted on\n   your own Nostr relays, so it follows you to every device you sign in on, and\n   credit you do not spend can be withdrawn.\n2. **Your own Routstr node.** Point **AI settings** at any other Routstr node and\n   add credit there with Lightning or Cashu. The fees go to whoever runs that node.\n3. **Bring your own key.** Use any OpenAI-compatible API that accepts requests\n   from a browser, with your own key and the model you choose. What you pay\n   stays between you and that provider.\n\n**AI is an extra, and everything else stays free.** The editor, the twelve\ntemplates, the block composer and publishing never ask for payment. Pick a\ntemplate, click into the page and type, exactly as before.\n\nThe details of each mode are under [AI provider settings](#ai-provider-settings).\n\n## Try it\n\nA live document is published under a throwaway key, and the key is public on purpose:\n\n**<https://npub16kwfcualkq4kz6vgs8tze0j4jkpgs53h48ghmpnj80s7cvfjspwsh4uk9u.nsite.lol/>**\n\n```\nnsec1064etpv2gs3ttywm7w5enrqdssdg6dawz9fxz0vs34ac545l6jfqk3987y\n```\n\nOpen it, press **Sign in**, paste that nsec, and edit the page. Your save rewrites the real\ndocument for everyone. It is a sandbox with no owner, so treat whatever is there as other\npeople's leftovers.\n\n## Quick start, without a terminal\n\nOpen **[the publisher](https://nsite-clay.cypherpunk.today/deploy.html)**,\npick a template, sign in with your key or make one on the spot, and it is online.\nYou can also describe a page for AI to build in the second step. Describe what\nyou want, generate a preview, and review it before choosing an address and\npublishing. The generated page has editable text, a content form\nand blocks you can add later. The publisher supplies its owner and runtime files.\nIt runs entirely in the browser: it fetches the template and the runtime from the\nsite it is published on, uploads them to your Blossom servers, and signs the\nmanifest with your key. There is no server in the loop and nothing to install.\n\nThe [guide](https://nsite-clay.cypherpunk.today/guide.html)\nwalks the whole path with screenshots, from having no key at all to a published\npage with a picture and a Nostr feed in it.\n\n## Quick start, with one\n\n```bash\nnpx nsite-clay init mysite      # scaffolds index.html + nsite-clay.js, generates a key\nnpx nsite-clay deploy mysite --sec=nsec1…\n```\n\n`deploy` prints the URL. Open it, sign in as the owner, and from then on the page saves itself;\nyou only come back to the CLI for changes you make outside the browser.\n\nTo use a key you already have, hand `init` the npub so the document knows its owner:\n\n```bash\nnpx nsite-clay init mysite --npub=npub1…\nnpx nsite-clay deploy mysite --bunker=\"bunker://…\"\n```\n\n## What a document looks like\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\" autosave nc:owner=\"npub1…\">\n<head><meta charset=\"utf-8\"><title>Notes</title></head>\n<body>\n  <h1 editable=\"single-line\">My notes</h1>\n  <div editable>\n    <p>Type anything here.</p>\n  </div>\n  <script src=\"/nsite-clay.js\"></script>\n</body>\n</html>\n```\n\nThat is the whole integration. `nc:owner` says whose signature may save it, `editable` marks\nwhat a person can type into, and the script does the rest. Save it, then open the file in a text\neditor: your words are in the HTML.\n\n## Editing\n\nMark a container `editable` and it becomes rich text for the owner and ordinary markup for\neverybody else.\n\n**Enter starts a new paragraph.** Selecting text raises a floating toolbar whose first control\nis a block menu: Paragraph, Heading 1 to 3, Quote, Code block. Alongside it are bold, italic,\nstrikethrough, bulleted and numbered lists, link, and clear formatting.\n\nKeyboard: `⌘B` `⌘I` `⌘U` `⌘K`, `⌘⇧8` for a bulleted list, `⌥1` to `⌥3` for headings. Typing `# `,\n`- ` or `> ` at the start of a line works too.\n\nUse `editable=\"single-line\"` for a title or a list row, where Enter should do nothing and the\nblock menu makes no sense.\n\nWhat reaches the file is markup a person could have written by hand. The `editable` attribute\nstays behind as an inert marker; the `contenteditable` it implies, the toolbar, and the debris\nbrowsers emit from editing commands are all stripped. Pasted markup goes through a sanitiser, so\ncopying out of a word processor does not smuggle a stylesheet into your document.\n\nUndo and Redo on the page toolbar cover text edits, CMS fields and changes to\nblocks. `⌘Z` / `Ctrl+Z` undoes a page edit; add Shift to redo it. Deleted blocks\nreturn with their event handlers intact. This history lasts for the current\nediting session; History still opens your published versions.\n\nThe content form can use dropdowns, numbers, dates and rich text. Pages declare\nthe field type next to the content, so a price can reject a negative number and\na status can offer the choices the page actually uses. Scripts can read and\nupdate the same fields through `nc.cms.getData()` and `nc.cms.setData()`.\n\n## AI provider settings\n\nChoose **Edit with AI** to change the whole static page. To change one part,\nclick its text or block first, then choose **Only what I clicked** in the dialog.\nA whole-page rewrite keeps the page's live feeds exactly as they were and may\nmove them; a result that leaves one out is refused. Pages with forms or custom\nscripts support selected-text AI edits only, because the static page builder\ncannot preserve those behaviours in a whole-page rewrite.\nDescribe the change and review the preview. **Keep this change** applies it as\none undo step; **Save** publishes it. **Back to my instruction** keeps your prompt\nso you can revise it. **Ask for another change** refines the proposed version;\nthe version selector lets you return to an earlier proposal, and **Show current\npage** compares it with the unchanged page. Up to five proposed versions stay\nin this browser, under your key and this page's path. Reopen **Edit with AI**\nafter reloading to resume. Download a draft or restore its JSON file to move it\nbetween browsers. Cancelling leaves the page alone; keeping or discarding the\ndraft clears its saved copy.\n\nOpen **Settings → AI settings** to choose a provider and model. The default is\nDeepSeek V4.1 Flash through `routstr.cypherpunk.today`, our Routstr node. Its\nfees help fund nsite-clay. Requests stay on that node unless you choose another.\n\n**Add AI credit** opens a separate amount-and-payment dialog for Lightning or\nCashu, then returns you to your page. Before generation, the editor checks\navailable Routstr credit and shows a rough price range from current model rates.\nUnknown balances are labelled unknown, and BYOK balances stay with that provider.\n\nAI settings keeps provider details under **Advanced provider settings**, backup\ncontrols under **Backup and recovery**, and withdrawal in its own dialog. Saving\nsettings or receiving credit backs up the endpoint, provider type, model and key\nto your encrypted Nostr vault. A failed backup is shown with recovery instructions.\nThe setup is separate from your published page.\n\nFor model comparisons, see [the AI evaluation prompts and runner](docs/ai-evaluation.md).\n\nYou can also enter another Routstr node or bring a key for an OpenAI-compatible\nAPI. That endpoint must allow browser requests. Changing nodes keeps their keys\nseparate; it does not send the old node's key to the new one.\n\n## Pictures, video and Nostr posts\n\nThree more buttons on the same toolbar.\n\n**Pictures.** Drag a file in, pick one you have uploaded before from a grid, or paste a URL.\nUploads go to the same Blossom servers the document is stored on, so an image is\ncontent-addressed and its URL never has to change.\nChoose a crop before uploading a new file: free, square, wide or 4:3. The crop\nhappens in your browser; only the accepted image is uploaded. Keep the original\nfor SVGs or animated pictures you want to preserve.\n\n**Video.** A YouTube or Vimeo link becomes a click-to-play thumbnail rather than an iframe, so\nnothing third-party loads until a reader presses play and the thumbnail still works as a link\nwith JavaScript off. A video file is uploaded and played from Blossom.\n\n**Nostr feeds.** A widget showing short notes, long-form articles or picture posts from any\nnpubs you name. The dialog lists their actual posts so you can click the ones to pin rather than\nhunting for event ids. Pinning an article uses its slug, not its event id, because kind 30023 is\nreplaceable and an id-pin breaks the moment the author fixes a typo. Every event is\nsignature-checked and sanitised in the browser, and the posts are fetched at view time rather\nthan stored in the file.\n\n```html\n<div nc:feed=\"articles\" nc:authors=\"npub1…\" nc:limit=\"5\" nc:style=\"grid\"\n     nc:pinned=\"my-first-post\"></div>\n```\n\n## Writing Nostr posts\n\nThe composer lists what you have published and opens an editor for more: short notes (kind 1)\nand long-form articles (kind 30023). Publishing an article again under a slug you have used\nbefore is the edit, so every long-form client shows the new text at the same address and the\noriginal date stays put.\n\nPosts and pages are separate. Writing a note does not change your page, and saving your page\ndoes not touch your posts.\n\n## Blocks\n\nA page marked `nc:blocks` is assembled rather than typed over. In edit mode the\nruntime draws a rail on every block (move it, duplicate it, delete it, list what\nit is made of, and for a picture or a feed a gear that reopens the picker) and an\ninsert point between them that opens a palette.\n\nThe list is the way inside a block. A block is markup, and markup accumulates: a\nduplicated card, an element some editing command split in two, an empty box left\nbehind by something that went wrong. Without a way in, the only cure for one\nstray element is to delete the block around it and build the whole thing again.\n\nThe palette is built from the document's own library, which is a set of inert\n`<template>` elements:\n\n```html\n<main nc:blocks>\n  <section nc:block-type=\"heading\"><h2 editable=\"single-line\">A heading</h2></section>\n</main>\n\n<template nc:block=\"picture\" nc:label=\"Picture\" nc:icon=\"▥\"\n          nc:group=\"Media\" nc:on-add=\"image\">\n  <section class=\"b-picture\">\n    <figure>\n      <img nc:slot src=\"…\" alt=\"\">\n      <figcaption editable=\"single-line\">Caption</figcaption>\n    </figure>\n  </section>\n</template>\n```\n\nA `<template>` renders nothing and is saved with the page, so the library\ntravels with the document. Whoever opens the file next can keep adding blocks\nwith nothing to fetch and nothing to install. `nc:on-add` names a picker to run\nonce the block lands (`image`, `video`, `feed`, `post`) and `nc:slot` marks what\nthat picker acts on.\n\nNothing the rail draws is written to disk. A reader gets the blocks as ordinary\nmarkup with no trace that a composer was ever involved. The full rules are in\n[`templates/_shared/CONTRACT.md`](templates/_shared/CONTRACT.md).\n\n## Editing without a visible editor\n\nTemplates ship with `nc:edit-gate=\"hash\"`, so a reader gets the page and nothing\nto click. Add `#edit` to the URL and the toolbar appears:\n\n```\nhttps://<your npub>.nsite.lol/#edit\n```\n\nWorth remembering, because a page with no visible way in looks broken to someone\nwho has forgotten. `nc.settings.open()` turns the gate off if you would rather\nhave the toolbar always there.\n\nOnce you have signed in on your site in a browser, that browser remembers it and\nopens the toolbar on later visits without `#edit`. The sign-in itself lasts an\nhour after you last used it, so moving between the pages of your site does not ask\nagain; after that, you sign in again. Signing out forgets both. Visitors who never\nsigned in see nothing different.\n\nAutosave is off by default. Every save stores the whole page again and files a\nversion, so saving on a timer publishes a dozen versions of one paragraph.\nTurn it on in the same settings panel. Both settings are attributes on `<html>`,\nso they are saved with the page and travel with the file rather than living in\none browser.\n\n## Pages with a form\n\nA save writes the live page, form state included, which is what lets a checklist\nremember its ticks. On a page where visitors type something and get an answer\nback, that would publish one visitor's input and result to the next. Put\n`nc:no-persist` on every control a visitor fills in, and `nc:transient` on the\nnodes your script adds to show a result, not on the container they go into.\n[docs/forms.md](docs/forms.md) has the whole pattern in one example.\n\n## Signing in\n\nRanked by how much you have to trust the page in front of you:\n\n- **NIP-07 browser extension.** The key never enters the page.\n- **Amber or another NIP-46 remote signer.** The key never enters the browser at all. The page\n  shows a `nostrconnect://` QR and deep link, and every signature is approved on your phone.\n  This is the right default for a document served from a gateway you do not control.\n- **Typing a key.** `nsec1…`, 64 hex characters, or a NIP-49 `ncryptsec1…` with its password.\n  The key stays in that tab: in memory, and for an hour in the tab's `sessionStorage` so the\n  other pages of the site open signed in. It never reaches `localStorage` and goes when the\n  tab closes. It sits in a\n  password field deliberately: the snapshot algorithm never writes those values into markup, so\n  a save cannot bake your key into the document it publishes.\n\n## Built by agents\n\nMost pages made with this will be built by an agent rather than by hand, so the\nproject ships instructions for one:\n\n**<https://nsite-clay.cypherpunk.today/llms.txt>**\n\nPoint your coding agent at that file and ask it for the page you want. It covers\nwhat to ask you for, how to pick and rework a template, how to get the page\nonline with a remote signer rather than a raw key, and the handful of things\nthat go wrong. It deliberately does not restate the documentation; it links it.\n\nHand it to Claude Code, Codex, Cursor, or anything else that reads a URL. The\nsame file works as `AGENTS.md` in a project built on top of nsite-clay.\n\nA site that is already published has a second brief, for an agent that should\nchange it rather than build it:\n\n**<https://nsite-clay.cypherpunk.today/llms-edit.txt>**\n\nThe owner gets a filled-in copy from their own page: open it with `#edit`, sign\nin, and press **Settings → Copy instructions for your own agent**. The text names\nthe site's public key, relays, Blossom servers and pages, and walks the agent\nthrough `pull`, the edit, and a `deploy` that keeps the page editable in the\nbrowser. It asks the owner for a `bunker://` link from Amber, Clave or another\nNIP-46 signer, never for the key, and keeps that one connection for later runs.\nThe text is generated from a template in the page, with no AI involved.\n\n## Skills\n\nTwo skills for Claude and other agents that read the Agent Skills format live in\n`skills/` and are released as zip files.\n\n- **nsite-clay-web-builder** is for building someone a website that they can edit themselves\n  in the browser and that is published on Nostr. It sends the agent to the full\n  brief, `llms.txt`, and to `llms-edit.txt` for changing a site that is already\n  live.\n- **nsite-artifacts** is for short-lived pages: a shopping list, a plan or a\n  report, encrypted, shared by link and deleted after some days. Each page is its\n  own site under a fresh key, or, if the owner asks for it, a page of one\n  workspace site under one key (`docs/workspaces.md`).\n\nTo install one in Claude Code, download the zip and unzip it into\n`~/.claude/skills/`, so that `~/.claude/skills/nsite-clay-web-builder/SKILL.md` exists. In\nClaude.ai, upload the zip under Settings, Capabilities, Skills. The latest\nversion is always at\n\n- <https://nsite-clay.cypherpunk.today/skills/nsite-clay-web-builder.zip>\n- <https://nsite-clay.cypherpunk.today/skills/nsite-artifacts.zip>\n\nand each release also carries the versioned files (`nsite-clay-web-builder-0.1.0.zip`) on\nGitHub. `npm run skills:pack` builds them into `dist-skills/`.\n\n## Templates\n\nTwelve starting points, all sharing one stylesheet and one runtime so an engine\nchange does not mean editing twelve files:\n\n`cms` `event` `blog` `project` `personal` `links` `gallery` `terminal` `phrack`\n`brutal` `eco` `irc`\n\n`cms` is the one to start from. It is a page built out of blocks rather than a\nfinished design to type over: press the `+` between two blocks and add a\nheading, a picture, a video, a row of cards or a Nostr feed. See\n[Blocks](#blocks) below.\n\nTen of the twelve take blocks, each in its own shapes, so one added to `phrack`\ncomes out in monospace and one added to `terminal` comes out as another command.\n`gallery` and `irc` do not: the gallery's wall is redrawn from a live feed on\nevery load and has nothing persisted to make a block of, and the chat log is\nappend-only by design and already has its own way of growing.\n\n`node tools/template-blocks.mjs` checks every one of them in a browser.\n\nThe last of those is worth opening: its content is the transcript of the\nconversation that produced it, held with an agent that was handed nothing but\n[llms.txt](https://nsite-clay.cypherpunk.today/llms.txt).\n\n```bash\nnpx nsite-clay init mysite --template=blog --npub=npub1…\n```\n\nBrowse them at [/templates.html](https://nsite-clay.cypherpunk.today/templates.html),\nor read the source in [`templates/`](templates/). The rules a template follows\nare in [`templates/_shared/CONTRACT.md`](templates/_shared/CONTRACT.md).\n\n## Deploying\n\n### What a deploy does\n\nA deploy is three steps, and they are the same three the browser performs when you press save:\n\n1. **Every file becomes a Blossom blob**, addressed by its own sha256. Uploads are authorised\n   with a signed kind-24242 token ([BUD-11](https://github.com/hzrd149/blossom/blob/master/buds/11.md)).\n2. **A manifest event maps paths to hashes**, signed by the site owner and published to your\n   relays. Kind 15128 for a root site, kind 35128 for a named one. The event is replaceable, so\n   publishing a new one is the deploy.\n3. **A kind-5128 snapshot pins that set of hashes** as a permanent version.\n\nA gateway resolves your manifest, fetches the blobs, and serves them over HTTP.\n\n### The commands\n\n```bash\nnsite-clay init [dir] [--npub=npub1…]\nnsite-clay pull <npub | address> [dir] [--site=name]\nnsite-clay deploy <dir> [--sec=… | --bunker=…] [--site=name] [--title=…] [--description=…]\nnsite-clay whoami [dir]\nnsite-clay unpublish [--site=name] [--path=/page.html] [--version=<id>] [--yes]\nnsite-clay keygen\n```\n\nSigning takes either a raw key (`--sec`, or `NOSTR_SECRET_KEY`) or a remote signer\n(`--bunker=\"bunker://…\"`, or `NOSTR_BUNKER_URI`). A bunker keeps the key off the machine running\nthe deploy, so a CI runner never holds it.\n\nA `bunker://` link's secret works once, so the CLI saves what lasts, the client\nkey the signer approved, the bunker's pubkey and its relays, in\n`~/.config/nsite-clay/bunkers.json`. Later runs find that connection by the\nsite's owner key and need no link at all. `whoami` connects and prints the key\nthe signer holds without signing anything, which is the place to spend a new link.\n\n### What gets published\n\n**Everything in the directory is published**, except dotfiles, and a published blob cannot be\ntaken back: it is content-addressed, and the manifest naming it is signed and public. Keep the\ndirectory to what the page needs, and leave the rest out explicitly:\n\n```gitignore\n# .nsiteignore, next to index.html, in gitignore syntax\nREADME.md\n*.sh\ndrafts/\nnotes/*\n!notes/public.md\n```\n\n`--exclude=<glob>` does the same from the command line; repeat it or separate patterns with\ncommas. A pattern with a slash is anchored to the directory being published, one without matches\na name at any depth, and a trailing slash matches directories only. `--dry-run` lists what would\nbe published and what was left out, publishes nothing, and needs no key.\n\nFiles that look like keys are refused even without an ignore file: `*.pem`, `*.key`, `*.p12`,\n`*.pfx`, `*.ppk`, `*.macaroon`, `id_rsa` and its siblings, `npmrc`, and names like `env.backup`\nor `nsec.txt`. A web asset is never refused by its name alone, so `what-is-nsec.html` publishes.\n`--publish-secrets` overrides the rule.\n\n### Taking it down\n\n```bash\nnsite-clay unpublish                          # the root site: current version and history\nnsite-clay unpublish --site=blog              # a named site\nnsite-clay unpublish --path=/old-offer.html   # one page, as a new version without it\nnsite-clay unpublish --version=v…             # one version out of the history\n```\n\nEach prints what it would do and sends nothing until it is run again with `--yes`. `--npub=npub1…`\nshows the plan without connecting a signer.\n\nNothing published to Nostr can be deleted outright, only asked to be. Unpublishing a site\ntherefore does three things, each as widely as it can:\n\n1. **An empty manifest replaces the current one.** A manifest is a replaceable event, so every\n   relay keeps only the newest, whether or not it knows anything about deletions. A gateway\n   reading it finds no pages.\n2. **A [NIP-09](https://github.com/nostr-protocol/nips/blob/master/09.md) deletion request**\n   names the manifest, every version in the history, and the site's address. Relays that\n   implement it drop all of it, including the empty manifest, and refuse the events if anyone\n   sends them back.\n3. **Each file is deleted from the Blossom servers** that still hold it\n   ([BUD-02](https://github.com/hzrd149/blossom/blob/master/buds/02.md)). A file that another of\n   your sites or another version still uses is kept. `--keep-blobs` leaves all of them.\n\nBoth events go to the deploy relays, the two lookup relays gateways use, every relay on your own\nrelay list, and a set of large public relays a gateway may have copied the site from. `--relays`\nreplaces all of that with a list of your own, which is how to point it at the devnet. Your relay\nlist and your other sites are not touched.\n\nWhat it cannot reach: a relay that ignores deletions and was never sent the empty manifest, a\ngateway's cache until it expires, a Blossom mirror nobody told about, and anyone who saved a copy.\n`--path` and `--version` say what they leave behind: a page taken out of the current version is\nstill in the older versions until those are deleted too.\n\nThe signer needs `sign_event:5` for the deletion, `15128`/`35128` and `5128` for the empty manifest\nand a new version, and `24242` for the Blossom deletes.\n\n### Where your site ends up\n\nA key has one **root site** and any number of **named sites**:\n\n| | URL |\n|---|---|\n| root site (default) | `https://<npub>.nsite.lol/` |\n| named site (`--site=blog`) | `https://<50-char-base36-pubkey>blog.nsite.lol/` |\n| a specific version | `https://v<50-char-base36-snapshot-id>.nsite.lol/` |\n\nAny NIP-5A gateway serves the same site: [nsite.lol](https://nsite.lol),\n[nsite.run](https://nsite.run), or one you run yourself. For a domain of your own, see\n[Custom domains](#custom-domains).\n\nNamed sites need a `d` tag of 1 to 13 characters from `[a-z0-9-]`, because a DNS label is 63\ncharacters and the base36 pubkey uses 50 of them.\n\n### Where it gets served\n\nAn nsite gateway resolves your manifest and serves the files. They read the same\nevents, so a site is not tied to any of them, but each one has to find those\nevents first, and they do not all look in the same places:\n\n| Gateway | |\n|---|---|\n| [nsite.lol](https://nsite.lol) | public gateway; reads `wss://relay.nsite.lol`, which is in the default relay set |\n| [nsite.run](https://nsite.run) | reference implementation, and the clearest explanation of what an nsite is |\n| [nosto.re](https://nosto.re) | public gateway |\n| [nwb.tf](https://nwb.tf) | public gateway |\n| [nsite.cloud](https://nsite.cloud) | reference implementation |\n| [shakespeare.to](https://shakespeare.to) | reference implementation |\n\n**How a gateway finds your site.** The reference gateway\n([nsite-gateway](https://github.com/hzrd149/nsite-gateway)) asks two lookup relays,\n`wss://purplepag.es` and `wss://user.kindpag.es`, for your relay list (a kind-10002\nevent), then reads your manifest from the relays on that list plus any its operator\nadded. A gateway running it finds a site through your relay list. A key\nthat has never published one is findable only on relays the operator happens to read,\nwhich is why a first deploy from a fresh key can show on nsite.lol and answer\n`404 nsite not found` elsewhere.\n\n**A key with no relay list gets one when it publishes.** The web publisher and\n`nsite-clay deploy` both check, after the manifest is out, whether your key has a relay list,\nand publish one naming the relays the site went to when it provably has none: both lookup\nrelays have to answer, and no relay asked may hold one. A key made in the publisher skips\nthe check: it was generated moments ago and cannot have one yet. A key you already use in a\nNostr client usually has a list, and it is never replaced. `wss://relay.nsite.lol` is left out of\nthe list itself, since it accepts only relay lists and manifests. `--no-relay-list` turns\nthis off for the CLI.\n\nSo, for a site every gateway can find:\n\n- **Deploy to relays on your relay list.** `--relays=` takes the same URLs. If your key\n  already had a list, make sure at least one relay you deploy to is on it.\n- **Keep `wss://relay.nsite.lol` in the set** for nsite.lol, which subscribes to it live\n  and shows a change in about a second instead of up to ten minutes.\n\nGateways also go down. On 25 September 2026 nosto.re answered `502` and\nshakespeare.to did not resolve this project's own site, while nsite.cloud served a\ncopy some minutes old. If one fails, swap the hostname and your site is still there,\nand `npm run devnet` runs a gateway on your laptop.\n\n### Custom domains\n\nA gateway reads the npub out of the hostname. When the name it was asked for is\nnot an nsite label it resolves the CNAME and reads the npub from where that\npoints, so the record goes to your npub subdomain rather than to the gateway:\n\n```\nblog.example.com.  CNAME  npub1….nsite.lol.\n```\n\nA CNAME at `nsite.lol` itself cannot work: it carries no npub.\n\nThat is the routing. HTTPS is separate and, on the public gateways today, not\nsolved. nsite.lol holds one certificate covering `*.nsite.lol`, and answers any\nother name with a TLS `unrecognized name` alert and no certificate, so a browser\nasking for `https://blog.example.com` never reaches the page. Run the gateway\nyourself if you want a name of your own over HTTPS: the reference deployment\nputs Caddy in front, which issues certificates on demand.\n\n### Relays and Blossom servers\n\nThe defaults work for a first deploy.\n\n**Publish to the gateway's own relay.** A gateway keeps a live subscription to its relays and\nre-syncs everything else on a timer. With `wss://relay.nsite.lol` in the list a change appears in\nabout a second; without it, up to ten minutes. It is in the default set for that reason.\n\n**Blossom servers are not interchangeable.** Several public ones refuse `text/html` outright,\nsensibly enough, since they would be hosting arbitrary pages on their own domain. Several accept\nonly padded base64 in the auth header where BUD-11 asks for base64url. The CLI and the runtime\nboth try each encoding, and a deploy succeeds if any one server takes the blob, since blobs are\ncontent-addressed and more copies is strictly better. `nostr.download` and\n`blossom.yakihonne.com` take a key they have never seen, keep the type, and delete when asked, and\nare the defaults. `cdn.hzrd149.com`, the default until 0.3.27, now refuses keys it does not know\n(\"Pubkey not authorized by any storage rule\"); pages that still name it keep working from the\nother server they name, and their old files stay readable there.\n\n**A Blossom server has to keep the type you upload with.** Gateways pass on the Content-Type the\nserver reports, and a browser will not apply a stylesheet labelled as anything but `text/css`.\n`blossom.primal.net` guesses the type from the bytes instead and serves CSS as `text/plain`, so a\npage fetched from it can arrive without its design. It is fine for pictures, but keep it out of\nthe list a site is published to. Check a server by uploading a small `.css` file and asking for it\nback.\n\n**A blob is only as durable as the servers holding it.** The manifest names hashes, not bytes.\nList several servers; every save pushes to all of them.\n\n### Assets and caching\n\nAssets are published at paths carrying their content hash (`/nsite-clay-1054f97d.js`), so a new\nbuild is a new URL that no cache can serve stale. Documents keep stable paths, since those are\nwhat people link to. The unfingerprinted path stays in the manifest as an alias to the same blob,\nso a reader still holding a cached copy of the previous document does not break. Pass\n`--no-fingerprint` to turn this off.\n\nOn top of that, a published document watches its own manifest. The manifest is a replaceable\nevent, so a new version arrives as a push rather than a poll: when the hash for the document's\npath stops matching the bytes the tab was served, the page says so and reloads itself through a\ncache-proof URL. A page with unsaved work is never reloaded out from under you. Nobody should\nneed to know what a hard refresh is.\n\n### Deploying twice\n\nBlobs are addressed by their own hash, so a file whose bytes have not changed is\nalready on the server under the same name. `deploy` asks each server before it\nuploads, and stops before publishing when the path table still hashes to what the\nlive manifest says:\n\n```\n$ npx nsite-clay deploy mysite\n  /index.html                    1aa4b3323850…    18818 B  2/2  already there\n  /nsite-clay-328e2b9d.js        328e2b9d37e2…   303407 B  2/2  already there\n\n  unchanged: the published manifest already points at these 7 paths\n  nothing published. --force republishes anyway.\n```\n\nSo a scheduled job that redeploys an unchanged site costs a few HEAD requests and\nwrites nothing to any relay. A server that has dropped a blob gets it back, which\nmakes a repeat deploy a repair rather than a no-op, and `--force` publishes\nregardless if a manifest needs rewriting for its own sake.\n\n### Changing a site that was edited in the browser\n\nA page saved in the browser exists only on Blossom, so the directory you\ndeployed from goes out of date the moment its owner edits the page. `pull`\nbrings the published site back down, every file checked against its hash:\n\n```bash\nnpx nsite-clay pull npub1… mysite\nnpx nsite-clay deploy mysite\n```\n\nIt writes `mysite/.nsite-clay.json`, a dotfile that is never published, saying\nwhich site, relays and servers the directory came from and which version. A\ndeploy of that directory goes back to the same place with no flags, and compares\neach file as pulled, as it is now, and as published: what only you changed is\npublished, what was changed only in the browser since the pull is kept and\nwritten into the directory, a page added in the browser is kept, and a file\nchanged in both places stops the deploy before anything is sent. `--overwrite`\npublishes your copy anyway.\n\nA deploy of a directory that did not come from `pull` refuses to take down\npublished pages it does not have, and names them. `--keep-missing` keeps them,\n`--prune` takes them down. Every deploy also refuses a page whose `nc:path` or\n`nc:site` does not fit where it is going, and a page that would lose\n`/nsite-clay.js`; `--no-check` publishes regardless. A page whose `nc:owner` is\nanother key is published with a note, since only that key can save it.\n\n## Version history\n\nEvery save files a permanent kind-5128 snapshot naming an immutable set of hashes, and blobs\ndeduplicate, so history costs almost nothing. `nc.versions()` lists them, `nc.readVersion()`\nfetches one and refuses bytes that do not hash to what the snapshot claims, and `nc.restore()`\nrepublishes an old path table as the current one. Restoring is itself a new version, so nothing\nis destroyed. Each version also has its own permanent URL, which does mean your history is\npublic.\n\n## Upgrading a published page\n\nA published document hardcodes the URLs of the files it runs on, and a gateway\nserves those with a cache lifetime, so the deployed copy stays on the engine it\nwas deployed with. That is the right default — a site that changed under its\nowner would not be theirs — but a fix has to be able to reach it somehow.\n\nIt reaches it the same way everything else here moves. The project publishes its\nown nsite; that manifest is a signed event naming content-addressed blobs; the\npage re-hashes whatever a Blossom server hands back before believing a byte of\nit. A server cannot lie, and the only thing being trusted is the key the page\nnames in `nc:runtime-owner` — the same key its owner published from. The new\nbytes go onto **your** Blossom servers and into **your** manifest, so afterwards\nnothing of ours is in the path and nothing can be withdrawn from under you.\n\nNothing upgrades itself. Open your page for editing and you are told a newer\nruntime exists, with what changed; Settings has the same offer behind a button.\nA reader triggers neither, and `nc:runtime-owner=\"off\"` never looks at all.\n\nAn upgrade replaces the engine, the toolbar script and the stylesheet. It does\nnot rewrite your page: your blocks, your words and your design are yours, and\nversion history keeps the old manifest either way.\n\n## Configuration\n\nFull attribute and API reference: **[docs/RUNTIME-API.md](docs/RUNTIME-API.md)**.\n\n## What this does not do\n\n- **One key writes the document.** The manifest carries one signature. There is no shared\n  editing and no per-visitor content.\n- **No conflict detection.** A replaceable event has no compare-and-swap. Two devices editing\n  the same document will silently lose one side's work. Re-read before you publish, and do not\n  treat it as a collaboration tool.\n- **The gateway is trusted for the first byte.** Sub-resources are hash-checked against the\n  manifest and every event is signature-checked, but the entry document cannot verify itself:\n  the code doing the verifying would be the code under suspicion. This is the nsite trust model,\n  not something specific to this project. What differs from a hosting platform is that the\n  manifest, the blobs and the history all live outside the gateway, so you can check the same\n  document through another one and compare aggregate hashes. Running a local gateway removes the\n  trust entirely.\n- **No server code.** If your project needs a backend, this is the wrong tool. Though your\n  project probably does not need one beyond Nostr. You would be surprised how far you get\n  without it.\n\n## Developing locally\n\n```bash\nnpm run devnet\n```\n\nA relay, a Blossom server and a NIP-5A gateway on localhost, all in memory, so experiments do\nnot land on other people's disks or a public gateway. Deploy into it and open the site at its\ncanonical hostname, since browsers resolve anything under `.localhost` to the loopback address:\n\n```bash\nnpx nsite-clay deploy mysite --sec=nsec1… \\\n  --relays=ws://127.0.0.1:4869 --servers=http://127.0.0.1:4870\n\nopen http://npub1….localhost:4871/\n```\n\nStop the process and everything it held is gone. It trusts its caller and should never be\nreachable from anywhere else.\n\nTo click through the web publisher against that stack rather than against public infrastructure:\n\n```bash\nnpm run publish:local     # devnet, plus site/ served with its relay and Blossom lists rewritten\n```\n\nIt prints the publisher's address. Publish as often as you like; nothing reaches a public relay.\n\nThe whole path is also a test. It drives the real publisher from a key that did not exist a\nsecond ago, through the wizard, onto the devnet, back out of the gateway, edits the published\npage and saves it, and screenshots every step into `media/guide-publish/`:\n\n```bash\ncurl -sLo /tmp/lunarpunk.jpg https://image.nostr.build/b9bf63cdfad604ce65598797a5564c9f1e9d7b45ccfef07df3016442addfd9eb.jpg\nnpm run walkthrough\n```\n\nThe pictures in the [guide](https://nsite-clay.cypherpunk.today/guide.html)\ncome from that run, so they show working software rather than a mock-up.\n\n## Building from source\n\n```bash\nnpm install\nnpm run build     # dist/nsite-clay.js and dist/nsite-clay.esm.js\nnpm test          # behaviour checks, most in a real browser\n```\n\nThe tests run in Chrome on purpose. Several of them are about what the HTML parser and the\nbrowser's own editing commands do to markup, which is not something a DOM shim will tell you.\n\n## Credits\n\nThe malleable-HTML idea, the `editable` model and the save lifecycle come from\n[HyperClay](https://hyperclay.com) and [ClayJS](https://clayjs.com) by\n[panphora](https://github.com/panphora); the format is specified at\n[malleablehtmlfile.com](https://malleablehtmlfile.com). Hosting rests on\n[NIP-5A](https://github.com/nostr-protocol/nips/blob/master/5A.md) nsites and\n[Blossom](https://github.com/hzrd149/blossom) by [hzrd149](https://github.com/hzrd149), and on\n[nostr-tools](https://github.com/nbd-wtf/nostr-tools). Contributed markup is sanitised with\n[DOMPurify](https://github.com/cure53/DOMPurify).\n\n## Licence\n\nMIT-0. Use it, change it, ship it, no attribution needed.\n","readmeFilename":"README.md"}