{"_id":"@billionsnetwork/x402-human-proof-server","_rev":"4-4f621fbccb80618f26d978c23f94ac82","name":"@billionsnetwork/x402-human-proof-server","dist-tags":{"latest":"0.1.9"},"versions":{"0.1.6":{"name":"@billionsnetwork/x402-human-proof-server","version":"0.1.6","license":"UNLICENSED","_id":"@billionsnetwork/x402-human-proof-server@0.1.6","maintainers":[{"name":"obrezhniev","email":"oleksandr.brezhniev@gmail.com"}],"dist":{"shasum":"39f9d6928d83fc03223ad22eb71766535311066c","tarball":"https://registry.npmjs.org/@billionsnetwork/x402-human-proof-server/-/x402-human-proof-server-0.1.6.tgz","fileCount":44,"integrity":"sha512-IctBfzdaEBqua6W1COE9hUPhwYbjPZs2oJj/ecFKss3C5zOr+PkVWqdrLh1+gbvUrfGaJvEoxNcGnBIE5wjWgg==","signatures":[{"sig":"MEUCIQC105Uw8m/AQlpSwA/eZzfUIf8L566g5oKrb15+k5pbfwIgQH8tztwsWCb2z41uBShxYH/9YfqqoinySMxvRmCjd7o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":349039},"main":"./dist/node/cjs/index.cjs","type":"module","types":"./dist/types/index.d.ts","engines":{"node":">=20.11.0"},"exports":{".":{"node":{"import":"./dist/node/esm/index.js","require":"./dist/node/cjs/index.cjs"},"types":"./dist/types/index.d.ts"}},"gitHead":"e7dabf80ff17766ff1b69fe3202f23e78b5cffa8","scripts":{"dev":"tsup --watch","build":"tsup --config tsup.config.ts && tsc --emitDeclarationOnly --declaration --declarationMap --outDir dist/types"},"_npmUser":{"name":"obrezhniev","email":"oleksandr.brezhniev@gmail.com"},"_npmVersion":"10.9.7","description":"Server SDK for the x402 human-proof extension — human verification for API providers using signature verification and PoU registry lookups","directories":{},"_nodeVersion":"22.22.2","dependencies":{"bs58":"^6.0.0","viem":"^2.37.5","tweetnacl":"^1.0.3","@x402/core":"^2.8.0","@0xpolygonid/js-sdk":"^1.43.0","@iden3/js-iden3-core":"^1.8.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/x402-human-proof-server_0.1.6_1778498061808_0.44016353940202","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@billionsnetwork/x402-human-proof-server","version":"0.1.7","license":"UNLICENSED","_id":"@billionsnetwork/x402-human-proof-server@0.1.7","maintainers":[{"name":"obrezhniev","email":"oleksandr.brezhniev@gmail.com"}],"dist":{"shasum":"f38f65a31fe31f4f8516c95a0c215c6bae43f3e9","tarball":"https://registry.npmjs.org/@billionsnetwork/x402-human-proof-server/-/x402-human-proof-server-0.1.7.tgz","fileCount":44,"integrity":"sha512-xWDppmwDJLv5Nd8lFcf1waVVPQub7/t3KA/csqI/rPlyPtBfyQYTiCFMloB+iLAuQw94SkVE8PVlUyWYyVrxYA==","signatures":[{"sig":"MEUCIAdX20Htj/1TS48KnmKBCSwfukHB+wWWs9zREb5HCVbmAiEAyKGqpZHxGKk+RwpLQgLbp0pY+gRbxhKwKMa3B3kOo6g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":349995},"main":"./dist/node/cjs/index.cjs","type":"module","types":"./dist/types/index.d.ts","engines":{"node":">=20.11.0"},"exports":{".":{"node":{"import":"./dist/node/esm/index.js","require":"./dist/node/cjs/index.cjs"},"types":"./dist/types/index.d.ts"}},"gitHead":"ad810b886a9c66e1cd144f3a1b77e76a183a9fa5","scripts":{"dev":"tsup --watch","build":"tsup --config tsup.config.ts && tsc --emitDeclarationOnly --declaration --declarationMap --outDir dist/types"},"_npmUser":{"name":"obrezhniev","email":"oleksandr.brezhniev@gmail.com"},"_npmVersion":"10.9.7","description":"Server SDK for the x402 human-proof extension — human verification for API providers using signature verification and PoU registry lookups","directories":{},"_nodeVersion":"22.22.2","dependencies":{"bs58":"^6.0.0","viem":"^2.37.5","tweetnacl":"^1.0.3","@x402/core":"^2.8.0","@0xpolygonid/js-sdk":"^1.43.0","@iden3/js-iden3-core":"^1.8.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/x402-human-proof-server_0.1.7_1778605319592_0.6879627172643716","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@billionsnetwork/x402-human-proof-server","version":"0.1.8","license":"UNLICENSED","_id":"@billionsnetwork/x402-human-proof-server@0.1.8","maintainers":[{"name":"obrezhniev","email":"oleksandr.brezhniev@gmail.com"}],"dist":{"shasum":"a74a2b4a50d3eb178f29cdcf5930b89c164bd170","tarball":"https://registry.npmjs.org/@billionsnetwork/x402-human-proof-server/-/x402-human-proof-server-0.1.8.tgz","fileCount":44,"integrity":"sha512-zTgmV8NiL6ZFB5N9CsTTapdsf38T+3YzKNO+E2c0GZzZ/jCApr0lfdYQQPIgzAvAmrOv3ji5UK2WJscpchkqoQ==","signatures":[{"sig":"MEQCIGF7Jo/b2forK5da4UeFVewYufwYUnvHx4hpo44jJ38rAiANdMr0KrTQrqftmjSkZRX8demOc0vG2U/5SUv1Og/GpQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":356328},"main":"./dist/node/cjs/index.cjs","type":"module","types":"./dist/types/index.d.ts","engines":{"node":">=20.11.0"},"exports":{".":{"node":{"import":"./dist/node/esm/index.js","require":"./dist/node/cjs/index.cjs"},"types":"./dist/types/index.d.ts"}},"gitHead":"086a4dffe6c29dacf21fb2769c6bb62497ad56b2","scripts":{"dev":"tsup --watch","build":"tsup --config tsup.config.ts && tsc --emitDeclarationOnly --declaration --declarationMap --outDir dist/types"},"_npmUser":{"name":"obrezhniev","email":"oleksandr.brezhniev@gmail.com"},"_npmVersion":"10.9.7","description":"Server SDK for the x402 human-proof extension — human verification for API providers using signature verification and PoU registry lookups","directories":{},"_nodeVersion":"22.22.2","dependencies":{"bs58":"^6.0.0","viem":"^2.37.5","tweetnacl":"^1.0.3","@x402/core":"^2.8.0","@0xpolygonid/js-sdk":"^1.43.0","@iden3/js-iden3-core":"^1.8.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/x402-human-proof-server_0.1.8_1778763420126_0.7544245584926128","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@billionsnetwork/x402-human-proof-server","version":"0.1.9","license":"UNLICENSED","description":"Server SDK for the x402 human-proof extension — human verification for API providers using signature verification and PoU registry lookups","type":"module","main":"./dist/node/cjs/index.cjs","types":"./dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","node":{"import":"./dist/node/esm/index.js","require":"./dist/node/cjs/index.cjs"}}},"engines":{"node":">=20.11.0"},"scripts":{"build":"tsup --config tsup.config.ts && tsc --emitDeclarationOnly --declaration --declarationMap --outDir dist/types","dev":"tsup --watch"},"dependencies":{"@0xpolygonid/js-sdk":"^1.43.0","@iden3/js-iden3-core":"^1.8.0","@x402/core":"^2.8.0","bs58":"^6.0.0","tweetnacl":"^1.0.3","viem":"^2.37.5"},"_id":"@billionsnetwork/x402-human-proof-server@0.1.9","gitHead":"3efa5cb3bf7da4cd4f77e3ff2a2266dba0932df0","_nodeVersion":"22.22.2","_npmVersion":"10.9.7","dist":{"integrity":"sha512-H/x5VlEMjdgo0WyLVUaiOk48RaJwg9wH4Rwmex2WDweplnBxDfbPY5OXlPrrmGC+2h18S2MFxLsyA172GsA1cg==","shasum":"c2913e6846c83bcdd2a58006253a8231c675a6fe","tarball":"https://registry.npmjs.org/@billionsnetwork/x402-human-proof-server/-/x402-human-proof-server-0.1.9.tgz","fileCount":44,"unpackedSize":356328,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEUJ2rsQzC1d+6rMj+8Wohrz+BThulBdrm2Vn/QonGBYAiEA+GzrEj+9FuJIUP7S60FeqEoyWPF+UYmGhhnIDAuSpf4="}]},"_npmUser":{"name":"obrezhniev","email":"oleksandr.brezhniev@gmail.com"},"directories":{},"maintainers":[{"name":"obrezhniev","email":"oleksandr.brezhniev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/x402-human-proof-server_0.1.9_1778776138114_0.657194345087365"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-11T11:14:21.668Z","modified":"2026-05-14T16:28:58.408Z","0.1.6":"2026-05-11T11:14:21.956Z","0.1.7":"2026-05-12T17:01:59.749Z","0.1.8":"2026-05-14T12:57:00.332Z","0.1.9":"2026-05-14T16:28:58.268Z"},"license":"UNLICENSED","description":"Server SDK for the x402 human-proof extension — human verification for API providers using signature verification and PoU registry lookups","maintainers":[{"name":"obrezhniev","email":"oleksandr.brezhniev@gmail.com"}],"readme":"# @billionsnetwork/x402-human-proof-server\n\nServer package for x402 human-proof integrations.\n\n## Features\n\n- Human-proof verification helpers for server-side integrations.\n- TypeScript types included.\n- ESM and CJS outputs.\n\n## Installation\n\n```bash\nnpm install @billionsnetwork/x402-human-proof-server\n```\n\n## Usage\n\n```ts\nimport {\n\tconfigureHumanProofServer,\n\tdeclareHumanProofExtension,\n\tDEFAULT_AGENT_OWNERSHIP_SCHEMA,\n} from \"@billionsnetwork/x402-human-proof-server\";\n\n// 1) Declare human-proof requirements for your protected route\nconst resourceDeclaration = declareHumanProofExtension({\n\tstatement: \"By signing, you provide a human proof\",\n\texpirationSeconds: 900,\n});\n\n// 2) Register extension + verification hooks on your x402 server\nconfigureHumanProofServer(server, {\n\tstorage,\n\tonEvent: (event) => console.log(event.type),\n});\n\n// 3) Attach declaration in your route payment config\nconst accepts = [\n\t{\n\t\tscheme: \"exact\",\n\t\tprice: \"$0.006\",\n\t\tnetwork: \"eip155:84532\",\n\t\tpayTo: evmAddress,\n\t\textra: {\n\t\t\trequiredAttestations: [DEFAULT_AGENT_OWNERSHIP_SCHEMA],\n\t\t\tmaxUse: 1,\n\t\t\tscope: \"weather_report\",\n\t\t},\n\t},\n];\n\nconst extensions = {\n\t\"human-proof\": resourceDeclaration,\n};\n```\n\n## API\n\nPublic exports are available from the package root.\n\n## Development\n\n```bash\nnpm ci\nnpm run build\nnpm run dev\n```\n\n## Requirements\n\n- Node.js >= 20.11.0\n\n## License\n\nUNLICENSED\n\n## Notes\n\n- Source code is in `src/`.\n- Build output is generated in `dist/`.\n- For project-wide setup and examples, see the repository root `README.md`.\n","readmeFilename":"README.md"}