@deploybaseline/plaid
v0.14.0
Published
Plaid API emulator for Baseline: Link tokens and a hosted Link page with sandbox logins, public token exchange, items, accounts and real time balances, Auth ACH numbers, transactions sync and get over deterministic sandbox data, institutions, the sandbox
Readme
@deploybaseline/plaid
Plaid API emulator for Baseline: Link tokens and a hosted Link page with sandbox logins, public token exchange, items, accounts and real time balances, Auth ACH numbers, transactions sync and get over deterministic sandbox data, institutions, the sandbox helpers, and webhooks signed with an ES256 Plaid-Verification JWT.
Part of Baseline: local drop-in replacement services for CI and no-network sandboxes.
Usage
npx @deploybaseline/cli start --service plaidimport { createEmulator } from "@deploybaseline/cli";
const plaid = await createEmulator({ service: "plaid" });
// Point your client at plaid.url
await plaid.close();The official plaid Node SDK works against it once basePath points at the emulator:
import { Configuration, PlaidApi } from "plaid";
const client = new PlaidApi(
new Configuration({
basePath: plaid.url,
baseOptions: {
headers: { "PLAID-CLIENT-ID": "6650f1c0d1e2f3a4b5c6d7e8", "PLAID-SECRET": "baselinesandboxsecret000000000" },
},
}),
);Documentation
- Plaid docs: Link, sandbox logins, transactions, webhook verification, seed config, and current limits
- API reference:
http://localhost:3999/docs/plaidwhile the CLI runs (how it works)
License
Apache-2.0
