Skip to main content
PolygonKit Hero Light

Welcome to PolygonKit

PolygonKit is a comprehensive React library for building full-fledged web3 applications on Polygon. Inspired by OnchainKit, it provides battle-tested components, hooks, and utilities to create seamless onchain experiences.

Get Started in Seconds

Create a new PolygonKit app with a single command:
npx create-polygon-kit my-app
The CLI scaffolds a complete project with pre-configured components, wallet connection, and a beautiful dashboard. Choose between Next.js or Vite, with full TypeScript support.

CLI Quick Start Guide

Learn more about the create-polygon-kit CLI

Explore the Docs

Quick Start Tutorial

Build your first app with step-by-step guide

Components

Explore our ready-to-use React components

Hooks

Access blockchain data with custom hooks

API Reference

Complete TypeScript API documentation

Why PolygonKit?

Connect to 300+ wallets with WalletConnect integration. Supports MetaMask, Coinbase Wallet, and more out of the box.
Use pre-built components or compose your own. Every component is fully customizable with TailwindCSS.
Full type safety with comprehensive TypeScript definitions. Catch errors before they reach production.
Style components to match your brand. Built with TailwindCSS and supports custom themes.
Works with Polygon PoS, zkEVM, Amoy testnet, and Mumbai. Easy chain switching built-in.
Battle-tested components used in real applications. Includes proper error handling and loading states.

Features

Wallet

Connect, disconnect, and manage wallet connections with ease

Identity

Display user avatars, names, and ENS profiles

Transactions

Send transactions with status tracking and confirmations

Tokens

Display token balances and information

Swap

Token swap interface with built-in routing

Hooks

Custom React hooks for blockchain interactions

Installation

The fastest way to get started is with the CLI:
npx create-polygon-kit my-app
Or install PolygonKit manually in an existing project:
npm install @sanketsaagar/polygon-kit wagmi viem @tanstack/react-query

Quick Example

Here’s a minimal example to get you started:
import { PolygonKitProvider, ConnectWallet } from '@sanketsaagar/polygon-kit';

function App() {
  return (
    <PolygonKitProvider>
      <ConnectWallet />
    </PolygonKitProvider>
  );
}

Continue to Quick Start

Follow our step-by-step guide to build your first app

Community & Support

GitHub

View source code and contribute

npm Package

Install from npm registry

Report Issues

Found a bug? Let us know

Polygon Docs

Learn more about Polygon