BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/aomi/aomi-wallet-kit

aomi-wallet-kit

aomi/aomi-wallet-kit
FreeComponent

Generic Aomi wallet kit context. Identity → UserState sync is mounted automatically by AomiWalletKitContextProvider.

Install it

npx shadcn@latest add https://aomi.dev/r/aomi-wallet-kit.json

Source

lib/wallet-kit/context.tsxaomi.dev/r/aomi-wallet-kit.json
1"use client";
2
3import { createContext, useContext, useEffect, type ReactNode } from "react";
4import { useUser } from "@aomi-labs/react";
5import { AOMI_SESSION_DISCONNECTED_IDENTITY } from "./identity";
6import type { AomiWalletKit } from "./types";
7
8const DISCONNECTED_WALLET_KIT: AomiWalletKit = {
9 identity: AOMI_SESSION_DISCONNECTED_IDENTITY,
10 isReady: true,
11 isSwitchingChain: false,
12 canConnect: false,
13 canOpenAccountUI: false,
14 canDisconnect: false,
15 accounts: [],
16 selectAccount: async () => undefined,
17 evmWallets: [],
18 solanaWallets: [],
19 socialLoginOptions: [],
20 supportedNetworks: {
21 evm: [],
22 solana: [],
23 },
24 connect: async () => undefined,
25};
26
27const AomiWalletKitContext =
28 createContext<AomiWalletKit>(DISCONNECTED_WALLET_KIT);
29
30function toSvmCapabilities(
31 capabilities: AomiWalletKit["identity"]["svmCapabilities"],
32): string[] | undefined {
33 if (!capabilities) return undefined;
34 return Object.entries(capabilities)
35 .filter(([, enabled]) => enabled)
36 .map(([name]) =>
37 name.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`),
38 );
39}
40
41function AomiWalletKitSync({ walletKit }: { walletKit: AomiWalletKit }) {
42 const { setUser } = useUser();
43 const identity = walletKit.identity;
44
45 useEffect(() => {
46 // NOTE: aaMode / SmartAccount4337 / Delegation7702 are NOT forwarded
47 // here. They are session-owned: `session.ts` writes them on tx-complete
48 // and providers read them back via `useUser()`. Forwarding them from
49 // identity would create a write loop (UserState -> identity -> setUser
50 // -> UserState). walletKind is provider-static and forwarded normally.
51 setUser({
52 address: identity.address ?? undefined,
53 walletKind: identity.walletKind ?? undefined,
54 chainId: identity.chainId ?? undefined,
55 isConnected: identity.isConnected,
56 svm: {
57 address: identity.svmAddress ?? null,
58 cluster: identity.svmCluster ?? undefined,
59 wallet_name: identity.svmWalletName ?? null,
60 transport: identity.svmTransport ?? null,
61 capabilities: toSvmCapabilities(identity.svmCapabilities) ?? [],
62 },
63 walletProvider: identity.isConnected
64 ? (identity.sessionProvider ??
65 identity.embeddedProvider ??
66 identity.walletProvider ??
67 null)
68 : null,
69 walletProviderSubject: identity.isConnected
70 ? (identity.walletProviderSubject ?? null)
71 : null,
72// … truncated

What it pulls in

npm packages

  • @aomi-labs/client
  • @aomi-labs/react
  • @solana/wallet-adapter-react
  • @solana/wallet-standard-wallet-adapter-react
  • @solana/web3.js
  • @tanstack/react-query
  • viem
  • wagmi

Files it writes

  • lib/wallet-kit.ts
  • lib/wallet-kit/index.ts
  • lib/wallet-kit/context.tsx
  • lib/wallet-kit/types.ts
  • lib/wallet-kit/env.ts
  • lib/wallet-kit/identity.ts
  • lib/wallet-kit/wallet-utils.ts
  • lib/wallet-kit/accounts.ts
  • lib/wallet-kit/catalog/evm-connector-catalog.ts
  • lib/wallet-kit/catalog/svm-wallet-catalog.ts
  • lib/wallet-kit/catalog/wallet-branding.ts
  • lib/wallet-kit/catalog/wallet-ids.ts
  • lib/wallet-kit/config/AomiWalletKitProvider.tsx
  • lib/wallet-kit/config/execution.ts
  • lib/wallet-kit/config/index.ts
  • lib/wallet-kit/config/provider-auth.ts
  • lib/wallet-kit/config/types.ts
  • lib/wallet-kit/providers/plugin-registry.ts
  • lib/wallet-kit/execution/execution-runtime.ts
  • lib/wallet-kit/execution/wallet-execution.ts
  • lib/wallet-kit/full-testnet-config.ts
  • lib/wallet-kit/full-testnet-wallet-routing.tsx
  • lib/wallet-kit/network-preferences.tsx
  • lib/wallet-kit/wallet-debug.ts
  • lib/wallet-kit/account/types.ts
  • lib/wallet-kit/account/disabled-runtime.ts
  • lib/wallet-kit/account/aomi-backend-client.ts
  • lib/wallet-kit/account/aomi-backend-runtime.ts
  • lib/wallet-kit/account/sign-out.ts
  • lib/wallet-kit/account/encoding.ts
  • lib/wallet-kit/account/use-widget-session-provider.ts
  • lib/wallet-kit/account/use-resolved-account-runtime.ts
  • lib/wallet-kit/composer/AomiWalletKitComposer.tsx
  • lib/wallet-kit/composer/build-identity.ts
  • lib/wallet-kit/composer/build-wallet-kit-actions.ts
  • lib/wallet-kit/composer/merge-wallet-rows.ts
  • lib/wallet-kit/composer/types.ts
  • lib/wallet-kit/runtime/evm/brands.ts
  • lib/wallet-kit/runtime/evm/disabled-runtime.ts
  • lib/wallet-kit/runtime/evm/disconnect-plan.ts

Facts

Registry
aomi
Type
registry:component
Access
Free
Files written
59
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

aomi.dev aomi-labs/aomi on GitHub Raw registry item This item as JSON

More from aomi

All 34 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionaomiComponentsFree2 deps
alertalertaomiComponentsFree1 dep
aomi-frameaomi-frameaomiComponentsFree1 dep
aomi-para-provideraomi-para-provideraomiComponentsFree9 deps · 27 files
aomi-privy-provideraomi-privy-provideraomiComponentsFree7 deps · 15 files
aomi-widgetaomi-widgetaomiComponentsFree2 deps
assistant-threadassistant-threadaomiComponentsFree6 deps · 26 files
assistant-thread-listassistant-thread-listaomiComponentsFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex