DevelopersTools

SDKs

The seven Fianto packages, what each one is for, and which to install for Next.js, Express, Hono or a plain page.

2 min read

Fianto ships seven TypeScript packages. One is the API client that runs on your server, three wrap its route handlers for a web framework, two open checkout in the browser, and one is a command line for development. Every package is version 0.1.0 and needs Node.js 20.3 or later. The six library packages ship as ESM and CommonJS; the CLI is ESM only.

The packages

PackageWhat it is forRuns onPeer dependency
@fianto/sdkThe typed API client, webhook verification (/webhooks) and framework-free route handlers (/handlers)Your server—
@fianto/nextjsWebhooks() and Checkout() as App Router route handlersYour servernext 15 or later (optional)
@fianto/expresswebhooks() and checkout() as Express middlewareYour serverexpress 4 or later
@fianto/honowebhooks() and checkout() as Hono handlersYour serverhono 4 or later
@fianto/jsopenCheckout, redirectToCheckout and the <fianto-button> elementThe browser—
@fianto/reactuseCheckout and FiantoButtonThe browser (React)react 19 or later
@fianto/cliThe fianto command: signed samples, event forwarding, whoamiYour machine or CI—

The server packages hold your app secret. new Fianto() throws when it runs in a browser, and there is no publishable key: your server always creates the checkout session, and the browser packages only open the page your server created.

Which to install

Each stack needs a server package for the checkout and webhook routes, and a browser package for the pay button.

# Next.js
pnpm add @fianto/nextjs @fianto/react @fianto/sdk
# Express
pnpm add @fianto/express @fianto/js @fianto/sdk
# Hono
pnpm add @fianto/hono @fianto/js @fianto/sdk
# Any other server: the client and the framework-free handlers
pnpm add @fianto/sdk

Each line adds @fianto/sdk next to the adapter, so your own code can import Fianto and the webhook helpers from it. Run the CLI without installing it: npx @fianto/cli whoami.

Runtimes

Tested on Node.js, designed for more

CI tests the SDK on Node.js 22 and 24 and smoke-tests the built @fianto/sdk on Node.js 20.3.0. @fianto/sdk, @fianto/nextjs and @fianto/hono use only fetch and Web Crypto in the request path, so they are designed for Vercel Edge, Cloudflare Workers, Bun and Deno too, but those runtimes are not tested yet. @fianto/express is for Node.js: it reads Express's Node request stream.

On Cloudflare Workers there is no process.env: pass your secrets to the handlers yourself. The Hono page shows how.

Where to go next

See also

Was this page helpful? Tell us

On this page