AbacatePay
Payments for indie hackers. I made the first charge take minutes instead of a sprint.
In payments, the integration is the product. AbacatePay is a 12-package ecosystem: SDK, typed schemas, webhook adapters for Elysia, Hono, Fastify, Express, Supabase, a CLI, and an ESLint plugin. Getting started is one install:
bun add @abacatepay/sdk
# npm install @abacatepay/sdk | pnpm add @abacatepay/sdkEvery SDK call returns a result type instead of throwing: data, error, and success on every response so you handle failure where it happens, not three layers up in a try/catch:
import { AbacatePay } from '@abacatepay/sdk';
const abacate = AbacatePay({ secret: process.env.ABACATEPAY_SECRET });
const { data, error, success } = await abacate.checkouts.create({
items: [{ id: 'prod_123', quantity: 1 }],
});The CLI closes the local development loop: forward production-identical webhooks to your machine and simulate payments without touching a real card:
abacatepay login
abacatepay listen --forward-to http://localhost:3000/webhooks/abacatepay
# Simulate a payment in development
abacatepay payments simulate <charge-id>Context#
In payments, the integration is the product. A company can have flawless settlement and still lose the developer who spent an afternoon guessing what an error code meant. The distance between "the API works" and "a developer shipped it on a Friday" is made of SDKs that behave the same everywhere, examples that run, and errors that say what to do next.
Approach#
I worked that surface from two sides. First the open source: the official CLI, the SDKs, the typed schemas and the ecosystem around them. Then the plugin system: typed tool contracts, capability registry and discovery, input validation, context injection and uniform errors: so an external integration became something the platform’s AI could find and run from a plain-language instruction, without being welded to the core.
Engineering decisions#
- One spec as the source of truth, so an API change reaches every SDK in the same release instead of drifting for a quarter.
- Docs live in the repository and are reviewed like code: documentation that can go stale silently always does.
- Errors are designed, not thrown: every failure names the field, the reason and the fix.
- A public triage rhythm for issues and PRs, so a first-time contributor knows what to pick up and when it will be reviewed.
Outcome#
An ecosystem people contribute to instead of merely consuming: a short integration path and examples that run on the first try. On top of it, a plugin layer that let new integrations land as capabilities rather than as another fork of the core.
The full story, chapter by chapter, is in my experience.