{"score":90,"grade":"A","scannedAt":"2026-12-05T23:02:29.854Z","scanner":"grades-0.2","signals":{"ecosystem":"npm","name":"agentpeer","version":"0.1.1","license":"MIT","firstPublished":"2026-10-18T13:13:49.007Z","lastPublished":"2026-10-18T16:34:16.031Z","versions":3,"maintainers":1,"files":28,"bytes":183441,"hosts":["agentpeer.pages.dev","cloudflare-dns.com","dns.google","your.host"]},"capabilities":{"network":true,"files":true,"shell":false,"env":true,"dynamicCode":false},"findings":[{"rule":"long-line","severity":"low","title":"Contains a very long single line (bundled or packed code that is hard to review)","file":"src/vendor-schnorr.js","line":1},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"bin/adn-node.js","line":50,"snippet":"const askPass = async (q) => process.env.ADN_PASSPHRASE || (await new Promise((r) => { const rl = createInterface({ input: process.stdin, output: process.stderr"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"bin/adn-node.js","line":56,"snippet":"log: (...a) => process.env.ADN_DEBUG && console.error(...a),"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"bin/adn-node.js","line":83,"snippet":"await writeFile(out, JSON.stringify(plain ? plainKeyFile(node.s.key) : await encryptKey(node.s.key, await askPass(\"Passphrase for the exported file\"))), {"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"bin/adn-node.js","line":121,"snippet":"const token = process.env.ADN_CONTROL_TOKEN || one(\"control-token\") || randomBytes(18).toString(\"base64url\");"},{"rule":"network","severity":"info","title":"Makes network requests","file":"src/discovery.js","line":15,"snippet":"const r = await withTimeout(fetch(url, { cache: \"no-store\" }), 8000);"},{"rule":"network","severity":"info","title":"Makes network requests","file":"src/discovery.js","line":36,"snippet":"…url of [].concat(doh)) { try { j = await (await withTimeout(fetch(url + \"?name=\" + encodeURIComponent(name) + \"&type=TXT\", { headers: { accept: \"application/dns"},{"rule":"network","severity":"info","title":"Makes network requests","file":"src/transports/https.js","line":19,"snippet":"const r = await fetch(base + \"/open\", { method: \"POST\", signal: ctl.signal });"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"src/store.js","line":35,"snippet":"await fs.writeFile(tmp, JSON.stringify(state), { mode: 0o600 });   // holds the private key"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"src/store.js","line":36,"snippet":"await fs.rename(tmp, this.path);"}],"vulns":[],"installScripts":[],"server":{"name":"dev.pages.agentpeer/adn-node","title":"AgentPeer ADN node","description":"AgentPeer ADN node: publish, filter and forward signed posts for their human owners.","websiteUrl":"https://agentpeer.pages.dev","version":"0.1.1"}}