{"_id":"@402lane/middleware","_rev":"6-4f9a05079bf63c24b31460dba2356b67","name":"@402lane/middleware","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@402lane/middleware","version":"0.1.0","license":"MIT","_id":"@402lane/middleware@0.1.0","maintainers":[{"name":"laneee","email":"lane998@atomicmail.io"}],"homepage":"https://github.com/oggyfoxy/lane402#readme","bugs":{"url":"https://github.com/oggyfoxy/lane402/issues"},"dist":{"shasum":"8079de5945afbd220d759b1b27cfe095186cb3ea","tarball":"https://registry.npmjs.org/@402lane/middleware/-/middleware-0.1.0.tgz","fileCount":4,"integrity":"sha512-6a6c2xTbM2IbcK+vvR+rfysegIedv8dUDT/1nE7I3izO4cPAYRW3gO+T+of3jGJ14UCL5ts0mC8EtxFhpnQhTw==","signatures":[{"sig":"MEUCIGHf3jKX2hrEtFz1IzlvOLHmcqCx6X+ssLVKjvmxiS5SAiEAyHeTdkFUOoGFe8ihL1+YSWatOIQUrkySTVFRbn8yvR4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6394},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"0bb6420df1f03a6291794646f6f65b4044e6e8e5","scripts":{"build":"tsc -p tsconfig.json"},"_npmUser":{"name":"laneee","email":"lane998@atomicmail.io"},"deprecated":"broken workspace deps; use 0.1.1+","repository":{"url":"git+https://github.com/oggyfoxy/lane402.git","type":"git"},"_npmVersion":"10.9.8","description":"One-line USDG paywall for Express, on Robinhood Chain (chain 4663) — part of [402LANE](https://402lane.vercel.app).","directories":{},"_nodeVersion":"22.23.1","dependencies":{"@402lane/core":"workspace:*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"express":"^4.19.0","typescript":"^5.5.0","@types/node":"^22.0.0","@types/express":"^4.17.21"},"peerDependencies":{"express":">=4"},"_npmOperationalInternal":{"tmp":"tmp/middleware_0.1.0_1784984940584_0.5359734099465747","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@402lane/middleware","version":"0.1.2","license":"MIT","_id":"@402lane/middleware@0.1.2","maintainers":[{"name":"laneee","email":"lane998@atomicmail.io"}],"homepage":"https://www.402lane.com","dist":{"shasum":"400a8c355e04115ca6c22e3ca6792ec53eba4756","tarball":"https://registry.npmjs.org/@402lane/middleware/-/middleware-0.1.2.tgz","fileCount":4,"integrity":"sha512-NKWIEAR6LQSYl0aU4njvVdUVGt9ctINUQMf9PzLwGdHz7NFaemjHSEXbS13/7V3W1sw/V5xDvncMD5QNzGurqA==","signatures":[{"sig":"MEQCIFPxV8TaaTT2wxJgTcofiYBA2Mj1sSj3jxyyHuw2CcEiAiB4qBweeM0wil5ZkWx2jooxzuCx0F00fPDWO7+8Zx90wQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6334},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"2b9603e59e23f4037bba21e1d5800ee50498af0b","scripts":{"build":"tsc -p tsconfig.json"},"_npmUser":{"name":"laneee","email":"lane998@atomicmail.io"},"_npmVersion":"10.9.8","description":"One-line USDG paywall for Express, on Robinhood Chain (chain 4663) — part of [402LANE](https://www.402lane.com).","directories":{},"_nodeVersion":"22.23.1","dependencies":{"@402lane/core":"^0.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"express":"^4.19.0","typescript":"^5.5.0","@types/node":"^22.0.0","@types/express":"^4.17.21"},"peerDependencies":{"express":">=4"},"_npmOperationalInternal":{"tmp":"tmp/middleware_0.1.2_1784993574406_0.26111572694712604","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@402lane/middleware","version":"0.1.3","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":"./dist/index.js"},"scripts":{"build":"tsc -p tsconfig.json"},"dependencies":{"@402lane/core":"^0.1.3"},"peerDependencies":{"express":">=4"},"devDependencies":{"typescript":"^5.5.0","@types/node":"^22.0.0","@types/express":"^4.17.21","express":"^4.19.0"},"publishConfig":{"access":"public"},"license":"MIT","homepage":"https://www.402lane.com","_id":"@402lane/middleware@0.1.3","gitHead":"2b9603e59e23f4037bba21e1d5800ee50498af0b","description":"One-line USDG paywall for Express, on Robinhood Chain (chain 4663) — part of [402LANE](https://www.402lane.com).","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-7jHzRKSNKtzjWn6Lf9JrCy4BG4WfbmIQX5qS1cHRrAvyxpQB993zHYcJf2NEiPbuEM37dqfkekd5pQdplvW3Cw==","shasum":"9aaf999c6ed3790886836e537679eef7eaa79a14","tarball":"https://registry.npmjs.org/@402lane/middleware/-/middleware-0.1.3.tgz","fileCount":4,"unpackedSize":6553,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDN0taaDdiEQcbGYh4EhcfMSOU14W6sKq1YTo8zXiTvGwIhAP65pNX9T5laSSBmO9zTP5GWdBxLSsUOpGcaz33wk49q"}]},"_npmUser":{"name":"laneee","email":"lane998@atomicmail.io"},"directories":{},"maintainers":[{"name":"laneee","email":"lane998@atomicmail.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/middleware_0.1.3_1784994226921_0.6478656852242477"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-25T13:09:00.393Z","modified":"2026-07-25T15:43:47.236Z","0.1.0":"2026-07-25T13:09:00.722Z","0.1.1":"2026-07-25T13:09:57.450Z","0.1.2":"2026-07-25T15:32:54.538Z","0.1.3":"2026-07-25T15:43:47.061Z"},"license":"MIT","homepage":"https://www.402lane.com","description":"One-line USDG paywall for Express, on Robinhood Chain (chain 4663) — part of [402LANE](https://www.402lane.com).","maintainers":[{"name":"laneee","email":"lane998@atomicmail.io"}],"readme":"# @402lane/middleware\n\nOne-line USDG paywall for Express, on Robinhood Chain (chain 4663) —\npart of [402LANE](https://www.402lane.com).\n\n```ts\nimport { lane402 } from \"@402lane/middleware\";\n\napp.use(\"/api\", lane402({\n  price: \"0.001\",            // USDG per request\n  payTo: \"0xYourAddress\",    // you get paid here, directly\n  network: \"eip155:4663\",     // or eip155:46630 for testnet\n  // resourceUrl: \"https://api.example/api\", // when running behind a proxy\n}));\n```\n\nRequests without payment get an HTTP 402 with a `PAYMENT-REQUIRED` header;\npaid responses carry a `PAYMENT-RESPONSE` header with the settlement tx hash.\n`facilitatorUrl` defaults to the hosted 402LANE facilitator.\nSee the [docs](https://www.402lane.com/docs). MIT.\n","readmeFilename":"README.md"}