Quick start
Three lines to connect. Type-safe from the start.
Connect
import { fold } from 'apifold';
const stripe = fold.connect({
provider: 'stripe',
version: '2024-01',
});
const customers = await stripe.call(
'customers.list'
);
Type-safe
// Full TypeScript support
const charge = await stripe.call(
'charges.create',
{ amount: 2000, currency: 'eur' }
); // → Stripe.Charge
// Errors are typed too
if (charge.error) {
charge.error.code // union type
}
Features
One API for dozens of services. Learn the pattern once.
Every provider, endpoint, and response — typed. Catch errors at build time.
Pin per-provider. Upgrade on your schedule, not theirs.
Each provider is standalone. Write and contribute your own.
AGPL-3.0. Read every adapter, audit the pipeline.
No tracking, no logging, no analytics.
Ecosystem
Growing library of typed adapters. Each independently versioned.
npm install apifold — or browse the source first.