{"_id":"@b3dotfun/anyspend-x402-next","_rev":"8-d139a3ee20303e41d4430af1b51c004d","name":"@b3dotfun/anyspend-x402-next","dist-tags":{"latest":"0.1.7"},"versions":{"0.1.1":{"name":"@b3dotfun/anyspend-x402-next","version":"0.1.1","keywords":["x402","anyspend","next","nextjs","middleware","payment-protocol","web3","payments","cryptocurrency"],"author":{"name":"b3-fun"},"license":"Apache-2.0","_id":"@b3dotfun/anyspend-x402-next@0.1.1","maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"alex-kaffetzakis","email":"alex@kaffetzakis.com"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"wojb3","email":"wojtek@npclabs.org"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"homepage":"https://github.com/b3-fun/anyspend-x402#readme","bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"dist":{"shasum":"ee5896a8afd831f62472b6b0b25b46b6d7164328","tarball":"https://registry.npmjs.org/@b3dotfun/anyspend-x402-next/-/anyspend-x402-next-0.1.1.tgz","fileCount":8,"integrity":"sha512-TPFXlBqx6bmwuZNc+8g6eO2b0Rmk2V4xKrCte1+vrG+sigSTaGTIvJZi7dha3lIkU3MyeJNbpUAdE9nbZUmzsQ==","signatures":[{"sig":"MEYCIQCBqh1HT9BpFhHqccy9FkCPpjbS25M7NpnMKDcaFVCP6wIhAIuxXjXI4GksKxDG+HD8avM13woi3KNsI+LqOnTepp6o","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":104282},"main":"./dist/cjs/index.js","type":"module","_from":"file:b3dotfun-anyspend-x402-next-0.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}}},"scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","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","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"anqt-dev","email":"anqtran36@gmail.com"},"_resolved":"/private/var/folders/3h/t371gs6d3gj5fknk2x2qqs0h0000gn/T/c8b6d45f43d11863f5548fe148e9279b/b3dotfun-anyspend-x402-next-0.1.1.tgz","_integrity":"sha512-TPFXlBqx6bmwuZNc+8g6eO2b0Rmk2V4xKrCte1+vrG+sigSTaGTIvJZi7dha3lIkU3MyeJNbpUAdE9nbZUmzsQ==","repository":{"url":"git+https://github.com/b3-fun/anyspend-x402.git","type":"git"},"_npmVersion":"10.9.0","description":"AnySpend x402 Next.js middleware - Extended x402 payment protocol integration for Next.js with multi-token support","directories":{},"_nodeVersion":"23.3.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@solana/kit":"^2.1.1","@coinbase/cdp-sdk":"^1.29.0","@b3dotfun/anyspend-x402":"^0.2.3","@b3dotfun/anyspend-x402-token-compat":"^0.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","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"},"peerDependencies":{"next":"^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/anyspend-x402-next_0.1.1_1762325098021_0.25289368915704524","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@b3dotfun/anyspend-x402-next","version":"0.1.2","keywords":["x402","anyspend","next","nextjs","middleware","payment-protocol","web3","payments","cryptocurrency"],"author":{"name":"b3-fun"},"license":"Apache-2.0","_id":"@b3dotfun/anyspend-x402-next@0.1.2","maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"alex-kaffetzakis","email":"alex@kaffetzakis.com"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"wojb3","email":"wojtek@npclabs.org"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"homepage":"https://github.com/b3-fun/anyspend-x402#readme","bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"dist":{"shasum":"a5dbd648154749b6206dd7f2703617e61864ebcb","tarball":"https://registry.npmjs.org/@b3dotfun/anyspend-x402-next/-/anyspend-x402-next-0.1.2.tgz","fileCount":8,"integrity":"sha512-eRrjSYTOJqJJcJeDyPlu6v1U5qUDvsLDjy1ui9cTep1qSx3RW68sDfYqv3vwzTgdYEQlDgDIzZieH7+JiudMbA==","signatures":[{"sig":"MEUCIQC3weaCRfscGHx9mrG/0e5PEAx6ohbAIFv4Z0DO3gnbaAIgduioxjFE829wjc5a6I4KbOgGYYRNQguDDg/59Sykdpo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":104282},"main":"./dist/cjs/index.js","type":"module","_from":"file:b3dotfun-anyspend-x402-next-0.1.2.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}}},"scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","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","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"anqt-dev","email":"anqtran36@gmail.com"},"_resolved":"/private/var/folders/3h/t371gs6d3gj5fknk2x2qqs0h0000gn/T/e7fe90b99648453dbaf782103d71855a/b3dotfun-anyspend-x402-next-0.1.2.tgz","_integrity":"sha512-eRrjSYTOJqJJcJeDyPlu6v1U5qUDvsLDjy1ui9cTep1qSx3RW68sDfYqv3vwzTgdYEQlDgDIzZieH7+JiudMbA==","repository":{"url":"git+https://github.com/b3-fun/anyspend-x402.git","type":"git"},"_npmVersion":"10.9.0","description":"AnySpend x402 Next.js middleware - Extended x402 payment protocol integration for Next.js with multi-token support","directories":{},"_nodeVersion":"23.3.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@solana/kit":"^2.1.1","@coinbase/cdp-sdk":"^1.29.0","@b3dotfun/anyspend-x402":"^0.2.4","@b3dotfun/anyspend-x402-token-compat":"^0.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","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"},"peerDependencies":{"next":"^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/anyspend-x402-next_0.1.2_1762328508492_0.18291271888680138","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@b3dotfun/anyspend-x402-next","version":"0.1.3","keywords":["x402","anyspend","next","nextjs","middleware","payment-protocol","web3","payments","cryptocurrency"],"author":{"name":"b3-fun"},"license":"Apache-2.0","_id":"@b3dotfun/anyspend-x402-next@0.1.3","maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"alex-kaffetzakis","email":"alex@kaffetzakis.com"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"wojb3","email":"wojtek@npclabs.org"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"homepage":"https://github.com/b3-fun/anyspend-x402#readme","bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"dist":{"shasum":"dbaca1ef7f27e5d7457eb8c5f5a6c2b4134796f3","tarball":"https://registry.npmjs.org/@b3dotfun/anyspend-x402-next/-/anyspend-x402-next-0.1.3.tgz","fileCount":8,"integrity":"sha512-02dcNbxlKjvWwdG8dlZq0EklHIB+E/h1fv6FjxZdEc4097XRHV+l1S7BrETdnsh7WYMci7T9jYPO+rd9n63u5Q==","signatures":[{"sig":"MEUCIQC6r93DFHsCbNf6/WzmW6HqbyJ7cirlxqqUMvuNQKXcSgIgdH3RJKztV2lk4Uq2fH/LLbugQLGbfBzgqEDI/687WDY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":104282},"main":"./dist/cjs/index.js","type":"module","_from":"file:b3dotfun-anyspend-x402-next-0.1.3.tgz","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}}},"scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","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","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"anqt-dev","email":"anqtran36@gmail.com"},"_resolved":"/private/var/folders/3h/t371gs6d3gj5fknk2x2qqs0h0000gn/T/cd6e25ec4aee2859a2d22eb67cc80bf1/b3dotfun-anyspend-x402-next-0.1.3.tgz","_integrity":"sha512-02dcNbxlKjvWwdG8dlZq0EklHIB+E/h1fv6FjxZdEc4097XRHV+l1S7BrETdnsh7WYMci7T9jYPO+rd9n63u5Q==","repository":{"url":"git+https://github.com/b3-fun/anyspend-x402.git","type":"git"},"_npmVersion":"10.9.0","description":"AnySpend x402 Next.js middleware - Extended x402 payment protocol integration for Next.js with multi-token support","directories":{},"_nodeVersion":"23.3.0","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@solana/kit":"^2.1.1","@coinbase/cdp-sdk":"^1.29.0","@b3dotfun/anyspend-x402":"^0.2.5","@b3dotfun/anyspend-x402-token-compat":"^0.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","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"},"peerDependencies":{"next":"^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/anyspend-x402-next_0.1.3_1763141589359_0.8058470160435252","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@b3dotfun/anyspend-x402-next","version":"0.1.4","keywords":["x402","anyspend","next","nextjs","middleware","payment-protocol","web3","payments","cryptocurrency"],"author":{"name":"b3-fun"},"license":"Apache-2.0","_id":"@b3dotfun/anyspend-x402-next@0.1.4","maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"homepage":"https://github.com/b3-fun/anyspend-x402#readme","bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"dist":{"shasum":"a15c862a982935dbfe3b8b2b62e9eb0defe3a65b","tarball":"https://registry.npmjs.org/@b3dotfun/anyspend-x402-next/-/anyspend-x402-next-0.1.4.tgz","fileCount":8,"integrity":"sha512-JCtZWf5IJYWQ/+ruodUQ3qnry35Cq2yVJKEMRctTAmVph5B4fn2koI2wOWo3ZRU7c9JG+B2ejy6gVD24wYgSTw==","signatures":[{"sig":"MEYCIQC0V0OMJCr2Anww8//MAFm4Q4ksXX70YY4t6UEkXlTtswIhAO5lYKMZpaoYxefJybtOXAsBt3hMuBhdh17X075Z/zxW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105921},"main":"./dist/cjs/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}}},"gitHead":"5d688195a63080aa377a0ed282f647e6c3e82343","scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","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","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"trung.npclabs","email":"trung@npclabs.org"},"repository":{"url":"git+https://github.com/b3-fun/anyspend-x402.git","type":"git"},"_npmVersion":"11.6.0","description":"AnySpend x402 Next.js middleware - Extended x402 payment protocol integration for Next.js with multi-token support","directories":{},"_nodeVersion":"20.19.4","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@solana/kit":"^2.1.1","@coinbase/cdp-sdk":"^1.29.0","@b3dotfun/anyspend-x402":"workspace:^","@b3dotfun/anyspend-x402-token-compat":"workspace:^"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","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"},"peerDependencies":{"next":"^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/anyspend-x402-next_0.1.4_1770135166273_0.8244423780798014","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@b3dotfun/anyspend-x402-next","version":"0.1.5","keywords":["x402","anyspend","next","nextjs","middleware","payment-protocol","web3","payments","cryptocurrency"],"author":{"name":"b3-fun"},"license":"Apache-2.0","_id":"@b3dotfun/anyspend-x402-next@0.1.5","maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"homepage":"https://github.com/b3-fun/anyspend-x402#readme","bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"dist":{"shasum":"a3bcd351efaa0ccf77e6b897ccc4bb0ced4bcc41","tarball":"https://registry.npmjs.org/@b3dotfun/anyspend-x402-next/-/anyspend-x402-next-0.1.5.tgz","fileCount":8,"integrity":"sha512-/lVNoSXIEf/89tunubKOeVmUBwkFit4F9gDe0xUMLDJKKldVZ0WWjzKh77w4syWUF2OHibVoG8s97/hzsSHIgw==","signatures":[{"sig":"MEUCIFT3rVYa7LrI1km6AfOlUuMkdI1XDjCZI0d2/vnJUQk+AiEA//JhWVDv9yaPwZE218zO3NZvCLqVu4r8JZa/VKzCevY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105921},"main":"./dist/cjs/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}}},"gitHead":"ebd2dfcb0f558a16c2d800ed5114e99e92d28284","scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","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","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"trung.npclabs","email":"trung@npclabs.org"},"repository":{"url":"git+https://github.com/b3-fun/anyspend-x402.git","type":"git"},"_npmVersion":"11.6.0","description":"AnySpend x402 Next.js middleware - Extended x402 payment protocol integration for Next.js with multi-token support","directories":{},"_nodeVersion":"20.19.4","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@solana/kit":"^2.1.1","@coinbase/cdp-sdk":"^1.29.0","@b3dotfun/anyspend-x402":"workspace:^","@b3dotfun/anyspend-x402-token-compat":"workspace:^"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","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"},"peerDependencies":{"next":"^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/anyspend-x402-next_0.1.5_1770135673885_0.9523061800645443","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@b3dotfun/anyspend-x402-next","version":"0.1.6","keywords":["x402","anyspend","next","nextjs","middleware","payment-protocol","web3","payments","cryptocurrency"],"author":{"name":"b3-fun"},"license":"Apache-2.0","_id":"@b3dotfun/anyspend-x402-next@0.1.6","maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"homepage":"https://github.com/b3-fun/anyspend-x402#readme","bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"dist":{"shasum":"86c2dc3ff09e894ffea202baf01de92ae6c8e409","tarball":"https://registry.npmjs.org/@b3dotfun/anyspend-x402-next/-/anyspend-x402-next-0.1.6.tgz","fileCount":8,"integrity":"sha512-WC5K9fDmqQ2jJTBEBLLAGw3WT3jL1Mw3+g6thUzCBLi2ggOVo+Z3JpoFzvmRW7s3XlXekYB8hskUTzqyF7d+sQ==","signatures":[{"sig":"MEUCIAfhn7weOnqtZtK0NA0MOWnWqO+hSmj9Mmdj0CdFeImiAiEAh4qOr0oiGc40C+pFJjRuUrphlqkweGPZLd4xMP634gE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108545},"main":"./dist/cjs/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}}},"gitHead":"e6cf8fdcffb715abd154472137da02acfdb0ebca","scripts":{"lint":"eslint . --ext .ts --fix","test":"vitest run","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","test:watch":"vitest","format:check":"prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\""},"_npmUser":{"name":"trung.npclabs","email":"trung@npclabs.org"},"repository":{"url":"git+https://github.com/b3-fun/anyspend-x402.git","type":"git"},"_npmVersion":"11.6.0","description":"AnySpend x402 Next.js middleware - Extended x402 payment protocol integration for Next.js with multi-token support","directories":{},"_nodeVersion":"20.19.4","dependencies":{"zod":"^3.24.2","viem":"^2.21.26","@solana/kit":"^2.1.1","@coinbase/cdp-sdk":"^1.29.0","@b3dotfun/anyspend-x402":"workspace:^","@b3dotfun/anyspend-x402-token-compat":"workspace:^"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","tsup":"^8.4.0","vite":"^6.2.6","eslint":"^9.24.0","vitest":"^3.0.5","prettier":"3.5.2","@eslint/js":"^9.24.0","typescript":"^5.7.3","@types/node":"^22.13.4","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"},"peerDependencies":{"next":"^15.0.0"},"_npmOperationalInternal":{"tmp":"tmp/anyspend-x402-next_0.1.6_1770196632966_0.8911363440926012","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@b3dotfun/anyspend-x402-next","version":"0.1.7","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","types":"./dist/index.d.ts","scripts":{"start":"tsx --env-file=.env index.ts","test":"vitest run","test:watch":"vitest","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"},"keywords":["x402","anyspend","next","nextjs","middleware","payment-protocol","web3","payments","cryptocurrency"],"license":"Apache-2.0","author":{"name":"b3-fun"},"repository":{"type":"git","url":"git+https://github.com/b3-fun/anyspend-x402.git"},"description":"AnySpend x402 Next.js middleware - Extended x402 payment protocol integration for Next.js with multi-token support","homepage":"https://github.com/b3-fun/anyspend-x402#readme","bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"devDependencies":{"@eslint/js":"^9.24.0","@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","vitest":"^3.0.5"},"dependencies":{"@coinbase/cdp-sdk":"^1.29.0","@solana/kit":"^2.1.1","viem":"^2.21.26","@b3dotfun/anyspend-x402":"^0.2.9","@b3dotfun/anyspend-x402-token-compat":"^0.1.3","zod":"^3.24.2"},"peerDependencies":{"next":"^15.0.0"},"type":"module","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}}},"publishConfig":{"access":"public"},"_id":"@b3dotfun/anyspend-x402-next@0.1.7","gitHead":"56e1c5b4cde1b6a47b67b5787b941da0dd7c3e5e","_nodeVersion":"20.19.4","_npmVersion":"11.6.0","dist":{"integrity":"sha512-diDSLkTSmpETbkslI4+VKO1PRSaybs3L7RXzOawo0hOKGeu55cBSDAUpCy0wuPaTkVE9nlxsBRfCsaD4SOaFdw==","shasum":"9916dce274a3099b75f22921eb7aabe607cfb384","tarball":"https://registry.npmjs.org/@b3dotfun/anyspend-x402-next/-/anyspend-x402-next-0.1.7.tgz","fileCount":8,"unpackedSize":108535,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD8bC6Ducs0t95VVTECYM/24zLh4uVkYKIXpcqBn7gf7AIhAJSy49ZfScR6VnG2Xp1w6iIXC5Y0rj8zfPtXgP2PUVmP"}]},"_npmUser":{"name":"trung.npclabs","email":"trung@npclabs.org"},"directories":{},"maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/anyspend-x402-next_0.1.7_1770197764322_0.6898337375216106"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-05T06:44:57.935Z","modified":"2026-02-04T09:36:04.729Z","0.1.1":"2025-11-05T06:44:58.215Z","0.1.2":"2025-11-05T07:41:48.683Z","0.1.3":"2025-11-14T17:33:09.570Z","0.1.4":"2026-02-03T16:12:46.425Z","0.1.5":"2026-02-03T16:21:14.035Z","0.1.6":"2026-02-04T09:17:13.109Z","0.1.7":"2026-02-04T09:36:04.473Z"},"bugs":{"url":"https://github.com/b3-fun/anyspend-x402/issues"},"author":{"name":"b3-fun"},"license":"Apache-2.0","homepage":"https://github.com/b3-fun/anyspend-x402#readme","keywords":["x402","anyspend","next","nextjs","middleware","payment-protocol","web3","payments","cryptocurrency"],"repository":{"type":"git","url":"git+https://github.com/b3-fun/anyspend-x402.git"},"description":"AnySpend x402 Next.js middleware - Extended x402 payment protocol integration for Next.js with multi-token support","maintainers":[{"name":"max-b3","email":"max@npclabs.org"},{"name":"npclabs","email":"sean@npclabs.org"},{"name":"gionpclabs","email":"gio@npclabs.org"},{"name":"b3_david","email":"davidnguyen@npclabs.org"},{"name":"anqt-dev","email":"anqtran36@gmail.com"},{"name":"mitchmyburgh","email":"mitchmyburgh@gmail.com"},{"name":"trung.npclabs","email":"trung@npclabs.org"},{"name":"mikedutuandu","email":"mike@npclabs.org"}],"readme":"# @b3dotfun/anyspend-x402-next\n\nAnySpend-enhanced Next.js middleware for the x402 Payment Protocol. This package extends the standard x402-next middleware with multi-token and cross-chain payment support through the AnySpend facilitator.\n\n## Installation\n\n```bash\nnpm install @b3dotfun/anyspend-x402-next\n```\n\n## Quick Start\n\nCreate a middleware file in your Next.js project (e.g., `middleware.ts`):\n\n```typescript\nimport { paymentMiddleware } from '@b3dotfun/anyspend-x402-next';\nimport { facilitator } from '@b3dotfun/anyspend-x402';\n\nexport const middleware = paymentMiddleware(\n  \"0xYourAddress\",\n  {\n    '/protected': {\n      price: '$0.01',\n      network: \"base-sepolia\",\n      config: {\n        description: 'Access to protected content'\n      }\n    },\n  },\n  facilitator  // Use AnySpend facilitator for multi-token support\n);\n\n// Configure which paths the middleware should run on\nexport const config = {\n  matcher: [\n    '/protected/:path*',\n  ]\n};\n```\n\n## What Makes AnySpend Different?\n\nUnlike standard x402 implementations, AnySpend x402 enables:\n\n- ✨ **Multi-token payments** - Accept payments in various ERC-20 tokens, not just USDC\n- 🌉 **Cross-chain payments** - Users pay on one network, you receive on another\n- 🔄 **Automatic conversion** - AnySpend handles token swaps and bridging seamlessly\n- 🎯 **Same developer experience** - Drop-in replacement for standard x402 middleware\n\nUsers can pay with any supported token on any supported network, while you receive payments in your preferred token on your preferred network.\n\n## Configuration\n\nThe `paymentMiddleware` function accepts three parameters:\n\n1. `payTo`: Your receiving address (`0x${string}`)\n2. `routes`: Route configurations for protected endpoints\n3. `facilitator`: (Optional) Configuration for the x402 facilitator service\n4. `paywall`: (Optional) Configuration for the built-in paywall\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, Price | RouteConfig>;\n\ninterface RouteConfig {\n  price: Price;           // Price in USD or token amount\n  network: Network;       // \"base\" or \"base-sepolia\"\n  config?: PaymentMiddlewareConfig;\n}\n```\n\n### Payment Configuration\n\n```typescript\ninterface PaymentMiddlewareConfig {\n  description?: string;               // Description of the payment\n  mimeType?: string;                  // MIME type of the resource\n  maxTimeoutSeconds?: number;         // Maximum time for payment (default: 60)\n  outputSchema?: Record<string, any>; // JSON schema for the response\n  customPaywallHtml?: string;         // Custom HTML for the paywall\n  resource?: string;                  // Resource URL (defaults to request URL)\n}\n```\n\n### Facilitator Configuration\n\n```typescript\ntype FacilitatorConfig = {\n  url: string;                        // URL of the x402 facilitator service\n  createAuthHeaders?: CreateHeaders;  // Optional function to create authentication headers\n};\n```\n\n### Paywall Configuration\n\nFor more on paywall configuration options, refer to the [paywall README](../x402/src/paywall/README.md).\n\n```typescript\ntype PaywallConfig = {\n  cdpClientKey?: string;              // Your CDP Client API Key\n  appName?: string;                   // Name displayed in the paywall wallet selection modal\n  appLogo?: string;                   // Logo for the paywall wallet selection modal\n  sessionTokenEndpoint?: string;      // API endpoint for Coinbase Onramp session authentication\n};\n```\n\n## Accessing Mainnet with @coinbase/x402\n\n**TEMPORARY WORKAROUND**: The following configuration changes are only required until the `@coinbase/x402` package adds support for Edge runtime. Coinbase is actively working on making the package Edge-compatible, which will eliminate the need for these workarounds in the near future.\n\nTo use the official Coinbase facilitator package (`@coinbase/x402`) in your Next.js project, you'll need to make the following **temporary** changes to your project configuration:\n\n1. Install the Coinbase facilitator package:\n\n```bash\nnpm install @coinbase/x402\n```\n\n2. Enable Node.js middleware as an experimental feature in your Next.js config:\n\n```ts\n// next.config.ts\nconst nextConfig: NextConfig = {\n  // rest of your next config setup\n  experimental: {\n    nodeMiddleware: true, // TEMPORARY: Only needed until Edge runtime support is added\n  }\n};\n\nexport default nextConfig;\n```\n\n3. Specify the Node.js runtime in your middleware file:\n\n```ts\n// middleware.ts\nimport { paymentMiddleware } from \"@b3dotfun/anyspend-x402-next\";\nimport { facilitator } from \"@coinbase/x402\";\n\nexport const middleware = paymentMiddleware(\n  \"0xYourAddress\",\n  {\n    \"/protected\": {\n      price: \"$0.01\",\n      network: \"base\",\n      // other config options\n    },\n  },\n  facilitator // Use the Coinbase facilitator\n);\n\nexport const config = {\n  matcher: [\"/protected/:path*\"],\n  runtime: 'nodejs', // TEMPORARY: Only needed until Edge runtime support is added\n};\n```\n\n4. Update your Next.js dependency to the canary version to access experimental features:\n\n```json\n// package.json\n{\n  \"dependencies\": {\n    \"next\": \"canary\", // TEMPORARY: Only needed until Edge runtime support is added\n    \"@b3dotfun/anyspend-x402-next\": \"^0.7.0\",\n    \"@coinbase/x402\": \"^1.0.0\"\n    // other dependencies\n  }\n}\n```\n\n5. Set up your CDP API keys as environment variables:\n\n```bash\n# .env\nCDP_API_KEY_ID=your-cdp-api-key-id\nCDP_API_KEY_SECRET=your-cdp-api-key-secret\n```\n\n**Important Note**: Once the `@coinbase/x402` package adds support for Edge runtime, you'll be able to use it directly without enforcing the nodejs runtime or requiring the canary version of next.\n\n## Optional: Coinbase Onramp Integration\n\n**Note**: Onramp integration is completely optional. Your x402 paywall will work perfectly without it. This feature is for users who want to provide an easy way for their customers to fund their wallets directly from the paywall.\n\nWhen configured, a \"Get more USDC\" button will appear in your paywall, allowing users to purchase USDC directly through Coinbase Onramp.\n\n### Quick Setup\n\n#### 1. Configure Your Middleware\n\nAdd `sessionTokenEndpoint` to your middleware configuration. This tells the paywall where to find your session token API:\n\n```typescript\nexport const middleware = paymentMiddleware(\n  payTo,\n  routes,\n  facilitator,\n  {\n    sessionTokenEndpoint: \"/api/x402/session-token\", // Enable onramp functionality\n    cdpClientKey: \"your-cdp-client-key\",\n    appName: \"My App\",\n  }\n);\n```\n\n**Important**: The `sessionTokenEndpoint` can be any path you choose - just make sure it matches where you create your API route in the next step. Without this configuration, the \"Get more USDC\" button will be hidden.\n\n#### 2. Create the Session Token API\n\nCreate an API route that matches the path you configured above:\n\n```typescript\n// app/api/x402/session-token/route.ts\nexport { POST } from \"@b3dotfun/anyspend-x402-next\";\n```\n\nThat's it! The `@b3dotfun/anyspend-x402-next` package provides the complete session token implementation.\n\n#### 3. Get CDP API Keys\n\n1. Go to [CDP Portal](https://portal.cdp.coinbase.com/)\n2. Navigate to your project's **[API Keys](https://portal.cdp.coinbase.com/projects/api-keys)**\n3. Click **Create API key**\n4. Download and securely store your API key\n\n#### 4. Enable Onramp Secure Initialization in CDP Portal\n\n1. Go to [CDP Portal](https://portal.cdp.coinbase.com/)\n2. Navigate to **Payments → [Onramp & Offramp](https://portal.cdp.coinbase.com/products/onramp)**\n3. Toggle **\"Enforce secure initialization\"** to **Enabled**\n\n#### 5. Set Environment Variables\n\nAdd your CDP API keys to your environment:\n\n```bash\n# .env\nCDP_API_KEY_ID=your_secret_api_key_id_here\nCDP_API_KEY_SECRET=your_secret_api_key_secret_here\n```\n\n### How Onramp Works\n\nOnce set up, your x402 paywall will automatically show a \"Get more USDC\" button when users need to fund their wallets. \n\n1. **Generates session token**: Your backend securely creates a session token using CDP's API\n2. **Opens secure onramp**: User is redirected to Coinbase Onramp with the session token\n3. **No exposed data**: Wallet addresses and app IDs are never exposed in URLs\n\n### Troubleshooting Onramp\n\n#### Common Issues\n\n1. **\"Missing CDP API credentials\"**\n    - Ensure `CDP_API_KEY_ID` and `CDP_API_KEY_SECRET` are set\n    - Verify you're using **Secret API Keys**, not Client API Keys\n\n2. **\"Failed to generate session token\"**\n    - Check your CDP Secret API key has proper permissions\n    - Verify your project has Onramp enabled\n\n3. **API route not found**\n    - Ensure you've created your session token API route at the path you configured\n    - Check that your API route path matches your `sessionTokenEndpoint` configuration\n    - Verify the export: `export { POST } from \"@b3dotfun/anyspend-x402-next\";`\n    - Example: If you configured `sessionTokenEndpoint: \"/api/custom/onramp\"`, create `app/api/custom/onramp/route.ts`\n\n\n## Resources\n\n- [x402 Protocol](https://x402.org)\n- [CDP Documentation](https://docs.cdp.coinbase.com)\n- [CDP Discord](https://discord.com/invite/cdp)","readmeFilename":"README.md"}