{"_id":"@abacatepay/supabase","_rev":"8-b37f9e3a1b52ebfadb47a19294eb913b","name":"@abacatepay/supabase","dist-tags":{"latest":"2.0.3"},"versions":{"1.0.0":{"name":"@abacatepay/supabase","version":"1.0.0","keywords":["abacatepay","payments","supabase","api","webhooks"],"license":"Apache-2.0","_id":"@abacatepay/supabase@1.0.0","maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"accounts@eualmeida.com.br"}],"homepage":"https://github.com/almeidazs/ecosystem#readme","bugs":{"url":"https://github.com/almeidazs/ecosystem/issues"},"dist":{"shasum":"52d2c8baef5e5ba7773755ccfdec18b8ab26f879","tarball":"https://registry.npmjs.org/@abacatepay/supabase/-/supabase-1.0.0.tgz","fileCount":12,"integrity":"sha512-Np1pv2txBOb3Swf46UzjBqy+AldZi7GGSrjz3rxBRYrbHMRX6rpv0knLtDsE2P1rR2bj4/IzApqAHNM57gPdoQ==","signatures":[{"sig":"MEYCIQCH2iHLgKJyC9oX60QOqZxF+z/miHuFpQAH0afIjXrAIQIhAL/z0oEmtXdDAQL4X+r0eTKDTZvqr6Xm24vaHSiDb9+4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8720},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.0.0","node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"f2ab9015c731886b5dbc7f8a06eaa17724c581af","scripts":{"test":"bun test","build":"rm -rf dist && bun run scripts/version.ts && tsc","types":"bunx tsc --emitDeclarationOnly","prepublishOnly":"bun run build"},"_npmUser":{"name":"escoteiros","email":"accounts@eualmeida.com.br"},"repository":{"url":"git+https://github.com/almeidazs/ecosystem.git","type":"git"},"_npmVersion":"11.6.2","description":"Checkouts and Webhooks made simple with AbacatePay and Supabase.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","dependencies":{"@abacatepay/zod":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@biomejs/biome":"^2.3.11"},"_npmOperationalInternal":{"tmp":"tmp/supabase_1.0.0_1769268677758_0.4807470633797457","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@abacatepay/supabase","version":"1.0.1","keywords":["abacatepay","payments","supabase","api","webhooks"],"license":"Apache-2.0","_id":"@abacatepay/supabase@1.0.1","maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"accounts@eualmeida.com.br"}],"homepage":"https://github.com/almeidazs/ecosystem#readme","bugs":{"url":"https://github.com/almeidazs/ecosystem/issues"},"dist":{"shasum":"2dbaf8ea84de03c152ea24b43baa0a2264628e1d","tarball":"https://registry.npmjs.org/@abacatepay/supabase/-/supabase-1.0.1.tgz","fileCount":12,"integrity":"sha512-TPS5ft/yfIsYk8x2t+AO9w8AE7eOMXelvcn81bifxu1B08zllcj9/rkZd2TsR1G5M1uNJdW34JKhzR/gtb29Ww==","signatures":[{"sig":"MEQCIFQDXgpYHajmB6F2XyyinzASwKEq3iBWAk+JNDFSY0VkAiATF0UfqDjKYi8x0RES9Jpitl+L9TUB/nRd+9PiI+9Nrw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8720},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.0.0","node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"f2ab9015c731886b5dbc7f8a06eaa17724c581af","scripts":{"test":"bun test","build":"rm -rf dist && bun run scripts/version.ts && tsc","types":"bunx tsc --emitDeclarationOnly","prepublishOnly":"bun run build"},"_npmUser":{"name":"escoteiros","email":"accounts@eualmeida.com.br"},"repository":{"url":"git+https://github.com/almeidazs/ecosystem.git","type":"git"},"_npmVersion":"11.6.2","description":"Checkouts and Webhooks made simple with AbacatePay and Supabase.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","dependencies":{"@abacatepay/zod":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@biomejs/biome":"^2.3.11"},"_npmOperationalInternal":{"tmp":"tmp/supabase_1.0.1_1769268867603_0.5649308665737875","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@abacatepay/supabase","version":"1.0.2","keywords":["abacatepay","payments","supabase","api","webhooks"],"license":"Apache-2.0","_id":"@abacatepay/supabase@1.0.2","maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"accounts@eualmeida.com.br"}],"homepage":"https://github.com/almeidazs/ecosystem#readme","bugs":{"url":"https://github.com/almeidazs/ecosystem/issues"},"dist":{"shasum":"89e02edadc5c215c8ba84ff83afc28490bae8494","tarball":"https://registry.npmjs.org/@abacatepay/supabase/-/supabase-1.0.2.tgz","fileCount":8,"integrity":"sha512-6x6bmODRlr7TdIhBNvQC96ZMjMT3Tm6gJmLIc/pwOzFOiRQF7nGq0wBpf6nNzGDR5jTT/2UlicW5Fsd0j8cdRA==","signatures":[{"sig":"MEQCIG+tQ1nN3Luyhr1V8G8FeyeVpGWSE0iq/g5uVTSWgq4lAiB5sskU/xZXoozku+buuYzjHAfi1ss7xZGbb1mXIKD3cw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6528},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.0.0","node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"fce0da7b8dec48e08f7be9c082b5d90a104b1b97","scripts":{"test":"bun test","build":"rm -rf dist && bun run scripts/version.ts && tsc","types":"bunx tsc --emitDeclarationOnly","prepublishOnly":"bun run build"},"_npmUser":{"name":"escoteiros","email":"accounts@eualmeida.com.br"},"repository":{"url":"git+https://github.com/almeidazs/ecosystem.git","type":"git"},"_npmVersion":"11.6.2","description":"Checkouts and Webhooks made simple with AbacatePay and Supabase.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","dependencies":{"@abacatepay/adapters":"^1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@biomejs/biome":"^2.3.11"},"_npmOperationalInternal":{"tmp":"tmp/supabase_1.0.2_1769355688954_0.7159037113790432","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@abacatepay/supabase","version":"1.0.3","keywords":["abacatepay","payments","supabase","api","webhooks"],"author":{"url":"https://abacatepay.com","name":"AbacatePay","email":"opensource@abacatepay.com"},"license":"Apache-2.0","_id":"@abacatepay/supabase@1.0.3","maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"accounts@eualmeida.com.br"}],"homepage":"https://github.com/AbacatePay/ecosystem#readme","bugs":{"url":"https://github.com/AbacatePay/ecosystem/issues"},"dist":{"shasum":"2130e9286c81c47c902855cc28e4cb3a09c8b5e4","tarball":"https://registry.npmjs.org/@abacatepay/supabase/-/supabase-1.0.3.tgz","fileCount":8,"integrity":"sha512-E3O5MKqbAPpEjMPYqegyRQXvvENv4cZk35jmFKnv7AmJjdpdVgJW24XrSIKn58ifen/bApVuEcYGqg9lacZxUg==","signatures":[{"sig":"MEUCIHN9Bebu/7fas1YK5gSMA/C+tI+kMq+vCl1aSzRZ39RsAiEArPQHZnIgX560DfudJCnh+hdBg9HRF+QItUP0bg6+Ce0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6745},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.0.0","node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"b0f96353808ba79bff305a01554094076c338e51","scripts":{"test":"bun test","build":"rm -rf dist && bun run scripts/version.ts && tsc","types":"bunx tsc --emitDeclarationOnly","prepublishOnly":"bun run build"},"_npmUser":{"name":"escoteiros","email":"accounts@eualmeida.com.br"},"repository":{"url":"git+https://github.com/AbacatePay/ecosystem.git","type":"git"},"_npmVersion":"11.6.2","description":"Checkouts and Webhooks made simple with AbacatePay and Supabase.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","dependencies":{"@abacatepay/adapters":"^1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@biomejs/biome":"^2.3.11"},"_npmOperationalInternal":{"tmp":"tmp/supabase_1.0.3_1769437147323_0.084227909744921","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@abacatepay/supabase","version":"2.0.0","keywords":["abacatepay","payments","supabase","api","webhooks"],"author":{"url":"https://abacatepay.com","name":"AbacatePay","email":"opensource@abacatepay.com"},"license":"Apache-2.0","_id":"@abacatepay/supabase@2.0.0","maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"ajuda@abacatepay.com"}],"homepage":"https://github.com/AbacatePay/ecosystem#readme","bugs":{"url":"https://github.com/AbacatePay/ecosystem/issues"},"dist":{"shasum":"155a889a572b1aa6d3a024194292e80b0c293bcb","tarball":"https://registry.npmjs.org/@abacatepay/supabase/-/supabase-2.0.0.tgz","fileCount":6,"integrity":"sha512-VExhB4fb0wJg2yZ11iA+ejdG1CN4WKWVTyzv1hCUxDQxC3lf0fxdCzy/cmYz8KhiPU1PSOkArCO4hIqdHr0ydw==","signatures":[{"sig":"MEYCIQC8/DhqOL0zixbs+8hKfX/5UKSKtYKk5JW0WuHLC0dLwgIhAP9aucXyYV5E3OM/3BhdQ2BH7gjxAIUmDvYAjdvge6pe","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6405},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.0.0","node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"2dc44ef4789adc69e81f94a8e459cc85fd76668c","scripts":{"test":"bun test","build":"rm -rf dist && bun run scripts/version.ts && tsc","types":"bunx tsc --emitDeclarationOnly","prepublishOnly":"bun run build"},"_npmUser":{"name":"escoteiros","email":"ajuda@abacatepay.com"},"repository":{"url":"git+https://github.com/AbacatePay/ecosystem.git","type":"git"},"_npmVersion":"11.8.0","description":"Checkouts and Webhooks made simple with AbacatePay and Supabase.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.1","dependencies":{"@abacatepay/adapters":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@biomejs/biome":"^2.3.11"},"_npmOperationalInternal":{"tmp":"tmp/supabase_2.0.0_1785159331305_0.5834630029236634","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@abacatepay/supabase","version":"2.0.1","keywords":["abacatepay","payments","supabase","api","webhooks"],"author":{"url":"https://abacatepay.com","name":"AbacatePay","email":"opensource@abacatepay.com"},"license":"Apache-2.0","_id":"@abacatepay/supabase@2.0.1","maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"ajuda@abacatepay.com"}],"homepage":"https://github.com/AbacatePay/ecosystem#readme","bugs":{"url":"https://github.com/AbacatePay/ecosystem/issues"},"dist":{"shasum":"46a69b2b47c84e7668c5d13ac07dc03d268a6774","tarball":"https://registry.npmjs.org/@abacatepay/supabase/-/supabase-2.0.1.tgz","fileCount":5,"integrity":"sha512-/JXylASiQXVH11qvttRwYMFrYlyeSPyB1S9Z077x1tfdA6yXxtNnI/1BynvpO5prZH3QCsXAtJeAKGv64xTx9A==","signatures":[{"sig":"MEYCIQC6sKWr6o9brYI1NvuBmm3Jmo7vsRu3WoSSVT2RGKp26wIhAIRFiC67swbD9mvG+rEof96QYCQi5Qwq/JWUl5rK5YMg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":485393},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.0.0","node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"ff4bbae0210c3eb16826c4f3f3f8d9c1953031ad","scripts":{"test":"bun test","build":"rm -rf dist && bun run scripts/version.ts && bun build src/index.ts --outdir dist --target node && bun run types","types":"bunx tsc --emitDeclarationOnly","prepublishOnly":"bun run build"},"_npmUser":{"name":"escoteiros","email":"ajuda@abacatepay.com"},"repository":{"url":"git+https://github.com/AbacatePay/ecosystem.git","type":"git"},"_npmVersion":"11.8.0","description":"Checkouts and Webhooks made simple with AbacatePay and Supabase.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.1","dependencies":{"@abacatepay/adapters":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@biomejs/biome":"^2.3.11"},"_npmOperationalInternal":{"tmp":"tmp/supabase_2.0.1_1785173910936_0.6548139082092934","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@abacatepay/supabase","version":"2.0.2","keywords":["abacatepay","payments","supabase","api","webhooks"],"author":{"url":"https://abacatepay.com","name":"AbacatePay","email":"opensource@abacatepay.com"},"license":"Apache-2.0","_id":"@abacatepay/supabase@2.0.2","maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"ajuda@abacatepay.com"}],"homepage":"https://github.com/AbacatePay/ecosystem#readme","bugs":{"url":"https://github.com/AbacatePay/ecosystem/issues"},"dist":{"shasum":"46f2c42377930823986ad1591c76d4dd97046ccf","tarball":"https://registry.npmjs.org/@abacatepay/supabase/-/supabase-2.0.2.tgz","fileCount":6,"integrity":"sha512-Jc7oBt4YpEE+mgUFeFiETg3VjsBOP2h8YJFxCtw2h7RLShDPFRgI1P1guqfdlQO4llH4RVQ7Eib9Y8iepzDPAA==","signatures":[{"sig":"MEQCID0p+WEaQovvJvOBm1uwjrNpeoPq6M59LpnqhAThmScOAiAm9rC8FdPO0+PoXCndNylz/MA4noRBu7vq6KaRWKuQHA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7673},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"bun":">=1.0.0","node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"4f44b0102e118ca7fd4abd4da8c094cf8f22360c","scripts":{"test":"bun test","build":"rm -rf dist && bun run scripts/version.ts && bun build src/index.ts --outdir dist --target node --external '@abacatepay/adapters' --external '@abacatepay/adapters/*' && bun run types","types":"bunx tsc --emitDeclarationOnly","prepublishOnly":"bun run build"},"_npmUser":{"name":"escoteiros","email":"ajuda@abacatepay.com"},"repository":{"url":"git+https://github.com/AbacatePay/ecosystem.git","type":"git"},"_npmVersion":"11.8.0","description":"Checkouts and Webhooks made simple with AbacatePay and Supabase.","directories":{},"sideEffects":false,"_nodeVersion":"24.13.1","dependencies":{"@abacatepay/adapters":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@biomejs/biome":"^2.3.11"},"_npmOperationalInternal":{"tmp":"tmp/supabase_2.0.2_1785181688176_0.43634047461318604","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"@abacatepay/supabase","version":"2.0.3","repository":{"type":"git","url":"git+https://github.com/AbacatePay/ecosystem.git"},"main":"./dist/index.js","devDependencies":{"@biomejs/biome":"^2.3.11","typescript":"^5.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"author":{"name":"AbacatePay","email":"opensource@abacatepay.com","url":"https://abacatepay.com"},"maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"ajuda@abacatepay.com"}],"description":"Checkouts and Webhooks made simple with AbacatePay and Supabase.","engines":{"node":">=18","bun":">=1.0.0"},"keywords":["abacatepay","payments","supabase","api","webhooks"],"license":"Apache-2.0","publishConfig":{"access":"public"},"scripts":{"test":"bun test","build":"rm -rf dist && bun run scripts/version.ts && bun build src/index.ts --outdir dist --target node --external '@abacatepay/adapters' --external '@abacatepay/adapters/*' && bun run types","types":"bunx tsc --emitDeclarationOnly","prepublishOnly":"bun run build"},"sideEffects":false,"type":"module","types":"./dist/index.d.ts","dependencies":{"@abacatepay/adapters":"^2.0.0"},"gitHead":"5c10083ce1c3dfce4b35af061f28b10bec33ff32","_id":"@abacatepay/supabase@2.0.3","bugs":{"url":"https://github.com/AbacatePay/ecosystem/issues"},"homepage":"https://github.com/AbacatePay/ecosystem#readme","_nodeVersion":"24.13.1","_npmVersion":"11.8.0","dist":{"integrity":"sha512-MPHG6E33eLztI/l5YCoKgx2iyGLVBrbRJBIj+f9VNqRtSqKQfBGN4Z69S7EiLqKh2g0vSkCo7pPoNi7NUhSWLA==","shasum":"4424c8ce848f1516782a44d74ede9e1bfafc8035","tarball":"https://registry.npmjs.org/@abacatepay/supabase/-/supabase-2.0.3.tgz","fileCount":6,"unpackedSize":7986,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDQUPThVEXtYCMTbHk7B9UWDCDivwbg76ZK+TW21sTfeQIgZbF4epL61Q0nVeZ5JZvDU0bXxaMZVlNbpa+WGudPIrI="}]},"_npmUser":{"name":"escoteiros","email":"ajuda@abacatepay.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/supabase_2.0.3_1785184833904_0.01827485904025572"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-24T15:31:17.649Z","modified":"2026-07-27T20:40:34.207Z","1.0.0":"2026-01-24T15:31:17.900Z","1.0.1":"2026-01-24T15:34:27.786Z","1.0.2":"2026-01-25T15:41:29.108Z","1.0.3":"2026-01-26T14:19:07.474Z","2.0.0":"2026-07-27T13:35:31.450Z","2.0.1":"2026-07-27T17:38:31.103Z","2.0.2":"2026-07-27T19:48:08.333Z","2.0.3":"2026-07-27T20:40:34.050Z"},"bugs":{"url":"https://github.com/AbacatePay/ecosystem/issues"},"author":{"name":"AbacatePay","email":"opensource@abacatepay.com","url":"https://abacatepay.com"},"license":"Apache-2.0","homepage":"https://github.com/AbacatePay/ecosystem#readme","keywords":["abacatepay","payments","supabase","api","webhooks"],"repository":{"type":"git","url":"git+https://github.com/AbacatePay/ecosystem.git"},"description":"Checkouts and Webhooks made simple with AbacatePay and Supabase.","maintainers":[{"name":"albuquerquesz","email":"albq.victor@gmail.com"},{"name":"bolodissenouraa","email":"daniel@abacatepay.com"},{"name":"escoteiros","email":"ajuda@abacatepay.com"}],"readme":"<div align=\"center\">\n\n# AbacatePay Supabase\n\nIntegração oficial da **AbacatePay** com o **Supabase** para receber **Webhooks** de forma simples, segura e totalmente tipada.\n\nO [`@abacatepay/supabase`](https://www.npmjs.com/package/@abacatepay/supabase) é um pacote **framework-first**, projetado para funcionar nativamente com o Supabase, focado em **DX**, **TypeScript first** e **boas práticas de segurança**.\n\n<img src=\"https://res.cloudinary.com/dkok1obj5/image/upload/v1767631413/avo_clhmaf.png\" width=\"100%\" alt=\"AbacatePay Open Source\"/>\n\nVocê pode encontrar a documentação completa de Webhooks [aqui](https://docs.abacatepay.com/pages/webhooks).\n\n## Instalação\n\nUse com o seu *package manager* favorito:\n\n</div>\n\n```bash\nbun add @abacatepay/supabase\n# ou\npnpm add @abacatepay/supabase\n# ou\nnpm install @abacatepay/supabase\n```\n\n<div align=\"center\">\n\nNenhuma dependência extra é necessária. O pacote já vem pronto para uso com o Supabase.\n\n## Uso básico\n\n</div>\n\n```ts\nimport { Webhooks } from '@abacatepay/supabase';\n\nconst { ok, handler, error } = Webhooks({\n    secret: '...',\n    onPayload({ event, data }) {\n        ...\n    },\n});\n\nif (!ok) throw new Error(error);\n\nexport const POST = handler;\n```\n\n<div align=\"center\">\n\n`Webhooks(...)` nunca lança exceção — se o `secret` estiver ausente, ela retorna `{ ok: false, error }` em vez de `{ ok: true, handler }`.\n\n## Segurança por padrão\n</div>\n\n- Verificação automática da assinatura do webhook\n- Comparação segura do webhook secret\n- Payload validado antes de chegar ao seu handler\n- Nenhum acesso direto à API key\n\n<p align=\"center\"><strong>Nunca exponha sua API key em webhooks.</strong><br/>\nSempre utilize variáveis de ambiente.</p>\n\n<div align=\"center\">\n\n## Tratamento por evento\n\nVocê pode lidar com eventos específicos sem boilerplate:\n\n</div>\n\n```ts\nconst { handler } = Webhooks({\n    secret,\n    onCheckoutCompleted({ data }) {\n        console.log('Cobrança paga:', data.payment.amount);\n    },\n    onPayoutCompleted({ data }) {\n        console.log('Payout concluído:', data.transaction.id);\n    },\n    onPayoutFailed({ data }) {\n        console.error('Falha no payout:', data.transaction.id);\n    },\n});\n```\n\n\n<p align=\"center\">Ou tratar tudo de forma genérica:</p>\n\n```ts\nconst { handler } = Webhooks({\n    secret,\n    onPayload({ data, event }) {\n        console.log(event, data);\n    },\n});\n```\n\n<div align=\"center\">\n\nFeito com 🥑 pela equipe AbacatePay<br/>\nOpen source, de verdade.\n\n</div>\n","readmeFilename":"README.md"}