Skip to main content
Use the Web SDKs when you are building browser-based applications, wallet-connected experiences, or React interfaces on top of Thru.

Start here

  • Start with @thru/thru-sdk if you want the main typed TypeScript client for Thru.
  • Use @thru/browser-sdk, @thru/react-sdk, and @thru/react-ui for wallet-connected browser and React apps.
  • Use the package pages in the sidebar for focused descriptions and likely use cases for each package.

Packages

PackageDescriptionUseful when
@thru/abiWASM-backed ABI reflection and formatting for ABI YAML plus binary payloads.Decoding raw instruction, account, or event bytes for a custom explorer or debugging tool.
@thru/bridge-sdkTypeScript SDK for Polygon-to-Thru bridge deposit flows.Adding Polygon-to-Thru bridge deposits to a wallet or deposit flow.
@thru/browser-sdkLow-level browser SDK for embedding the Thru wallet iframe/provider and RPC client.Embedding the Thru wallet experience in a non-React web app.
@thru/chain-interfacesShared wallet and chain interface types for accounts, connect flows, and signing.Building a custom wallet adapter or provider layer against shared Thru wallet types.
@thru/cryptoHD wallet and mnemonic utilities for Thru keys and addresses.Generating or deriving Thru accounts from a seed phrase in a wallet or onboarding flow.
@thru/embedded-providerClient-side embedded wallet provider built around an iframe and postMessage.Wiring an embedded wallet iframe into a custom web application.
@thru/helpersCore utilities for address/signature encoding, byte helpers, and Web Crypto access.Handling Thru address encoding and common byte conversions in app code.
@thru/indexerReusable indexing framework for Thru chain streams, schemas, checkpoints, and REST routes.Building a backend indexer that syncs chain data into Postgres and exposes an API.
@thru/passkeyBrowser WebAuthn package for passkey registration and signing flows.Adding browser passkey-based signing to a Thru wallet or dApp.
@thru/passkey-managerCross-platform library for passkey-manager program instructions and passkey-authenticated transactions.Constructing passkey-manager transactions or server-side helpers around passkey-backed wallets.
@thru/protoGenerated protobuf messages and service types for Thru APIs.Talking directly to Thru gRPC or Connect services with generated message types.
@thru/protocolShared postMessage protocol types and constants for embedded wallet communication.Implementing a custom embedded wallet host or compatible iframe messenger.
@thru/react-sdkReact provider and hooks around the browser SDK for wallet state and RPC access.Adding Thru wallet connect and account hooks to a React app.
@thru/react-uiReady-made React wallet UI components built on top of @thru/react-sdk.Dropping in prebuilt wallet UI instead of building custom React wallet components.
@thru/replayHistorical plus live replay library for ordered block, transaction, and event streams.Backfilling and tailing chain data for analytics, ETL, or event processing services.
@thru/thru-sdkTyped JavaScript and TypeScript client for Thru blockchain RPC and domain models.Integrating any app or backend with the Thru chain through the main TypeScript SDK.
@thru/token-programBindings for the Thru token program: instruction builders, parsers, and address derivation.Minting tokens or building token transfers and account setup flows.