{"_id":"@bit-gpt/h402-express","_rev":"8-2fe3ad8c1a5b80cd284b608606187c62","name":"@bit-gpt/h402-express","dist-tags":{"latest":"0.0.8"},"versions":{"0.0.1":{"name":"@bit-gpt/h402-express","version":"0.0.1","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-express@0.0.1","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"homepage":"https://github.com/bit-gpt/h402#readme","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"dist":{"shasum":"a5975add062d0a290ad04b49975fc92deb31eb52","tarball":"https://registry.npmjs.org/@bit-gpt/h402-express/-/h402-express-0.0.1.tgz","fileCount":9,"integrity":"sha512-Exu91jbT5s5ngqzA/G5StP8vw5hJLiBC3mlsZagHgvFwhRu9P9AKWBinWCZE0Hi/cv+hVXMXE8FBwd/KDz0rrA==","signatures":[{"sig":"MEQCIHnyG3KwCjhe1OGPAPLn6Fx5TPfjXhJ9wV/aZ2+Y1bfgAiB7c7muh8PH3AWQTIoUN+4IckyWoN3VZVU9KSJl3RhAbQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":54089},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-express-0.0.1.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"bit-gpt","actor":{"name":"bit-gpt","type":"user","email":"dan@bitgpt.xyz"},"email":"dan@bitgpt.xyz"},"_resolved":"/tmp/41033d3b0651f413ee0be0cf9db1ad99/bit-gpt-h402-express-0.0.1.tgz","_integrity":"sha512-Exu91jbT5s5ngqzA/G5StP8vw5hJLiBC3mlsZagHgvFwhRu9P9AKWBinWCZE0Hi/cv+hVXMXE8FBwd/KDz0rrA==","repository":{"url":"git+https://github.com/bit-gpt/h402.git","type":"git"},"_npmVersion":"11.4.2","description":"h402 Payment Protocol","directories":{},"_nodeVersion":"22.14.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","express":"^4.18.2","@bit-gpt/h402":"^0.0.15"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/express":"^5.0.1","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/h402-express_0.0.1_1751809764637_0.4487525496114939","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@bit-gpt/h402-express","version":"0.0.2","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-express@0.0.2","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"homepage":"https://github.com/bit-gpt/h402#readme","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"dist":{"shasum":"d9a6116a635d3b2b3a387a56c11b69b28b316593","tarball":"https://registry.npmjs.org/@bit-gpt/h402-express/-/h402-express-0.0.2.tgz","fileCount":9,"integrity":"sha512-IM+Q/mw3KOrb9rk0K6WFBd4W6cf3TA0qYeJ6LKIRo9deQnnJPaYXZi2cinC2F6gEmVy9cilr5MVS9lJ0VD/I6Q==","signatures":[{"sig":"MEUCIQCaamHONsWcDPZBZboPR0CRj5TrOQIfnAVcRqDWtvK+VwIgO79DP7hOgialK5y5wUL3srwRapWX6QT36t8qee7ATvs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":54101},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-express-0.0.2.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"bit-gpt","email":"dan@bitgpt.xyz"},"_resolved":"/tmp/372f280ecd51d1ab0dea98327519a089/bit-gpt-h402-express-0.0.2.tgz","_integrity":"sha512-IM+Q/mw3KOrb9rk0K6WFBd4W6cf3TA0qYeJ6LKIRo9deQnnJPaYXZi2cinC2F6gEmVy9cilr5MVS9lJ0VD/I6Q==","repository":{"url":"git+https://github.com/bit-gpt/h402.git","type":"git"},"_npmVersion":"10.9.3","description":"h402 Payment Protocol","directories":{},"_nodeVersion":"22.18.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","express":"^4.18.2","@bit-gpt/h402":"^0.0.16"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/express":"^5.0.1","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/h402-express_0.0.2_1755095370954_0.4484482912405796","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@bit-gpt/h402-express","version":"0.0.3","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-express@0.0.3","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"homepage":"https://github.com/bit-gpt/h402#readme","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"dist":{"shasum":"c2f8f8a8adb046a24237fffdcc3836d0dd22d397","tarball":"https://registry.npmjs.org/@bit-gpt/h402-express/-/h402-express-0.0.3.tgz","fileCount":9,"integrity":"sha512-5lTQ1A1lC4dzdNSnmYf8BVFPKVMjBAXl5GyBEGxdIxW+TcygKoIWcbR4hNVThBSfnOYMkSVmkJXQz01+Qf1WLQ==","signatures":[{"sig":"MEQCIEkJsNa3vis662gmg3g5fuTpiBOcB0bAj5LSrqhCnRroAiAmfLkEBoaWgWjOzojK73JZAnpGRlnRlKOfUcPqe3tLyA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":54101},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-express-0.0.3.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"bit-gpt","email":"dan@bitgpt.xyz"},"_resolved":"/tmp/e09c093b45d482d6fd37586d042c92bd/bit-gpt-h402-express-0.0.3.tgz","_integrity":"sha512-5lTQ1A1lC4dzdNSnmYf8BVFPKVMjBAXl5GyBEGxdIxW+TcygKoIWcbR4hNVThBSfnOYMkSVmkJXQz01+Qf1WLQ==","repository":{"url":"git+https://github.com/bit-gpt/h402.git","type":"git"},"_npmVersion":"10.9.3","description":"h402 Payment Protocol","directories":{},"_nodeVersion":"22.19.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","express":"^4.18.2","@bit-gpt/h402":"^0.0.17"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/express":"^5.0.1","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/h402-express_0.0.3_1757528365770_0.2974875641229","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@bit-gpt/h402-express","version":"0.0.4","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-express@0.0.4","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"homepage":"https://github.com/bit-gpt/h402#readme","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"dist":{"shasum":"461fa1716d8ce644fd6edda84ab7bad039634cab","tarball":"https://registry.npmjs.org/@bit-gpt/h402-express/-/h402-express-0.0.4.tgz","fileCount":9,"integrity":"sha512-uvMS8SuSxRP1XFdXa4v8xdmiFctFImZ3MVY2C/sG35PkEQmgG5IHv2aPDCgsFCVsmdQeoKGMhmoZtOkMuuGsYw==","signatures":[{"sig":"MEYCIQCcoSCIlddVLpKO6yQyIwOaImPLLdXi2ZQ7t/SVPqlFKgIhAP0uAczApPOkP8Veqp8T1ydODJRQfh/u469xP5n+6VMH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":54101},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-express-0.0.4.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"bit-gpt","email":"dan@bitgpt.xyz"},"_resolved":"/tmp/bffc8bbacd04d7a1c8ee84e010892839/bit-gpt-h402-express-0.0.4.tgz","_integrity":"sha512-uvMS8SuSxRP1XFdXa4v8xdmiFctFImZ3MVY2C/sG35PkEQmgG5IHv2aPDCgsFCVsmdQeoKGMhmoZtOkMuuGsYw==","repository":{"url":"git+https://github.com/bit-gpt/h402.git","type":"git"},"_npmVersion":"10.9.3","description":"h402 Payment Protocol","directories":{},"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","express":"^4.18.2","@bit-gpt/h402":"^0.0.18"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/express":"^5.0.1","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/h402-express_0.0.4_1759840818505_0.06712420723151213","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@bit-gpt/h402-express","version":"0.0.5","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-express@0.0.5","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"homepage":"https://github.com/bit-gpt/h402#readme","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"dist":{"shasum":"c077656569b33b30e7c1786d5312bf392c7fb2ce","tarball":"https://registry.npmjs.org/@bit-gpt/h402-express/-/h402-express-0.0.5.tgz","fileCount":9,"integrity":"sha512-9LLn5I1AqkNtus/Pnv0KNlC2wWDO7LpVfiVxdz+UXeFbLC+u540I2QdVOWfqu4ByTzkWwy8uLROpx9LbQ9lxoQ==","signatures":[{"sig":"MEUCIGVICeYF7aKr4kuo96B10qohbBxRmOgwKIDB+ux0+1VlAiEA5M/MO8fRFd3IH/E0IB3P9K9VJnxqiJj+R+7yGDf4Kyo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55969},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-express-0.0.5.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"bit-gpt","email":"dan@bitgpt.xyz"},"_resolved":"/tmp/b1d881c98f4e753854372d07b1fbb4aa/bit-gpt-h402-express-0.0.5.tgz","_integrity":"sha512-9LLn5I1AqkNtus/Pnv0KNlC2wWDO7LpVfiVxdz+UXeFbLC+u540I2QdVOWfqu4ByTzkWwy8uLROpx9LbQ9lxoQ==","repository":{"url":"git+https://github.com/bit-gpt/h402.git","type":"git"},"_npmVersion":"10.9.3","description":"h402 Payment Protocol","directories":{},"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","express":"^4.18.2","@bit-gpt/h402":"^0.0.19"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/express":"^5.0.1","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/h402-express_0.0.5_1760365345065_0.6287906348970227","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@bit-gpt/h402-express","version":"0.0.6","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-express@0.0.6","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"homepage":"https://github.com/bit-gpt/h402#readme","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"dist":{"shasum":"86afd1f5c9684e6c4d2f54eca03c1152342d474f","tarball":"https://registry.npmjs.org/@bit-gpt/h402-express/-/h402-express-0.0.6.tgz","fileCount":9,"integrity":"sha512-ZoxygAZ0cmBmZtlah3jXSlnj0MpJ9hNV0SipDdoQHZOZRzbuB4GYmJ5MPs99yTg1L69yOpgcH2cLK0yXz4i5Pw==","signatures":[{"sig":"MEQCIF4tdTw6tMLi0alLad2ZpaqFwL8wpLLLmKVMlemQIn55AiAviZAxiRUgrr4INlpvyLsVDV9NMS4NfOspCaeM0VLVwA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55969},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-express-0.0.6.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"bit-gpt","email":"dan@bitgpt.xyz"},"_resolved":"/tmp/f9e0ddded125b6f0c915dc08b5423194/bit-gpt-h402-express-0.0.6.tgz","_integrity":"sha512-ZoxygAZ0cmBmZtlah3jXSlnj0MpJ9hNV0SipDdoQHZOZRzbuB4GYmJ5MPs99yTg1L69yOpgcH2cLK0yXz4i5Pw==","repository":{"url":"git+https://github.com/bit-gpt/h402.git","type":"git"},"_npmVersion":"10.9.3","description":"h402 Payment Protocol","directories":{},"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","express":"^4.18.2","@bit-gpt/h402":"^0.0.20"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/express":"^5.0.1","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/h402-express_0.0.6_1760457818593_0.6801133857926025","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@bit-gpt/h402-express","version":"0.0.7","keywords":[],"author":{"name":"BitGPT"},"license":"Apache-2.0","_id":"@bit-gpt/h402-express@0.0.7","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"homepage":"https://github.com/bit-gpt/h402#readme","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"dist":{"shasum":"143240a20790cfb3e521c645df46d710bc587fe5","tarball":"https://registry.npmjs.org/@bit-gpt/h402-express/-/h402-express-0.0.7.tgz","fileCount":9,"integrity":"sha512-2wd5y4xK4rKdMdPjzQne0dx6L0HcfTVG+6ZqbEoi5y/qfSptJvNRbeq8wswEu+L3ZspZ7U6d5QqdKza8W0vXIQ==","signatures":[{"sig":"MEUCIQD938OlPrFA73XsHVB0QynMBnjcdhji3kJ2NonbjD1NIAIgA6GqKL0cwxQWgcm+HaGBU2zFBMZ0v03EiH3KdIxh3hQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":62553},"main":"./dist/cjs/index.js","_from":"file:bit-gpt-h402-express-0.0.7.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"lint":"eslint . --ext .ts --fix","build":"tsup","start":"tsx --env-file=.env index.ts","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","lint:check":"eslint . --ext .ts","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"bit-gpt","email":"dan@bitgpt.xyz"},"_resolved":"/tmp/bcc2d408a7195a647c2445abd7c8a6cc/bit-gpt-h402-express-0.0.7.tgz","_integrity":"sha512-2wd5y4xK4rKdMdPjzQne0dx6L0HcfTVG+6ZqbEoi5y/qfSptJvNRbeq8wswEu+L3ZspZ7U6d5QqdKza8W0vXIQ==","repository":{"url":"git+https://github.com/bit-gpt/h402.git","type":"git"},"_npmVersion":"10.9.4","description":"h402 Payment Protocol","directories":{},"_nodeVersion":"22.21.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","express":"^4.18.2","@bit-gpt/h402":"^0.0.21"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/express":"^5.0.1","eslint-plugin-jsdoc":"^50.6.9","vite-tsconfig-paths":"^5.1.4","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.6","@typescript-eslint/parser":"^8.29.1","@typescript-eslint/eslint-plugin":"^8.29.1"},"_npmOperationalInternal":{"tmp":"tmp/h402-express_0.0.7_1761488842329_0.27789124746255256","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@bit-gpt/h402-express","version":"0.0.8","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","types":"./dist/index.d.ts","keywords":[],"license":"Apache-2.0","author":{"name":"BitGPT"},"repository":{"type":"git","url":"git+https://github.com/bit-gpt/h402.git"},"description":"h402 Payment Protocol","devDependencies":{"@eslint/js":"^9.24.0","@types/express":"^5.0.1","@types/node":"^22.13.4","@typescript-eslint/eslint-plugin":"^8.29.1","@typescript-eslint/parser":"^8.29.1","eslint":"^9.24.0","eslint-plugin-import":"^2.31.0","eslint-plugin-jsdoc":"^50.6.9","eslint-plugin-prettier":"^5.2.6","prettier":"3.5.2","tsup":"^8.4.0","tsx":"^4.19.2","typescript":"^5.7.3","vite":"^6.2.6","vite-tsconfig-paths":"^5.1.4"},"dependencies":{"express":"^4.18.2","viem":"^2.21.26","zod":"^3.24.2","@bit-gpt/h402":"^0.0.22"},"exports":{".":{"import":{"types":"./dist/esm/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"start":"tsx --env-file=.env index.ts","build":"tsup","watch":"tsc --watch","format":"prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\"","lint":"eslint . --ext .ts --fix","lint:check":"eslint . --ext .ts"},"_id":"@bit-gpt/h402-express@0.0.8","bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"homepage":"https://github.com/bit-gpt/h402#readme","_integrity":"sha512-0sV/PhlVHdeua6swDP+lTqZP2/4wzYYSxnNxM+3ZCodgZb6Tl+gqjJyfZDSFsA+QL4KjgKh4yGRvPT3k0ykzfA==","_resolved":"/tmp/5f252287f84201e7ea98bc68c80d0cbb/bit-gpt-h402-express-0.0.8.tgz","_from":"file:bit-gpt-h402-express-0.0.8.tgz","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-0sV/PhlVHdeua6swDP+lTqZP2/4wzYYSxnNxM+3ZCodgZb6Tl+gqjJyfZDSFsA+QL4KjgKh4yGRvPT3k0ykzfA==","shasum":"ba603887805b3bd300732e05b2757802473de5d6","tarball":"https://registry.npmjs.org/@bit-gpt/h402-express/-/h402-express-0.0.8.tgz","fileCount":9,"unpackedSize":74097,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDpd3sHQduwSj0GtJqLAClpd7SH+o8msIMTuSwilR3JowIhAN6Ge10T/GTsj4q5Y301gb3SZzkhV0KKM5Q/t1VcRKI7"}]},"_npmUser":{"name":"bit-gpt","email":"dan@bitgpt.xyz"},"directories":{},"maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/h402-express_0.0.8_1762447489920_0.8012168155541952"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-06T13:49:24.527Z","modified":"2025-11-06T16:44:50.367Z","0.0.1":"2025-07-06T13:49:24.817Z","0.0.2":"2025-08-13T14:29:31.173Z","0.0.3":"2025-09-10T18:19:25.964Z","0.0.4":"2025-10-07T12:40:18.695Z","0.0.5":"2025-10-13T14:22:25.256Z","0.0.6":"2025-10-14T16:03:38.817Z","0.0.7":"2025-10-26T14:27:22.530Z","0.0.8":"2025-11-06T16:44:50.166Z"},"bugs":{"url":"https://github.com/bit-gpt/h402/issues"},"author":{"name":"BitGPT"},"license":"Apache-2.0","homepage":"https://github.com/bit-gpt/h402#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/bit-gpt/h402.git"},"description":"h402 Payment Protocol","maintainers":[{"name":"bit-gpt","email":"dan@bitgpt.xyz"}],"readme":"# h402-express\n\nExpress middleware integration for the h402 Payment Protocol. This package allows you to easily add paywall functionality to your Express.js applications using the h402 protocol.\n\n## Installation\n\n```bash\nnpm install @bit-gpt/h402-express\n```\n\n## Quick Start\n\n## Single Network Example\n\n```typescript\nimport express from \"express\";\nimport { paymentMiddleware, createRouteConfigFromPrice } from \"@bit-gpt/h402-express\";\n\nconst app = express();\n\n// Configure the payment middleware\napp.use(paymentMiddleware(\n  {\n    \"/protected-route\": createRouteConfigFromPrice(\"$0.1\", \"bsc\", \"0xYourEVMAddress\") // This doesn't work with Arkade Network\n  }\n));\n// Implement your route\napp.get(\"/protected-route\", \n  (req, res) => {\n    res.json({ message: \"This content is behind a paywall\" });\n  }\n);\n\napp.listen(3000);\n```\n\n\n## Multiple Networks Example\n\n```typescript\nimport express from \"express\";\nimport { paymentMiddleware } from \"@bit-gpt/h402-express\";\n\nconst app = express();\n\n// Configure the payment middleware\napp.use(\n  paymentMiddleware(\n    {\n      \"/protected-route\": {\n        paymentRequirements: [\n          {\n            scheme: \"exact\",\n            namespace: \"evm\",\n            tokenAddress: \"0x55d398326f99059ff775485246999027b3197955\", // USDT on BSC\n            amountRequired: 0.01,\n            amountRequiredFormat: \"humanReadable\",\n            networkId: \"56\",\n            payToAddress: \"0xYourEVMAddress\",\n            description: \"Premium content access with USDT on BSC\",\n            tokenDecimals: 18,\n            tokenSymbol: \"USDT\",\n          },\n          {\n            scheme: \"exact\",\n            namespace: \"evm\",\n            tokenAddress: \"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2\", // USDT on Base\n            amountRequired: 0.01, \n            amountRequiredFormat: \"humanReadable\", \n            networkId: \"8453\", \n            payToAddress: \"0xYourEVMAddress\",\n            description: \"Premium content access with USDT on Base\",\n            tokenDecimals: 6,\n            tokenSymbol: \"USDT\",\n          },\n          {\n            scheme: \"exact\",\n            namespace: \"solana\",\n            tokenAddress: \"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\", // USDC on Solana\n            amountRequired: 0.01,\n            amountRequiredFormat: \"humanReadable\",\n            networkId: \"mainnet\",\n            payToAddress: \"YourSolanaAddress\",\n            description: \"Premium content access with USDC on Solana\",\n            tokenDecimals: 6,\n            tokenSymbol: \"USDC\",\n          },\n          {\n            scheme: \"exact\",\n            namespace: \"arkade\",\n            amountRequired: 0.00001, // Amount should be more than dust amount otherwise it will be rejected\n            amountRequiredFormat: \"humanReadable\",\n            networkId: \"bitcoin\",\n            payToAddress: \"YourArkadeAddress\",\n            description: \"Premium content access with BTC via Arkade\",\n            tokenSymbol: \"BTC\",\n            tokenDecimals: 8,\n          },\n        ],\n      },\n    }\n  ),\n);\n\n// Implement your route\napp.get(\"/protected-route\", \n  (req, res) => {\n    res.json({ message: \"This content is behind a paywall\" });\n  }\n);\n\napp.listen(3000);\n```\n\n## Configuration\n\nThe `paymentMiddleware` function accepts the following parameters:\n\n1. `routes`: Route configurations for protected endpoints (required)\n2. `facilitator`: (Optional) Configuration for the h402 facilitator service\n3. `options`: (Optional) Additional middleware options, including `asyncSettlement` for async settlement mode\n\nSee the Middleware Options section below for detailed configuration options.\n\n## Middleware Options\n\nThe middleware supports various configuration options:\n\n### Route Configuration\n\n```typescript\ntype RoutesConfig = Record<string, RouteConfig>;\n\ntype RouteConfig = {\n  paymentRequirements: PaymentRequirements[];\n};\n```\n\nEach route can be configured with either:\n- A simple `Price` (string like `\"$0.01\"` or `Money` type) - this will be automatically converted to a `RouteConfig`\n- A full `RouteConfig` object with detailed `paymentRequirements` array\n\n### Facilitator Configuration\n\n```typescript\ntype FacilitatorConfig = {\n  url: Resource;                      // URL of the h402 facilitator service\n  createAuthHeaders?: CreateHeaders;  // Optional function to create authentication headers\n};\n```\n\n### Middleware Options\n\n```typescript\ninterface MiddlewareOptions {\n  asyncSettlement?: boolean;          // If true, settlement happens asynchronously after response is sent\n}\n```\n","readmeFilename":"README.md"}