# TUWA > TUWA is an open-source (Apache-2.0), headless TypeScript toolkit for self-custodial Web3 apps on EVM and Solana: multi-chain sign-in (SIWX, CAIP-122), wallet connection state (Satellite Connect), transaction tracking (Pulsar), React components (Nova UI Kit) and server-side transaction tracking with history and webhooks (Quasar, managed or self-hosted). This is the index of the TUWA Docs Hub (https://docs.tuwa.io): guides that combine several TUWA projects, the Quasar documentation and every TUWA package. Each project also has a reference site generated from its source. - Start a new app from the TUWA SDK (`@tuwaio/sdk` with `@tuwaio/evm-sdk` or `@tuwaio/solana-sdk`) or from a template: `npx @tuwaio/create-cosmos-playground`. - Coding agents: read TUWA_AGENTS.md first. Its stack, install commands and code are checked against the current packages. - The full text of every page below and the README of every package are in https://docs.tuwa.io/llms-full.txt. ## Start here - [TUWA_AGENTS.md](https://raw.githubusercontent.com/TuwaIO/workflows/main/TUWA_AGENTS.md): Stack, install commands, setup code and rules for AI coding agents that build apps with TUWA - [Stack Configurator](https://docs.tuwa.io/configurator): Install command and setup files for Next.js, Vite or Vanilla TS, EVM and/or Solana, Nova UI or headless, SIWX and Quasar; each stack is type-checked against the published packages - [Interactive Web3 Playground](https://docs.tuwa.io/playground): The TUWA stores and Nova UI Kit on simulated wallets and a simulated chain: connect, sign in with SIWX, send transactions that succeed, revert or get replaced, sync them to Quasar, customize Nova (theme, class names, components, texts, options); nothing is signed or sent - [Full text of the hub](https://docs.tuwa.io/llms-full.txt): Every page of the hub and the README of every package, in one file - [Build a Full-Stack React App with the TUWA SDK](https://docs.tuwa.io/guides/full-stack-react): Build a Next.js app on the TUWA SDK: wallet connection with Nova Connect, SIWX sign-in with server sessions and transaction tracking, for EVM or Solana. - [Starter Templates](https://docs.tuwa.io/guides/starter-templates): Start a TUWA app from a Cosmos Playground template: Next.js and Vite apps with wallet connection, transaction tracking, SIWX and Quasar sync wired in. ## Guides - [Engineering Deep Dives & Architectural Blueprints](https://docs.tuwa.io/guides): Deep dives and step-by-step setups for TUWA on EVM and Solana: transaction state, multi-chain sign-in with CAIP-122, account abstraction, Quasar sync, external auth with JWT and Supabase RLS. - [Multi-Chain Authentication with SIWX (CAIP-122)](https://docs.tuwa.io/guides/multi-chain-auth-siwx-caip122): Why EIP-4361 (SIWE) limits multi-chain dApps, how CAIP-122 unifies EVM and Solana sign-in, and how to verify the sessions on your server with SIWX. - [Why Web3 Transaction State is Broken](https://docs.tuwa.io/guides/why-web3-transaction-state-is-broken): Why tracking transactions in React useState is an anti-pattern, how mempool replacements and unmounts break dApps, and how Pulsar's state machine fixes it. - [Demystifying ERC-4337: Sovereign Account Abstraction with Viem, Solady, and Pimlico](https://docs.tuwa.io/guides/erc-4337-sovereign-account-abstraction): ERC-4337 v0.7 in depth: alternative mempools, userOpHash vs txHash, Solady vs ERC-7579, and sovereign account abstraction with Viem, TUWA and Quasar. - [Track Transactions in React with Pulsar](https://docs.tuwa.io/guides/react-transaction-tracking): Track EVM and Solana transactions in React with Pulsar: a store saved to localStorage, tracking that resumes after a reload, a tracked contract call and a refresh of your data when it finishes. - [Build a Full-Stack React App with the TUWA SDK](https://docs.tuwa.io/guides/full-stack-react): Build a Next.js app on the TUWA SDK: wallet connection with Nova Connect, SIWX sign-in with server sessions and transaction tracking, for EVM or Solana. - [Sync Transactions to Quasar](https://docs.tuwa.io/guides/quasar-transaction-sync): Sync Pulsar transactions to Quasar through your server, check the SIWX session on every call, and show the history of every device in Nova Connect. - [Hand a SIWX Sign-In to External Auth with JWT and JWKS](https://docs.tuwa.io/guides/siwx-jwt-external-auth): Issue a short-lived JWT for the wallet signed in with SIWX and publish its public keys as a JWKS, so embedded wallet providers like Coinbase CDP and your own services can trust the sign-in. - [Use a SIWX Sign-In with Supabase Row Level Security](https://docs.tuwa.io/guides/siwx-supabase): Let Supabase trust the wallet signed in with SIWX: register the SIWX JWKS as third-party auth, write Row Level Security policies on the wallet address and query from the browser and Server Actions, on EVM or Solana. - [Starter Templates](https://docs.tuwa.io/guides/starter-templates): Start a TUWA app from a Cosmos Playground template: Next.js and Vite apps with wallet connection, transaction tracking, SIWX and Quasar sync wired in. ## Quasar - [Quasar](https://docs.tuwa.io/quasar): Quasar tracks the transactions of your app on the server, keeps their history and sends webhooks. Use Quasar Cloud or self-host the Community Edition. - [Apps & Keys](https://docs.tuwa.io/quasar/apps-and-keys): Quasar apps, their live and test environments, the secret and public keys, and the app settings that restrict who may call the API. - [Quotas & Limits](https://docs.tuwa.io/quasar/quotas-and-limits): What Quasar counts against the quota of an organization, what happens when the quota is used up, and the other limits of the API. - [Webhooks](https://docs.tuwa.io/quasar/webhooks): Receive a signed HTTP request from Quasar when a tracked transaction succeeds, fails or is replaced, verify it, and test it on localhost with the quasar-sdk CLI. - [Self-Hosting](https://docs.tuwa.io/quasar/self-hosting): Run Quasar Community Edition, the open-source, single-tenant Quasar, on your own servers, and point @tuwaio/quasar-sdk at it. - [Move from Quasar Cloud to Community](https://docs.tuwa.io/quasar/migrate-to-community): Move an organization from Quasar Cloud to your Quasar Community Edition node with its apps, API keys, webhook secrets and transaction history. - [API Reference](https://docs.tuwa.io/quasar/api): The endpoints of the Quasar API that @tuwaio/quasar-sdk calls — transaction sync, history, Payments, the checkout, payment webhooks and health — with their requests and responses. ## Comparisons - [Why TUWA: Comparisons & Ecosystem Radar](https://docs.tuwa.io/comparisons): TUWA against RainbowKit, ConnectKit, Reown AppKit, Privy, Dynamic, thirdweb, Alchemy, The Graph on self-custody, openness, cost at scale, transaction lifecycle, onboarding and chain coverage, with a source for every fact ## Policies - [All policies](https://docs.tuwa.io/policies): The TUWA policies in force, with their PDFs - [Terms of Service](https://tuwa.io/terms): The rules for using the TUWA websites and documentation, Quasar Cloud, Quasar Community Edition and the open-source packages. - [Privacy Policy](https://tuwa.io/privacy): What data TUWA collects and why, how it is protected, and how to access or delete it. - [Cookie Policy](https://tuwa.io/cookie): The cookies and Local Storage that the TUWA sites and the Quasar dashboard use. - [Security Policy](https://tuwa.io/security): How to report a vulnerability, what TUWA promises in return, and who is responsible for what. - [Data Processing Addendum](https://tuwa.io/dpa): How we process the personal data of your app users on your behalf when you use Quasar Cloud. ## Packages Install commands include the required peer dependencies. ### Stage 1 — Core Auth & Primitives - [@tuwaio/orbit-core](https://orbit.docs.tuwa.io/packages/orbit-core): v0.6.2, layer L1. Zero-dependency, framework-agnostic multi-chain types, CAIP-2, CAIP-10 and CAIP-19 helpers, connector and address helpers, error normalization and SSR-safe connection persistence. Install: `pnpm add @tuwaio/orbit-core` - [@tuwaio/orbit-evm](https://orbit.docs.tuwa.io/packages/orbit-evm): v0.5.0, layer L2. Cached viem clients, chain switching, ENS resolution and ERC-4337 smart accounts (Solady with a Pimlico bundler and paymaster), built on viem and @wagmi/core. Install: `pnpm add @tuwaio/orbit-evm @wagmi/core@3 viem@2` - [@tuwaio/orbit-solana](https://orbit.docs.tuwa.io/packages/orbit-solana): v0.8.0, layer L2. Cached @solana/kit RPC clients, Wallet Standard discovery, cluster and explorer helpers, and SNS name and avatar lookups. Install: `pnpm add @tuwaio/orbit-solana @tuwaio/orbit-core @solana/kit` - [@tuwaio/siwx-core](https://siwx.docs.tuwa.io/packages/siwx-core): v0.7.4, layer L1. CAIP-122 sign-in message builder, parser and validator with verification policies, session matching, nonces and typed errors for EVM and Solana. Install: `pnpm add @tuwaio/siwx-core @tuwaio/orbit-core` - [@tuwaio/siwx-evm](https://siwx.docs.tuwa.io/packages/siwx-evm): v0.5.6, layer L2. CAIP-122 signer for wagmi and viem wallets, and EIP-191 (EOA), EIP-1271 (smart contract wallet) and ERC-6492 (not yet deployed smart wallet) verification on the chain of the message, built on viem and @wagmi/core. Install: `pnpm add @tuwaio/siwx-evm @tuwaio/orbit-core @tuwaio/siwx-core @wagmi/core viem` - [@tuwaio/siwx-solana](https://siwx.docs.tuwa.io/packages/siwx-solana): v0.7.4, layer L2. CAIP-122 signer for Wallet Standard and @solana/kit wallets, and ed25519 signature verification with Web Crypto, built on @solana/kit. Install: `pnpm add @tuwaio/siwx-solana @tuwaio/orbit-core @tuwaio/orbit-solana @tuwaio/siwx-core @solana/kit @wallet-standard/base` - [@tuwaio/siwx-react](https://siwx.docs.tuwa.io/packages/siwx-react): v0.6.7, layer L2. useSiwx and useSiwxSession hooks with a Zustand session store for the CAIP-122 sign-in flow, plus Satellite Connect helpers. Install: `pnpm add @tuwaio/siwx-react @tuwaio/orbit-core @tuwaio/siwx-core immer zustand` (and react >=18 in the app) - [@tuwaio/siwx-server](https://siwx.docs.tuwa.io/packages/siwx-server): v0.8.4, layer L2. Backend verification of CAIP-122 sign-ins for EVM and Solana, single-use nonce and session stores, HttpOnly cookie helpers, Next.js App Router handlers, and JWT/JWKS for external auth providers. Install: `pnpm add @tuwaio/siwx-server @tuwaio/orbit-core @tuwaio/siwx-core` ### Stage 2 — State & Connection - [@tuwaio/pulsar-core](https://pulsar.docs.tuwa.io/packages/pulsar-core): v0.12.5, layer L3. Headless, framework-agnostic transaction store with localStorage persistence, a chain adapter contract, metadata validation and remote sync hooks for tracking EVM and Solana transactions. Install: `pnpm add @tuwaio/pulsar-core @tuwaio/orbit-core dayjs@1 immer@11 zustand@5` - [@tuwaio/pulsar-evm](https://pulsar.docs.tuwa.io/packages/pulsar-evm): v0.13.5, layer L4. Transaction adapter and trackers for standard transactions, ERC-4337 UserOperations, EIP-5792 call batches and Safe multisig, which see a speed-up or cancel made in the wallet at any moment, with speed-up and cancel action Install: `pnpm add @tuwaio/pulsar-evm @tuwaio/orbit-core @tuwaio/orbit-evm @tuwaio/pulsar-core @wagmi/core@3 dayjs@1 immer@11 viem@2 zustand@5`; `@tuwaio/pulsar-evm/safe` (the Safe tracker alone) does not import @tuwaio/orbit-evm and @wagmi/core - [@tuwaio/pulsar-solana](https://pulsar.docs.tuwa.io/packages/pulsar-solana): v0.12.0, layer L4. Transaction adapter for Wallet Standard wallets, a signature tracker and a sign-and-send helper, built on @solana/kit. Install: `pnpm add @tuwaio/pulsar-solana @tuwaio/orbit-core @tuwaio/orbit-solana @tuwaio/pulsar-core @solana/kit dayjs@1 immer@11 zustand@5` - [@tuwaio/pulsar-react](https://pulsar.docs.tuwa.io/packages/pulsar-react): v0.8.0, layer L4. useInitializeTransactionsPool resumes tracking of pending transactions after a page reload, and useTxFinished reacts to every finished transaction. Install: `pnpm add @tuwaio/pulsar-react` (and react >=19.2.3 in the app) - [@tuwaio/satellite-core](https://satellite.docs.tuwa.io/packages/satellite-core): v0.12.1, layer L3. Headless, framework-agnostic Zustand store for EVM and Solana wallet connections, with a chain adapter contract, auto-connect of the last wallet and the SIWX state type. Install: `pnpm add @tuwaio/satellite-core @tuwaio/orbit-core immer@11 zustand@5` - [@tuwaio/satellite-evm](https://satellite.docs.tuwa.io/packages/satellite-evm): v0.12.0, layer L4. Wallet adapter and connections watcher for wagmi connectors, a contract account check and wagmi config helpers, built on @wagmi/core and viem. Install: `pnpm add @tuwaio/satellite-evm @tuwaio/orbit-core @tuwaio/orbit-evm @tuwaio/satellite-core @wagmi/core@3 immer@11 viem@2 zustand@5` - [@tuwaio/satellite-solana](https://satellite.docs.tuwa.io/packages/satellite-solana): v0.12.0, layer L4. Wallet Standard adapter, connections watcher and message signer for Solana wallets, built on @solana/kit. Install: `pnpm add @tuwaio/satellite-solana @tuwaio/orbit-core @tuwaio/orbit-solana @tuwaio/satellite-core @solana/kit @wallet-standard/base@1.1 @wallet-standard/features@1.1 @wallet-standard/ui@1 @wallet-standard/ui-registry@1 immer@11 zustand@5` - [@tuwaio/satellite-react](https://satellite.docs.tuwa.io/packages/satellite-react): v0.10.5, layer L4. Provider, store hook and EVM and Solana watcher components that keep wallet connections in sync with wallets and SIWX sessions. Install: `pnpm add @tuwaio/satellite-react @tuwaio/orbit-core @tuwaio/satellite-core immer@11 zustand@5` (and react >=19.2.3 in the app) ### Stage 3 — Backend & Sync - [@tuwaio/quasar-sdk](https://payments.docs.tuwa.io/?path=/docs/packages-quasar-sdk-overview--docs): v0.19.0, layer L5. The Quasar API client for Quasar Cloud and self-hosted Quasar nodes (transaction sync and history for Pulsar, Payments invoices and refunds, webhook verification), and the quasar-sdk CLI that relays webhooks to localhost. Install: `pnpm add @tuwaio/quasar-sdk` ### Stage 4 — User Interface - [@tuwaio/nova-core](https://stories.tuwa.io/?path=/docs/packages-nova-core-overview--docs): v0.17.0, layer L6. The --tuwa-* theme variables, the dialog, network and wallet icons, the Quasar loader, text that morphs, and the hooks and helpers shared by the Nova components. Install: `pnpm add @tuwaio/nova-core @tuwaio/orbit-core @radix-ui/react-dialog@1 @web3icons/common @web3icons/react clsx@2 framer-motion@14 tailwind-merge@3` (and react >=19.2.3 in the app) - [@tuwaio/nova-icons](https://stories.tuwa.io/?path=/docs/packages-nova-icons-overview--docs): v0.1.3, layer L6. The icons of Nova UI Kit (TUWA) in the TUWA retro pixel style: React components drawn on a pixel grid, in the color of the text, with the names, import paths and props of Heroicons. Install: `pnpm add @tuwaio/nova-icons` (and react >=19.2.3 in the app) - [@tuwaio/nova-connect](https://stories.tuwa.io/?path=/docs/packages-nova-connect-overview--docs): v0.17.0, layer L7. Connect button, connect and account modals, chain selector and SIWX sign-in for EVM and Solana wallets, with English and Ukrainian labels, built on @tuwaio/satellite-react. Install: `pnpm add @tuwaio/nova-connect @tuwaio/nova-core @tuwaio/nova-transactions @tuwaio/orbit-core @tuwaio/pulsar-core @tuwaio/satellite-core @tuwaio/satellite-react @tuwaio/siwx-core @tuwaio/siwx-react @radix-ui/react-dialog@1 @radix-ui/react-select@2 @web3icons/common @web3icons/react clsx@2 dayjs@1 ethereum-blockies-base64@1 framer-motion@14 immer@11 react-toastify@11 tailwind-merge@3 zustand@5` (and react >=19.2.3 in the app) - [@tuwaio/nova-transactions](https://stories.tuwa.io/?path=/docs/packages-nova-transactions-overview--docs): v0.17.0, layer L7. Toasts, a tracking modal with speed-up and cancel that follow a sped-up transaction to its result, and the transaction history for transactions tracked by Pulsar. Install: `pnpm add @tuwaio/nova-transactions @tuwaio/nova-core @tuwaio/orbit-core @tuwaio/pulsar-core @radix-ui/react-dialog@1 @web3icons/common @web3icons/react clsx@2 dayjs@1 framer-motion@14 immer@11 react-toastify tailwind-merge@3 zustand@5` (and react >=19.2.3 in the app) - [@tuwaio/nova-payments](https://payments.docs.tuwa.io/?path=/docs/packages-nova-payments-overview--docs): v0.8.0, layer L8. The checkout of Quasar Payments invoices, with crypto payments from a wallet or a QR code, in a modal, inline or on a page. Install: `pnpm add @tuwaio/nova-payments @tuwaio/nova-connect @tuwaio/nova-core @tuwaio/nova-transactions @tuwaio/orbit-core @tuwaio/pulsar-core @tuwaio/quasar-sdk @tuwaio/satellite-core @tuwaio/satellite-react @tuwaio/siwx-core @tuwaio/siwx-react @radix-ui/react-dialog@1 @radix-ui/react-select@2 @web3icons/common @web3icons/react clsx@2 dayjs@1 ethereum-blockies-base64@1 framer-motion@14 immer@11 react-toastify@11 tailwind-merge@3 zustand@5` (and react >=19.2.3 in the app) ### Stage 5 — SDK Integration Layer - [@tuwaio/sdk](https://sdk.docs.tuwa.io/packages/sdk): v0.10.0, layer L8. L8 core of the TUWA SDK: one package for React apps that re-exports Orbit Utils, SIWX, Satellite Connect, Pulsar and Nova UI Kit under subpaths, with their stylesheets. Add @tuwaio/evm-sdk or @tuwaio/solana-sdk for the network. Install: `pnpm add @tuwaio/sdk` (and react >=19.2.3 and react-dom >=19.2.3 in the app) - [@tuwaio/create-cosmos-playground](https://sdk.docs.tuwa.io/packages/create-cosmos-playground): v0.1.0, layer L8. L8 CLI of the TUWA SDK: scaffolds a Next.js or Vite starter app with the TUWA stack for EVM, Solana or both, with or without Quasar sync. Install: `pnpm add @tuwaio/create-cosmos-playground` - [@tuwaio/evm-sdk](https://sdk.docs.tuwa.io/packages/evm-sdk): v0.9.0, layer L9. L9 EVM add-on of the TUWA SDK: re-exports the EVM packages of Orbit Utils, SIWX, Satellite Connect, Pulsar and Nova Connect under subpaths. Install: `pnpm add @tuwaio/evm-sdk @tuwaio/sdk @wagmi/core@3 viem@2` (and react >=19.2.3 and react-dom >=19.2.3 in the app) - [@tuwaio/solana-sdk](https://sdk.docs.tuwa.io/packages/solana-sdk): v0.8.0, layer L9. L9 Solana add-on of the TUWA SDK: re-exports the Solana packages of Orbit Utils, SIWX, Satellite Connect, Pulsar and Nova Connect under subpaths. Install: `pnpm add @tuwaio/solana-sdk @tuwaio/sdk @solana/kit @wallet-standard/app@1.1 @wallet-standard/base@1.1 @wallet-standard/features@1.1 @wallet-standard/react@1 @wallet-standard/ui@1 @wallet-standard/ui-registry@1` (and react >=19.2.3 and react-dom >=19.2.3 in the app) - [@tuwaio/payments-sdk](https://payments.docs.tuwa.io/?path=/docs/packages-payments-sdk-overview--docs): v0.3.0, layer L10. L10 Payments module of the TUWA SDK: the Nova Payments checkout and the Quasar checkout client, on top of @tuwaio/sdk. Install: `pnpm add @tuwaio/payments-sdk @tuwaio/sdk` (and react >=19.2.3 and react-dom >=19.2.3 in the app) ## Documentation sites - [Orbit Utils](https://orbit.docs.tuwa.io/): Multi-chain utilities for EVM & Solana - [Sign-In With X (SIWX)](https://siwx.docs.tuwa.io/): CAIP-122 authentication engine & adapters - [Pulsar](https://pulsar.docs.tuwa.io/): Transaction tracking that survives reloads - [Satellite Connect](https://satellite.docs.tuwa.io/): Headless wallet connection store for EVM & Solana - [Quasar Cloud](https://docs.tuwa.io/quasar): Managed cloud · Transaction indexing & sync - [Quasar Community](https://docs.tuwa.io/quasar/self-hosting): Self-hosted engine & admin · Apache-2.0 - [Nova UI Kit](https://stories.tuwa.io/): Design system & component library - [TUWA SDK](https://sdk.docs.tuwa.io/): Unified client SDK & EVM/Solana network adapters - [Quasar Client](https://payments.docs.tuwa.io/): API client, webhook verification & relay CLI ## Optional - [Quasar API (OpenAPI)](https://docs.tuwa.io/quasar-openapi.yaml): The endpoints that `@tuwaio/quasar-sdk` calls, as an OpenAPI 3 document - [Nova UI Kit Storybook](https://stories.tuwa.io/): Live examples of the Nova components - [Cosmos Playground](https://github.com/TuwaIO/cosmos-playground): Source of the starter templates - [Quasar Community Edition](https://github.com/TuwaIO/quasar-community): The self-hosted Quasar - [TUWA website](https://tuwa.io): Product overview and Quasar Cloud - [GitHub](https://github.com/TuwaIO): Source code of every package