{"_id":"@vantic/sdk","_rev":"3-08119a51c1943071bbcfc0a92608c412","name":"@vantic/sdk","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@vantic/sdk","version":"0.1.0","keywords":["ai-agents","agentic-commerce","delegation","ed25519","receipts","mcp","mcp-server","did","verifiable-credentials","agent-payments","prompt-injection"],"author":{"name":"Vantic Labs"},"license":"Apache-2.0","_id":"@vantic/sdk@0.1.0","maintainers":[{"name":"vanticlabs","email":"bot@vanticlabs.ai"}],"homepage":"https://github.com/vanticlabs/vantic#readme","bugs":{"url":"https://github.com/vanticlabs/vantic/issues"},"bin":{"vantic-mcp":"dist/mcp.js"},"dist":{"shasum":"2dd0830b1b3841ff2341b59c2d03bd6d1d3804c1","tarball":"https://registry.npmjs.org/@vantic/sdk/-/sdk-0.1.0.tgz","fileCount":59,"integrity":"sha512-CGhpaTl1NegaNCIlqeY0s/aDO76ZjASSOaT1fAHcgodrdVn+6rLPd59lR0U/m6yjrNWGwfuPn3zlrPkQxEa+xw==","signatures":[{"sig":"MEQCIAVOBQxQPRBeuH8bJ5QNPVVGGd8Lhy/1+y6OJEgwXC5DAiAfHPyrkqyxJx0iVrhzUYQxaQOt6P8Vx1hzLI+5f+d6Vw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":123759},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"520a8bb6f47fd139baae7990b0f1e4f5fb336120","scripts":{"mcp":"tsc && node dist/mcp.js","demo":"tsc && node dist/demo.js","test":"node --test dist/test/","build":"tsc","gate-demo":"tsc && node dist/gate-demo.js","guard-demo":"tsc && node dist/guard-demo.js","adapters-demo":"tsc && node dist/adapters-demo.js","identity-demo":"tsc && node dist/identity-demo.js","prepublishOnly":"tsc"},"_npmUser":{"name":"vanticlabs","email":"bot@vanticlabs.ai"},"repository":{"url":"git+https://github.com/vanticlabs/vantic.git","type":"git"},"_npmVersion":"10.8.3","description":"Vantic — a spending firewall and permission layer for AI agents: signed mandates, allowlists, and tamper-proof receipts for every money-moving action.","directories":{},"_nodeVersion":"20.17.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.0_1785448259106_0.8987303559951738","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@vantic/sdk","version":"0.1.1","keywords":["ai-agents","agentic-commerce","delegation","ed25519","receipts","mcp","mcp-server","did","verifiable-credentials","agent-payments","prompt-injection"],"author":{"name":"Vantic Labs"},"license":"Apache-2.0","_id":"@vantic/sdk@0.1.1","maintainers":[{"name":"vanticlabs","email":"bot@vanticlabs.ai"}],"homepage":"https://github.com/vanticlabs/vantic#readme","bugs":{"url":"https://github.com/vanticlabs/vantic/issues"},"bin":{"vantic-mcp":"dist/mcp.js"},"dist":{"shasum":"3cfe1231e2f37486184fa2e9740c735fccce8a6c","tarball":"https://registry.npmjs.org/@vantic/sdk/-/sdk-0.1.1.tgz","fileCount":63,"integrity":"sha512-ohs4pXkVoOlRZqwrvzpDcJsOOBoX5AhCiXRrQ4C4d49OkRETIMwNfhUZU2HtH2/SuNocHiPwflkviOfw60sV0g==","signatures":[{"sig":"MEUCIFCj736t0g6EAcmqg0+OD0zMpc+S6xbSacAfKBIPJNouAiEAyDR7FiFCAnDvpzAi5hryOeICXTEjS7UjhC+BUY2JIvg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":143374},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"f9a5a3d55ebc22df136fd8c13d6caa0287e6fe6e","mcpName":"io.github.vanticlabs/vantic","scripts":{"mcp":"tsc && node dist/mcp.js","demo":"tsc && node dist/demo.js","test":"node --test dist/test/","build":"tsc","gate-demo":"tsc && node dist/gate-demo.js","guard-demo":"tsc && node dist/guard-demo.js","adapters-demo":"tsc && node dist/adapters-demo.js","identity-demo":"tsc && node dist/identity-demo.js","prepublishOnly":"tsc"},"_npmUser":{"name":"vanticlabs","email":"bot@vanticlabs.ai"},"repository":{"url":"git+https://github.com/vanticlabs/vantic.git","type":"git"},"_npmVersion":"10.8.3","description":"Vantic — a spending firewall and permission layer for AI agents: signed mandates, allowlists, and tamper-proof receipts for every money-moving action.","directories":{},"_nodeVersion":"20.17.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.5.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.1_1785501479078_0.7291685480806955","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@vantic/sdk","version":"0.1.2","mcpName":"ai.vanticlabs/vantic","description":"Vantic — a spending firewall and permission layer for AI agents: signed mandates, allowlists, and tamper-proof receipts for every money-moving action.","type":"module","license":"Apache-2.0","author":{"name":"Vantic Labs"},"engines":{"node":">=18"},"main":"dist/index.js","types":"dist/index.d.ts","bin":{"vantic-mcp":"dist/mcp.js"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/vanticlabs/vantic.git"},"homepage":"https://github.com/vanticlabs/vantic#readme","bugs":{"url":"https://github.com/vanticlabs/vantic/issues"},"scripts":{"build":"tsc","test":"node --test dist/test/","demo":"tsc && node dist/demo.js","guard-demo":"tsc && node dist/guard-demo.js","adapters-demo":"tsc && node dist/adapters-demo.js","identity-demo":"tsc && node dist/identity-demo.js","gate-demo":"tsc && node dist/gate-demo.js","mcp":"tsc && node dist/mcp.js","prepublishOnly":"tsc"},"keywords":["ai-agents","agentic-commerce","delegation","ed25519","receipts","mcp","mcp-server","did","verifiable-credentials","agent-payments","prompt-injection"],"devDependencies":{"typescript":"^5.5.0","@types/node":"^20.0.0"},"_id":"@vantic/sdk@0.1.2","gitHead":"b9f2b99c348385fd05603d1532cbe85d25627718","_nodeVersion":"20.17.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-CGmuFuxf9Jzi35dLpkmKo+LzPgDYG8z4yvRHRWCC5sB3ShlXctSFHH3d9LH9o3KI0zneqpd+c5i1ipFhibUoDg==","shasum":"a2af9ff07bc699ab908ccd7acd00902a1cf0224a","tarball":"https://registry.npmjs.org/@vantic/sdk/-/sdk-0.1.2.tgz","fileCount":63,"unpackedSize":143367,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFRRyuMQtTegiaxJI46rMEEM5Gxitg2XrszdNx2Pe/+4AiEA6KVjxFtNuURqvjwVNDYx5ArB+4gtoRd/5MGhH5yNC7E="}]},"_npmUser":{"name":"vanticlabs","email":"bot@vanticlabs.ai"},"directories":{},"maintainers":[{"name":"vanticlabs","email":"bot@vanticlabs.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.1.2_1785503432113_0.7060444271778448"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-30T21:50:58.961Z","modified":"2026-07-31T13:10:32.436Z","0.1.0":"2026-07-30T21:50:59.262Z","0.1.1":"2026-07-31T12:37:59.225Z","0.1.2":"2026-07-31T13:10:32.264Z"},"bugs":{"url":"https://github.com/vanticlabs/vantic/issues"},"author":{"name":"Vantic Labs"},"license":"Apache-2.0","homepage":"https://github.com/vanticlabs/vantic#readme","keywords":["ai-agents","agentic-commerce","delegation","ed25519","receipts","mcp","mcp-server","did","verifiable-credentials","agent-payments","prompt-injection"],"repository":{"type":"git","url":"git+https://github.com/vanticlabs/vantic.git"},"description":"Vantic — a spending firewall and permission layer for AI agents: signed mandates, allowlists, and tamper-proof receipts for every money-moving action.","maintainers":[{"name":"vanticlabs","email":"bot@vanticlabs.ai"}],"readme":"# @vantic/sdk\n\nSigned mandates and receipt chains for autonomous agent transactions — and a\nclient-side spending firewall so your agent can't be prompt-injected into paying an attacker.\n\nZero runtime dependencies (Node ≥ 18 built-in crypto). Ed25519 + SHA-256 + canonical JSON,\nwith `did:key`/`did:web` identity and W3C Verifiable Credentials for the sponsor chain.\n\n```bash\nnpm install @vantic/sdk\n```\n\n```ts\nimport { generateKeyPair, issueMandate, AgentWallet } from \"@vantic/sdk\";\n\nconst principal = generateKeyPair();\nconst agent = generateKeyPair();\n\nconst mandate = issueMandate({\n  agent: agent.publicKey,\n  principal: principal.publicKey,\n  principalPrivateKeyPem: principal.privateKeyPem,\n  ttlSeconds: 7 * 24 * 3600,\n  scope: {\n    budget: { currency: \"USD\", amount: 50000, windowSeconds: 7 * 24 * 3600 }, // $500 / 7d\n    maxPerTransaction: 20000,\n    allowedActions: [\"purchase\"],\n    allowedCounterparties: [\"etsy.com\", \"*.shop.example\"],\n  },\n});\n\n// Wrap your agent's spend calls. A blocked action throws BEFORE any money moves.\nconst wallet = new AgentWallet(mandate, agent.privateKeyPem);\nawait wallet.spend(\n  { type: \"purchase\", counterparty: \"etsy.com\", amount: 4500, currency: \"USD\" },\n  async (a) => ({ outcome: \"settled\", result: await pay(a) }),\n);\n```\n\nAlso ships as an MCP server (`npx vantic-mcp`) exposing stateless verification tools.\n\nFull docs, protocol spec, and demos: see the repository. Apache-2.0.\n","readmeFilename":"README.md"}