Community-maintained Plaid API client using fetch instead of Axios, generated from Plaid's OpenAPI spec via @openapitools/openapi-generator-cli (typescript-fetch). Current version 1.0.2. Built for edge environments (Cloudflare Workers, Deno, browser-like runtimes) where Plaid's official Node SDK (Axios-dependent) does not work. Key difference: responses returned directly without .data wrapper. Actively maintained on GitHub with plans for automated releases.
npm install plaid-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes Plaid client with sandbox keys, makes a transactionsEnrich request, and logs the enriched transactions.
Access response properties directly (e.g., response.enriched_transactions) instead of response.data.enriched_transactions.
Manually regenerate using 'pnpm generate' or wait for maintainer to publish new version.
Set basePath to 'https://sandbox.plaid.com', 'https://development.plaid.com', or 'https://production.plaid.com' as appropriate. Include client ID and secret in headers.
Check the generated types/docs on GitHub for exact parameter structures.
Consider using official @plaid/plaid-sdk for Node.js environments with Axios support.
Access response.enriched_transactions directly, not response.data.enriched_transactions.
Ensure 'PLAID-CLIENT-ID' header is set in Configuration headers.
Use import { PlaidApi } from 'plaid-fetch' (curly braces).Use Node.js 18+ or polyfill fetch (e.g., node-fetch).