In Windsurf, press Ctrl+`` (backtick) to open the terminal. Click the +` button to open a second terminal tab.
cd "C:\Users\Subodh Kc\Desktop\App Building\Github\llmverify-npm"
npx llmverify-serveKeep this running. You'll see:
Server started on http://localhost:9009
cd "C:\Users\Subodh Kc\Desktop\App Building\Github\llmverify-npm"
# Test verification
$body = '{"content": "This is a test AI response"}'
Invoke-RestMethod -Uri "http://localhost:9009/verify" -Method POST -ContentType "application/json" -Body $bodyYou'll get a JSON response with risk scores.
const { createIDEExtension } = require('llmverify');
const verifier = createIDEExtension();
const result = await verifier.verify("AI response here");
console.log(result.verdict); // [PASS] SAFE TO USE
console.log(result.riskScore); // 6.3
console.log(result.safe); // trueRun the example:
node examples/basic-usage.jsThis will show you all the features working.
Make sure Terminal 1 is still running with npx llmverify-serve
npx llmverify-serve --port=8080npm install
npm run buildNow you can verify AI responses in real-time while coding in Windsurf.