{"score":80,"grade":"B","scannedAt":"2026-12-05T23:00:33.558Z","scanner":"grades-0.2","signals":{"ecosystem":"npm","name":"node-mantis","version":"0.1.9","license":"SEE LICENSE IN LICENSE.txt","repository":"https://github.com/Node-Mantis/CleanSlate","firstPublished":"2026-07-10T16:52:43.614Z","lastPublished":"2026-11-18T21:08:46.421Z","versions":35,"maintainers":1,"files":7,"bytes":224138,"hosts":["api.nodemantis.com","googlechromelabs.github.io","nodemantis.com"]},"capabilities":{"network":true,"files":true,"shell":true,"env":true,"dynamicCode":false},"findings":[{"rule":"install-script","severity":"medium","title":"Runs a script automatically when installed (postinstall)","file":"package.json","snippet":"node dist/postinstall.js || exit 0"},{"rule":"long-line","severity":"low","title":"Contains a very long single line (bundled or packed code that is hard to review)","file":"dist/cli.js","line":15},{"rule":"long-line","severity":"low","title":"Contains a very long single line (bundled or packed code that is hard to review)","file":"dist/index.js","line":9},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dist/cli.js","line":3,"snippet":"…),Ee=require(\"node:os\"),Z=require(\"node:path\");function W(t=process.env){if(t.NODEMANTIS_CONFIG_FILE)return t.NODEMANTIS_CONFIG_FILE;let e=(0,Ee.homedir)();retu"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dist/cli.js","line":4,"snippet":"`,{mode:384}),e}function ee(t={}){let e=t.env??process.env,n=t.configPath??W(e),r=Re(n),i=[[ue(t.apiKey),\"explicit\"],[ue(e.NODEMANTIS_API_KEY),\"NODEMANTIS_API_K"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"dist/cli.js","line":7,"snippet":"…of standard, slower when busy) | standard\"};function fe(t,e=process.env){let n=x(t,\"tier\"),r=n??(e.NODEMANTIS_TIER||void 0)??\"flex\";if(!Rn.includes(r)){let i=n!"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dist/cli.js","line":8,"snippet":"…n=>e.question(t,n))}finally{e.close()}}var je=require(\"node:child_process\"),xt=require(\"node:crypto\"),R=require(\"node:fs\"),Ae=require(\"node:os\"),k=require(\"node"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dist/cli.js","line":8,"snippet":"…=!1;for(;;){try{let a=await R.promises.open(t,\"wx\");await a.writeFile(JSON.stringify({pid:process.pid,host:(0,Ae.hostname)(),createdAt:new Date().toISOString()}"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dist/cli.js","line":10,"snippet":"…ibpango-1.0-0\",\"libcairo2\",\"libasound2\"];function Ts(t,e=je.spawnSync){try{let n=e(t,[\"--version\"],{encoding:\"utf8\",timeout:15e3}),r=`${n.stderr??\"\"}"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"dist/cli.js","line":14,"snippet":"…nstanceof Error?t:new Error(String(t))}var er=require(\"node:child_process\"),z=require(\"node:fs\"),tr=require(\"node:module\"),we=require(\"node:path\"),nr=require(\"n"},{"rule":"network","severity":"info","title":"Makes network requests","file":"dist/cli.js","line":16,"snippet":"…o<c?-1:1}return 0}}async function Xt(t=3e3){try{let e=await fetch(ho,{signal:AbortSignal.timeout(t)});if(!e.ok)return;let n=await e.json();return typeof n.versi"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"dist/index.js","line":2,"snippet":"…=!1;for(;;){try{let d=await y.promises.open(t,\"wx\");await d.writeFile(JSON.stringify({pid:process.pid,host:(0,z.hostname)(),createdAt:new Date().toISOString()})"}],"vulns":[],"installScripts":["postinstall"],"server":{"name":"com.nodemantis/node-mantis","title":"Node Mantis","description":"Run website tasks from a plain-English request in a real browser and get structured data back.","websiteUrl":"https://nodemantis.com/docs/mcp","version":"0.1.9"}}