MCPcopy Index your code
hub / github.com/chambaz/solanaui

github.com/chambaz/solanaui @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
246 symbols 588 edges 84 files 8 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

SolanaUI

Beautifully designed UI components and AI Agent tooling for Solana builders.

Documentation and examples: solanaui.dev

Installation

SolanaUI uses the shadcn registry. Add the registry to your components.json:

{
  "registries": {
    "@solanaui": "https://solanaui.dev/r/{name}.json"
  }
}

Then install components individually:

pnpm dlx shadcn@latest add @solanaui/swap-box

This copies the component source into your project at components/sol/. The components are intended to be modified and customized to your project needs. You own the code.

Prerequisites

  • React 19
  • Tailwind CSS v4
  • shadcn/ui initialized (pnpm dlx shadcn@latest init)

Agent Integration

SolanaUI ships a SKILL.md for coding agents (Claude Code, OpenCode, Cursor, Windsurf, and others). Install it with:

npx skills add chambaz/solanaui

Or copy SKILL.md from the repo root into your project's .claude/skills/ directory.

Development

pnpm install
pnpm dev

The docs site runs at http://localhost:3000

pnpm build     # Production build (includes type checking)
pnpm lint      # Biome lint
pnpm format    # Biome format

License

MIT

Extension points exported contracts — how you extend this code

ComponentDefinition (Interface)
* AI Builder System Prompt * * Powers the home page AI builder that generates live-preview Solana UIs. * This is buil
src/lib/builder/builder-prompt.ts
WalletSheetProps (Interface)
(no doc)
src/registry/sol/wallet-sheet.tsx
ComponentCodeProps (Interface)
(no doc)
src/components/docs/component-code.tsx
DetailRow (Interface)
(no doc)
src/lib/types.ts
OrderFormProps (Interface)
(no doc)
src/registry/sol/order-form.tsx
InstallCommandsProps (Interface)
(no doc)
src/components/builder/install-commands.tsx
ParsedImports (Interface)
(no doc)
src/lib/builder/parse-imports.ts
TradeChartProps (Interface)
(no doc)
src/registry/sol/trade-chart.tsx

Core symbols most depended-on inside this repo

cn
called by 129
src/lib/utils.ts
compareValues
called by 7
src/registry/lib/sort-utils.ts
formatSize
called by 4
src/registry/sol/order-book.tsx
isNegative
called by 3
src/registry/sol/wallet-sheet.tsx
txnToast
called by 3
src/registry/sol/txn-toast.tsx
getPayloadConfigFromPayload
called by 3
src/components/ui/chart.tsx
doHighlight
called by 3
src/components/builder/code-display.tsx
transformSource
called by 3
scripts/generate-preview-files.mjs

Shape

Function 202
Interface 44

Languages

TypeScript100%

Modules by API surface

src/components/ui/sheet.tsx10 symbols
src/components/ui/field.tsx10 symbols
src/components/ui/dialog.tsx10 symbols
src/registry/sol/order-form.tsx9 symbols
src/registry/sol/auth-card.tsx9 symbols
src/components/ui/command.tsx9 symbols
src/components/ui/table.tsx8 symbols
src/components/ui/card.tsx7 symbols
src/components/ui/chart.tsx6 symbols
src/components/builder/preview-pane.tsx6 symbols
src/components/builder/code-display.tsx6 symbols
src/registry/sol/token-command.tsx5 symbols

For agents

$ claude mcp add solanaui \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact