Start with Invo

Invo Web SDK

The TypeScript SDK for web games, storefronts and dashboards: hosted checkout for currency, item purchases and passkey-approved sends and transfers. One package, with a server entry that holds your secret and a browser entry that never sees it.

npm
@invonetwork/web-sdk
Node 18+
on the server; ESM, CJS and TypeScript types
Free
sandbox with test cards

Install

One package with two entry points: @invonetwork/web-sdk/server for your backend and @invonetwork/web-sdk for the browser.

  1. Install

    npm install @invonetwork/web-sdk
  2. Get your game secret

    Create your title in the developer console and copy its game secret for the environment you are building against.
  3. Mint a player token on the server

    Your backend uses the secret to mint a short-lived, game-scoped token for the browser.
  4. Run browser flows with the token

    The browser entry handles passkey enroll and approve. Never import /server into browser code.

Your first call

On your server, create the client and mint a short-lived player token for the browser.

import { InvoServer } from "@invonetwork/web-sdk/server";

const invo = new InvoServer({
  gameSecret: process.env.INVO_GAME_SECRET!, // server-side ONLY
  baseUrl: "https://sandbox.invo.network/sandbox", // prod: https://invo.network
});

// Hand this short-lived (~15 min), game-scoped token to the browser.
const { token } = await invo.mintPlayerToken({ playerEmail: "p@example.com", playerPhone: "+15555550111" });

From the Web docs.

What you can build

Everything the Web SDK covers, from the docs. It works for a game or a platform alike.

Currency purchase

Hosted checkout from real money to your currency, with no payment UI to build.

Item purchase

Players spend existing currency on your items.

Sends and transfers

Move currency between players and games, approved by passkey.

Passkeys

WebAuthn enroll and approve for sends and transfers, in the browser.

Webhooks

Verify signed webhooks on your server, with automatic retries.

Typed

ESM and CommonJS builds with TypeScript types.

Test first, then go live

Register your title in the developer console. Test keys start with ivsdk_test_ and run against the free sandbox with test cards, where no real money moves. Live keys start with ivsdk_live_. Keep the key on your server and never ship it in a client build.

Other SDKs: Unity · Unreal Engine · Python. Building in Godot? Talk to us.