npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@kirorolabs/sdk

v2.1.2

Published

KiroroLabs Social-Native Auth & Web3 SDK for Threads + Multi-Chain

Readme

Kiroro SDK 🛡️💎

The Social-Native Web3 SDK for dApps. Connect users with Threads accounts, give them embedded smart wallets, and enable full blockchain transactions across multiple chains.

npm version License: MIT

Features ✨

  • Threads Authentication: Native OAuth login via Threads (Meta)
  • Embedded Wallets: Automatic ERC-4337 smart wallet creation
  • Full Transaction Support: sendTransaction, writeContract, signMessage, signTypedData
  • Multi-Chain: Base, Arbitrum, Optimism, Polygon, Ethereum, Solana
  • Solana Support: Native Solana wallets and transactions
  • Wagmi Integration: Works with standard Wagmi hooks
  • Helper Hooks: useKiroroToken (ERC-20), useKiroroNFT (ERC-721)
  • Gasless Transactions: Integrated Paymaster support

Installation 📦

npm install @kirorolabs/sdk viem @solana/web3.js
# or
yarn add @kirorolabs/sdk viem

Quick Start 🚀

1. Get your API Key

Create a project at app.kiroro.xyz/dashboard to get your kiroroClientId.

2. Wrap your App

import { KiroroProvider } from '@kirorolabs/sdk';

function App() {
  return (
    <KiroroProvider config={{ kiroroClientId: "kiro_your_key_here" }}>
      <YourApp />
    </KiroroProvider>
  );
}

3. Use the Hooks

import { useKiroroAuth, useKiroroWallet } from '@kirorolabs/sdk';

function MyComponent() {
  // Authentication
  const { user, isAuthenticated, login, logout } = useKiroroAuth();
  
  // Wallet & Transactions
  const { sendTransaction, writeContract, signMessage, isReady } = useKiroroWallet();

  const handleSend = async () => {
    const hash = await sendTransaction({
      to: "0x1234...",
      value: BigInt(1e16), // 0.01 ETH
    });
    console.log("Transaction:", hash);
  };

  if (!isAuthenticated) {
    return <button onClick={login}>Connect with Threads</button>;
  }

  return (
    <div>
      <p>Welcome, @{user.username}!</p>
      <button onClick={handleSend} disabled={!isReady}>Send ETH</button>
    </div>
  );
}

Hooks API 🪝

useKiroroAuth

const {
  user,              // KiroroUser | null
  isAuthenticated,   // boolean
  isLoading,         // boolean
  login,             // () => void
  logout,            // () => void
  getAccessToken,    // () => Promise<string | null>
} = useKiroroAuth();

useKiroroWallet

const {
  address,           // Primary wallet address
  smartWalletAddress,// ERC-4337 smart wallet
  isReady,           // Ready for transactions
  chainId,           // Current chain
  
  // Transactions
  sendTransaction,   // (request) => Promise<hash>
  writeContract,     // (request) => Promise<hash>
  
  // Signing
  signMessage,       // (message) => Promise<signature>
  signTypedData,     // (typedData) => Promise<signature>
  
  // Chain
  switchChain,       // (chainId) => Promise<void>
  waitForTransaction,// (hash) => Promise<receipt>
} = useKiroroWallet();

useKiroroSolana ☀️

import { useKiroroSolana } from '@kirorolabs/sdk';

const {
  connect,           // () => Promise<void>
  signMessage,       // (message) => Promise<signature>
  sendTransaction,   // (tx, connection) => Promise<txid>
  walletAddress,     // string | null
  isConnected,       // boolean
} = useKiroroSolana();

useKiroroToken

import { useKiroroToken } from '@kirorolabs/sdk';

const { balance, transfer, approve, allowance } = useKiroroToken("0xTokenAddress");

// Transfer tokens
await transfer("0xRecipient", BigInt(1e18));

useKiroroNFT

import { useKiroroNFT } from '@kirorolabs/sdk';

const { balance, transfer, ownerOf } = useKiroroNFT("0xNFTContract");

// Transfer an NFT
await transfer("0xRecipient", BigInt(tokenId));

Wagmi Integration

import { kiroroWagmiConnector } from '@kirorolabs/sdk/wagmi';
import { createConfig } from 'wagmi';

const config = createConfig({
  connectors: [kiroroWagmiConnector()],
  // ... rest of wagmi config
});

// Now standard Wagmi hooks work with Kiroro!
// useWriteContract(), useSendTransaction(), etc.

Types

interface KiroroUser {
  id: string;
  threadsId: string;
  username: string;
  picture: string;
  walletAddress?: string;
  solanaWalletAddress?: string;
  smartWalletAddress?: string;
  eoaAddress?: string;
  chainId?: number;
  isVerified?: boolean;
}

interface SendTransactionRequest {
  to: `0x${string}`;
  value?: bigint;
  data?: `0x${string}`;
}

interface WriteContractRequest<TAbi> {
  address: `0x${string}`;
  abi: TAbi;
  functionName: string;
  args?: readonly unknown[];
  value?: bigint;
}

Configuration ⚙️

| Option | Type | Description | | :--- | :--- | :--- | | kiroroClientId | string | Required. Your API key from the dashboard | | gasless | boolean | Enable sponsored transactions | | chains | Chain[] | Supported chains (defaults to Base) | | defaultChain | Chain | Default chain | | appearance.theme | "dark" \| "light" | Theme for auth modal | | appearance.logo | string | Custom logo URL |

Supported Chains 🌐

  • Base (default)
  • Base Sepolia
  • Arbitrum
  • Optimism
  • Polygon
  • Ethereum Mainnet
  • Solana

Security 🔒

  • Domain Whitelisting: Only approved domains can use your API key
  • ERC-4337 Smart Wallets: Secure account abstraction
  • Session Tokens: Secure, short-lived auth tokens

Dashboard

Manage your projects, view SDK users, and monitor usage at: https://app.kiroro.xyz/dashboard

Requirements

  • React 18+
  • viem 2.0+
  • wagmi 2.0+ (optional, for Wagmi integration)

License 📄

MIT © Kiroro Labs