MCPcopy Index your code
hub / github.com/ephraimduncan/blocks

github.com/ephraimduncan/blocks @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
791 symbols 1,834 edges 229 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

blocks

image

Accessible and customizable blocks that you can copy and paste into your apps. Free. Open Source.

Usage

To use blocks from this registry, configure your components.json file with the remote registry:

{
  "registries": {
    "@blocks-so": "https://blocks.so/r/{name}.json"
  }
}

Then add blocks to your project using the shadcn CLI:

# Add a specific block
npx shadcn@latest add @blocks-so/login-01

# Add a dialog block
npx shadcn@latest add @blocks-so/dialog-01

# Add a sidebar block
npx shadcn@latest add @blocks-so/sidebar-01

Alternatively, you can add blocks directly from the registry:

# Using the direct registry URL
npx shadcn@latest add https://blocks.so/r/login-01.json

Visit blocks.so to view the full documentation and browse all available blocks with live previews.

Contributing

We welcome contributions! Please read our contributing guide to get started.

License

Licensed under the MIT license.

Extension points exported contracts — how you extend this code

CodeBlockEditorProps (Interface)
(no doc)
components/code-block-editor.tsx
SingleFileCodeViewProps (Interface)
(no doc)
components/single-file-code-view.tsx
ReactIconProps (Interface)
(no doc)
components/icons.tsx
SpeechRecognition (Interface)
(no doc)
components/ai-elements/prompt-input.tsx
BlockViewState (Interface)
(no doc)
components/ui/block.tsx
BaseItem (Interface)
(no doc)
lib/blocks.ts
GenerateOptions (Interface)
(no doc)
scripts/generate-registry.ts
BlockArgs (Interface)
(no doc)
scripts/add-block.ts

Core symbols most depended-on inside this repo

cn
called by 411
lib/utils.ts
useSidebar
called by 14
components/ui/sidebar.tsx
writeLine
called by 14
scripts/add-block.ts
writeErrorLine
called by 6
scripts/add-block.ts
useMessageBranch
called by 5
components/ai-elements/message.tsx
handleAction
called by 5
content/components/tables/table-02.tsx
usePromptInputAttachments
called by 4
components/ai-elements/prompt-input.tsx
useCarousel
called by 4
components/ui/carousel.tsx

Shape

Function 666
Interface 56
Method 55
Class 14

Languages

TypeScript100%

Modules by API surface

components/ai-elements/prompt-input.tsx56 symbols
components/ui/sidebar.tsx25 symbols
components/code-block-editor.tsx19 symbols
components/ai-elements/message.tsx17 symbols
components/ui/menubar.tsx16 symbols
components/ui/combobox.tsx16 symbols
components/ui/dropdown-menu.tsx15 symbols
components/ui/context-menu.tsx15 symbols
scripts/lib/file-scanner.ts14 symbols
content/components/ai/ai-04.tsx14 symbols
scripts/lib/import-transformer.ts12 symbols
components/ui/alert-dialog.tsx12 symbols

For agents

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

⬇ download graph artifact