Elestia Open Source Ratings
6.7

Square SDK

Reasonable, with limits. 5th of 10 payment SDKs.

Square SDK is Square's official TypeScript client for the Square API. It is generated with Fern, typed, and runs on Node.js, Bun, Deno and edge runtimes. It is a sound choice when your business already runs on Square, especially for in-person retail. For general online payments and subscriptions, Stripe is the stronger default.

Best for: Teams whose merchants already use Square POS and want to connect online orders, payments, catalog or subscriptions to it.

WebsiteGitHubnpm

Scores

Overall6.7

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

It is a well-maintained, typed official client and the right pick for anyone tied to Square. Usage is growing above the median. For most new online payment or subscription projects, Stripe does the job better and has far more ecosystem support. That limits this SDK to the Square-merchant niche.

  • npm downloads ratio: About 6.8, against a 4.1 median.
  • peers Stripe SDK: 135M downloads and 46k dependent repos.
  • github.com/square/square-nodejs-sdk: Modern Fern-generated client with support for many runtimes.

GPT-6.2 Sol: 7.4, likely 6.2 to 8.4

Square SDK is a strong pick when a new backend needs to connect payments and recurring orders to Square’s existing point of sale and catalog. Regular releases and typed API coverage support that choice, while import overhead and a history of costly upgrades lower confidence. Stripe is the stronger category default for teams choosing a processor from scratch, especially when they need broader seller coverage or usage-based billing.

Needed by many3.7

How many developers need a tool for this job?

Claude Opus 5.5: 3.5, likely 2.5 to 4.5

Many apps need payments, but this SDK only makes sense when you process through Square. Square is aimed mainly at small, in-person merchants. That makes it a clear niche inside the category, not a general choice.

GPT-6.2 Sol: 3.8, likely 2.7 to 4.9

Payments and recurring billing serve a clear subset of JavaScript and TypeScript projects. Square is especially relevant to sellers who need to connect online and in-person sales, and its payment processing is available in eight seller markets. The developer survey measures runtime use, so the share of developers who need this particular integration is uncertain.

Helps a lot7.1

How well does it do the job for those who need it?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

The Fern-generated client covers the full API with types, retries, pagination, API-version pinning and support for many runtimes. Its limits come from the Square platform: custom subscription and provisioning flows need extra glue code. BigInt handling also adds friction. Stripe's SDK and tooling remain clearly richer.

GPT-6.2 Sol: 7.6, likely 6.4 to 8.5

Version 46.1.0 provides typed payment, refund, Terminal, and subscription calls, with documented retries, errors, and webhook verification. Subscription plans require Catalog API setup and have no ACH option. Developers measured substantial import overhead on 44.2.0, and 46.1.0 still imports the shared serializers from its Catalog client. Current examples and types give coding agents a clear reference, though agent accuracy and current startup costs remain unmeasured.

Holds up over time7.1

Will it still be a good choice in two years?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

Square (Block) funds the SDK and generates it from its OpenAPI spec. It had 9 releases in the last year, the latest on 2026-11-18, and almost no open issues. Commit activity is low because the code is generated. Frequent major versions bring churn, which keeps the score below the top tier.

  • github releasesLastYear: 9 releases, latest 46.1.0 on 2026-11-18.
  • github openIssues: 2 open issues against 73 closed.
  • developer.squareup.com/docs/sdks/nodejs/migration: v40 rewrite required a migration; legacy client kept as square/legacy.
  • github commitsLastYear: Only 16 commits, as expected for generated code.

GPT-6.2 Sol: 7.2, likely 5.9 to 8.5

Square shipped nine GitHub releases from 16 commits over the past year, and 46.1.0 followed the November API update. Fern responded to one reported bug within days, while the import performance issue has stayed open for months. The v40 rewrite required migration despite a legacy bridge, and the release history gives limited visibility into how broadly publishing access is shared.

Used widely4.1

How many use it, and is that growing?

Claude Opus 5.5: 4.5, likely 3.5 to 5.5

Downloads reached 1.88M over the last 4 weeks, against 277k a year ago. That is a ratio of about 6.8, well above the 4.1 median, so the SDK is gaining ground. Only 114 dependent repos, far below Stripe, Razorpay and Braintree, suggest a few thousand direct users. Much of the download volume probably comes from CI installs.

  • npm downloadsLast4Weeks: 1,882,925, up from 277,047 a year ago.
  • dependents repos: 114 repos and 18 packages; Stripe has 46,266 repos.
  • github stars: 117 stars, which is low.

GPT-6.2 Sol: 3.6, likely 2.2 to 5.2

Four-week npm downloads rose 6.8× to 1.88 million, beating the catalog’s 4.1× baseline. The index found 114 dependent repositories, close to Adyen’s 166 and far below Braintree’s 1,466 and Stripe’s 46,266. Build-server installs and incomplete repository coverage make the number of projects that chose Square hard to estimate.

  • npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 1,882,925 installs versus 277,047 a year earlier, against a 4.1× baseline
  • dependents repos, packages; peers dependentRepos: 114 indexed repositories and 18 packages, with much larger counts for Stripe and Braintree
  • github stars; hackerNews stories; bluesky posts: 117 stars and no matched stories or repository links
Vouched for4.8

Who stands behind it being good?

Claude Opus 5.5: 4.5, likely 3.0 to 5.5

The main backing is Square itself, a large payments company that runs it as its official SDK. Independent write-ups compare Square and Stripe as platforms and rate Stripe's developer experience higher. I found almost no HN or Bluesky discussion of the SDK itself.

GPT-6.2 Sol: 5.0, likely 3.4 to 6.5

Jotform offers recurring Square payments, and WooCommerce ships a Square integration. TSG ranked Square runner-up in its 2024 overall gateway API assessment. These sources support the Square platform, while evidence for the current Node.js package in named production deployments or developer satisfaction surveys is sparse.

Safe6.8

How safe is it to depend on?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

There are no known advisories, it has six dependencies, uses the MIT licence and is published by a corporate team. The OpenSSF Scorecard is low at 3.7: there is no security policy, dependencies and token permissions are not pinned, and code review is partial. The Scorecard's Maintained check at 0 conflicts with the steady releases.

  • advisories total: 0 advisories.
  • scorecard score: 3.7, with weak Security-Policy, Pinned-Dependencies and Token-Permissions checks.
  • npm dependencies: 6 dependencies.
  • npm license: MIT.

GPT-6.2 Sol: 6.5, likely 5.0 to 7.9

The package has a permissive MIT license, six direct dependencies including the legacy client, and zero advisories in the supplied OSV snapshot. The tagged release workflow uses npm trusted publishing through OIDC, but it uses mutable action tags and can publish after compilation without waiting for unit tests. Weak Scorecard results for review and dependency pinning, the missing repository security policy, and limited visibility into release access keep the range wide.

Good

  • Official, typed client that covers the whole Square API, including payments, orders, catalog, subscriptions and webhooks.
  • Runs on Node 18+, Bun, Deno, Cloudflare Workers and Vercel through native fetch.
  • Released often by Square, follows the Square API versions, has no known advisories, and pulls in only six dependencies.
  • Ships the old client as square/legacy, so a large codebase can migrate step by step.

Bad

  • Square's API and tooling for custom online and subscription flows are weaker than Stripe's.
  • Major versions arrive often (v40 to v46 in about a year), and the v40 rewrite forced a migration.
  • BigInt fields for money and other longs trip up JSON serialization and often confuse users.
  • Few independent write-ups and a small open-source dependent base compared with Stripe, Braintree or Razorpay.

The numbers

npm downloads, 4 weeks
1.9M ×6.8 in a year
GitHub stars
117
Commits, 12 months
16
npm version
46.1.0 Nov 2026
Versions, 12 months
10
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
3.7 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (square/square-nodejs-sdk), npm (square), OSV and the OpenSSF Scorecard.

Payment SDKs

  1. 9.1Stripe SDK
  2. 7.4Paddle SDK
  3. 7.1Adyen API library
  4. 7.1Polar SDK
  5. 6.7Square SDK
  6. 6.6Razorpay SDK
  7. 6.1PayPal Server SDK
  8. 5.7Braintree SDK
  9. 3.4Mollie API client
  10. 0.6Lemon Squeezy SDK
Compare all 10 on six scores