PACKAGE · PAYMENT

stripe

Stripe API wrapper

WEEKLY DOWNLOADS 34.5M
STARS 4.6K
FORKS 953
OPEN ISSUES 51
GZIP SIZE 34.0 kB
UNPACKED SIZE 18.8 MB
DEPENDENCIES 1
LAST UPDATED 8mo ago
DOWNLOAD TRENDS

stripe downloads · last 12 months

Download trends for stripe1 download series from Nov 2025 to Oct 2026. Use left and right arrow keys to inspect monthly values.028.5M57.0M85.5M114.1MNov 2025FebMayAugOct 2026
stripe
ABOUT STRIPE

The `stripe` npm package is Stripe’s API wrapper for JavaScript and TypeScript applications. It provides a programmatic way to interact with Stripe’s payment services, so applications can create and manage payment-related resources through Stripe’s API rather than assembling API requests themselves.

The package is centered on Stripe’s service API and is intended for developers integrating Stripe into application backends and other server-side workflows. Its scope is the Stripe API: it is not a general-purpose billing system or a framework for building checkout interfaces, so the surrounding product experience and application logic remain the developer’s responsibility.

A typical integration initializes a Stripe client with a secret API key and calls resource methods exposed by that client, such as methods for creating or retrieving payments and other Stripe resources. This gives code a consistent API-oriented pattern for handling Stripe operations; credentials and payment operations should be kept on trusted server-side paths rather than exposed in browser code.

The package fits into applications that need their own server-side integration with Stripe, including workflows that connect payment operations to application routes, order handling, or other backend processes. Stripe acquired Lemon Squeezy in June 2024, a relevant change in the broader payments landscape, but this package is specifically described as a Stripe API wrapper and should not be assumed to provide Lemon Squeezy APIs or migration behavior.

The supplied package data reports version 23.2.0, an MIT license, 30.0 million weekly downloads, 4.6K GitHub stars, 950 forks, and 48 open issues, with a last-updated date of 2026-11-19. Its reported unpacked size is 18.8 MB and gzip bundle size is 34.0 kB; check the intended runtime and deployment target when assessing whether the package fits a particular build, since those figures describe different size measures.

The wrapper depends on Stripe’s API and does not eliminate the need to understand the payment flows, resource behavior, and operational requirements of the integration. Confirm that the package version and API behavior match your application’s Stripe setup, and handle secret keys and payment data according to your security requirements.

WHEN TO USE
  • When a server-side JavaScript or TypeScript service must call Stripe’s API to create or retrieve payment-related resources; initialize the Stripe client with a secret key and use its resource methods.
  • When application routes need to initiate Stripe operations as part of order or payment handling; keep the API call and secret key on the trusted server side.
  • When backend code needs a consistent client-based pattern for working with multiple Stripe API resources instead of constructing HTTP requests for each operation.
  • When connecting Stripe payment operations to existing server workflows, such as processing an application’s order records alongside Stripe resource creation.
  • When your team wants an MIT-licensed Stripe API wrapper and can accommodate its reported package and bundle-size characteristics in the target runtime.
  • When evaluating a Stripe integration in light of Stripe’s June 2024 acquisition of Lemon Squeezy, but only if the required integration is with Stripe’s API rather than assumed Lemon Squeezy functionality.
WHEN NOT TO USE
  • If the application must call Stripe directly from untrusted browser code, do not expose a secret API key; route privileged API operations through a trusted server-side component instead.
  • If the required integration is specifically with Lemon Squeezy APIs, do not assume this Stripe wrapper covers them; verify the required service API and use an integration designed for that API.
  • If the application needs a hosted checkout experience rather than direct API operations, use an appropriate hosted payment flow instead of treating this package as a checkout UI framework.
  • If the target environment cannot accommodate the reported 18.8 MB unpacked package size, assess deployment constraints first and choose a lighter integration approach if necessary.
  • If the application must avoid a reported 34.0 kB gzip bundle contribution, evaluate the build output and use a more suitable approach for its runtime and bundle budget.
  • If the team cannot maintain payment-flow logic or keep Stripe credentials secure, avoid adding direct API calls until those responsibilities can be handled by a trusted backend and appropriate operational practices.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

COMPARISONS 3
stripe vs @lemonsqueezy/lemonsqueezy.js ★ 540 · 142.4K/wk stripe vs @tosspayments/payment-widget-sdk ★ 127 · 9.8K/wk stripe vs @polar-sh/checkout ★ 10.5K · 97.9K/wk