affectui

mcp
Guvenlik Denetimi
Gecti
Health Gecti
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 376 GitHub stars
Code Gecti
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

UI for AI agents. React components for what agents do – agent trees, tool calls, traces, handoffs and approvals – and for the rest of your app. One file each, install with shadcn or via MCP. Free and open source.

README.md

affectUI: UI for AI agents. React components for what agents do, and for the rest of your app.

License: MIT shadcn registry React 19 40 free items GitHub stars

Website  ·  Browse components  ·  Docs  ·  Install  ·  Pro

UI for AI agents. affectUI is a library of React components for what agents do – runs, tool calls, traces, handoffs, approvals and context – and for the rest of your app: inputs, menus, charts, screens, illustrations and motion. Every item is one .tsx file with its styles inside: no Tailwind, no CSS setup, no animation library. Install it with the shadcn CLI, or let Claude Code, Cursor or Codex add it through the MCP server, and it is source you own.

Showcase

Agent components, recorded live from affectui.com. Items marked Pro are part of affectUI Pro and are not in this repository; everything else installs from here for free.

Agent Tree: Who started whom – an orchestrator and its sub-agents as a live tree, with status, cost and time on every card, costs rolling up each branch, and branches that fold to one line
Agent Tree Pro
Who started whom
Tool Call Card: An agent's tool call in one line – live timer, status and summary, folds open to highlighted arguments and result with copy, retry on errors and a group that sums them up
Tool Call Card
An agent's tool call in one line
Trace Waterfall: Where the time and money of an agent run go – every LLM call, tool call and sub-agent as a bar on a live timeline, with tokens and cost per step, the slowest call marked and branches that fold into their parent
Trace Waterfall Pro
Where the time and money of an agent run go
Decision Inbox: Open decisions with two quick answers each – answered ones confirm and fold away
Decision Inbox
Open decisions with two quick answers each
Agent Inbox: All your background agent tasks in one calm list – live clocks and status tags, filter tabs with rolling counts, rows that unfold to the last steps with Approve, Reject, Retry or Open, and glide to their new place
Agent Inbox Pro
All your background agent tasks in one calm list
Thinking Loader: A small working pill for AI replies – an eight-ray spinner and a shimmering label that rolls through phases and settles on a check
Thinking Loader
A small working pill for AI replies
Context Map: What fills an agent's context window, as a living treemap – system prompt, tools, memory, every file, the chat and tool results as tiles that glide as it grows, the free space dashed, and compaction squeezing old turns into a summary
Context Map Pro
What fills an agent's context window, as a living treemap
Agent Handoff: A task passed from agent to agent like a relay – at every handoff what went along to the next one, and what got lost on the way
Agent Handoff Pro
A task passed from agent to agent like a relay

Contents

Why affectUI

  • Made for agents. Components for what agents actually do: trees of sub-agents, tool calls, traces with cost per step, handoffs, approvals and the context window – live states, not static mockups.
  • Agent-ready. An MCP server and llms.txt let Claude Code, Cursor, Codex or v0 find and add items for you.
  • One file each. Every component is a single .tsx file with its styles inside. Nothing to configure, no CSS framework required.
  • Motion that feels finished. Morphs, staggered reveals, rolling numbers and smooth state changes, and all of it respects prefers-reduced-motion.
  • Dark mode built in. Each item switches when an ancestor has the class dark or data-theme="dark".
  • Accessible by default. Real buttons, labels, keyboard support and live regions where they matter.
  • Responsive. Container queries, so items adapt to the space they get, not just the window.

Install

Requirements

  • React 19, with or without TypeScript
  • Any React setup: Next.js, Vite, Remix or plain React
  • The @/* import alias if you use the shadcn CLI (Next.js and shadcn set it up by default)

With the shadcn CLI

Every item has its own registry URL. Run the command from its page on affectui.com or from the tables below:

npx shadcn@latest add https://www.affectui.com/r/reaction-bar.json

The file lands in components/ui, ready to import.

Prefer short names? Register the namespace once in components.json:

{
  "registries": {
    "@affectui": "https://www.affectui.com/r/{name}.json"
  }
}
npx shadcn@latest add @affectui/reaction-bar

Copy and paste

Open the item's folder in this repository (components/, illustrations/ or motion/), copy the file into your project and import it. That's all it takes.

Usage

import { ReactionBar } from "@/components/ui/reaction-bar";

export function PostActions({ post }) {
  return (
    <ReactionBar
      reactions={{ like: { count: post.likes, active: post.liked }, comment: { count: post.comments } }}
      onReact={(key, state) => api.react(post.id, key, state.active)}
    />
  );
}

Props, keyboard support and accessibility notes for every item are on its page, e.g. Reaction Bar.

Use it with AI tools

affectUI is agent-ready. Connect the MCP server once and Claude Code, Cursor, VS Code or Codex can search every item, read its docs and add it for you:

claude mcp add --transport http affectui https://www.affectui.com/api/mcp

Other clients: add { "mcpServers": { "affectui": { "url": "https://www.affectui.com/api/mcp" } } } to their MCP config. Without any setup, point your assistant at llms.txt or llms-full.txt. Every page on affectui.com also has a Copy prompt bar for Claude, ChatGPT / Codex, Cursor and v0. Setup details: Using with AI.

Components

Name What it is Install
Button Primary, secondary, ghost and destructive buttons with icons, sizes and a shimmering loading state npx shadcn@latest add https://www.affectui.com/r/button-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/button.json
Change Summary What moved since last time npx shadcn@latest add https://www.affectui.com/r/change-summary-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/change-summary.json
Comment Thread One comment with replies npx shadcn@latest add https://www.affectui.com/r/comment-thread-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/comment-thread.json
Decision Inbox Open decisions with two quick answers each npx shadcn@latest add https://www.affectui.com/r/decision-inbox-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/decision-inbox.json
Email Draft Agent-written email for review npx shadcn@latest add https://www.affectui.com/r/email-draft-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/email-draft.json
Filter Menu Grouped filters with removable chips, collapsible checkbox groups, Clear all and full keyboard control npx shadcn@latest add https://www.affectui.com/r/filter-menu-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/filter-menu.json
Message Actions The quiet bar under an AI message npx shadcn@latest add https://www.affectui.com/r/message-actions-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/message-actions.json
Notification Stack Notice cards stacked behind each other npx shadcn@latest add https://www.affectui.com/r/notification-stack-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/notification-stack.json
OTP Input The verification code field done right npx shadcn@latest add https://www.affectui.com/r/otp-input-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/otp-input.json
Profile Menu Account card with the signed-in user, menu actions and profile setup progress npx shadcn@latest add https://www.affectui.com/r/profile-menu-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/profile-menu.json
Progress Tracker Onboarding checklist with an animated progress bar, ticks that draw themselves and auto play npx shadcn@latest add https://www.affectui.com/r/progress-tracker-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/progress-tracker.json
Reaction Bar Like, comment, repost and share in one pill npx shadcn@latest add https://www.affectui.com/r/reaction-bar-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/reaction-bar.json
Segmented Control Switch between two to six options npx shadcn@latest add https://www.affectui.com/r/segmented-control-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/segmented-control.json
Smart Recommendation Suggestion card with a confidence signal, alternatives to switch to and accept with undo npx shadcn@latest add https://www.affectui.com/r/smart-recommendation-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/smart-recommendation.json
Thinking Loader A small working pill for AI replies npx shadcn@latest add https://www.affectui.com/r/thinking-loader-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/thinking-loader.json
Tips Panel Grid of short tips with one action each npx shadcn@latest add https://www.affectui.com/r/tips-panel-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/tips-panel.json
Tool Call Card An agent's tool call in one line npx shadcn@latest add https://www.affectui.com/r/tool-call-card-clean.json
Classic style: npx shadcn@latest add https://www.affectui.com/r/tool-call-card.json

Blocks

Name What it is Install
Logo Marquee The endless “Trusted by” strip npx shadcn@latest add https://www.affectui.com/r/logo-marquee.json
Testimonial Wall The landing-page wall of quotes npx shadcn@latest add https://www.affectui.com/r/testimonial-wall.json

Illustrations

Name What it is Install
Agent Team A prompt types itself and branches out into three agents, each with a role and overlapping tool logos npx shadcn@latest add https://www.affectui.com/r/agent-team.json
Cover Flow Browse covers in 3D npx shadcn@latest add https://www.affectui.com/r/cover-flow.json
DACH Region DACH map with fading neighbours and a pastel band along the border, switchable to the US, China, India, Brazil or Japan npx shadcn@latest add https://www.affectui.com/r/region-dach.json
Empty Calendar Stack of calendar cards marked empty, fanning out on hover npx shadcn@latest add https://www.affectui.com/r/empty-calendar.json
Enrichment Orbit Grok tile inside two rings with comets and data nodes orbiting around it npx shadcn@latest add https://www.affectui.com/r/enrichment-orbit.json
Frost Cloud A frosted white cloud with eyes cut out of it, on a red-orange or blue sky npx shadcn@latest add https://www.affectui.com/r/frost-cloud.json
Ghosted Chat Unanswered chat messages marked as read, with a thumbs-down reply on hover npx shadcn@latest add https://www.affectui.com/r/ghosted-chat.json
Glow Cloud A glowing cloud with eyes in blue or red-orange npx shadcn@latest add https://www.affectui.com/r/glow-cloud.json
Integration Beam Your product between the tools it connects npx shadcn@latest add https://www.affectui.com/r/integration-beam.json
Integration Grid Honeycomb-like wall of integration logos around a bright centre tile with your product mark, fading out toward the edges npx shadcn@latest add https://www.affectui.com/r/integration-grid.json
Layer Stack Isometric stack of five layers with a list beside it npx shadcn@latest add https://www.affectui.com/r/layer-stack.json
Lead Sourcing ChatGPT tile linked to Gmail and Grok, with a shine running along the connection npx shadcn@latest add https://www.affectui.com/r/lead-sourcing.json
Logo Cluster Your mark on a white disc in the middle npx shadcn@latest add https://www.affectui.com/r/logo-cluster.json
Model Wheel AI model names on a turning drum npx shadcn@latest add https://www.affectui.com/r/model-wheel.json
Side Folder Glassy blue folder on its side, documents sliding out to the right as the pocket swings open on hover npx shadcn@latest add https://www.affectui.com/r/side-folder.json
Tab Overload Overlapping browser windows where the highlight follows the hovered tab npx shadcn@latest add https://www.affectui.com/r/tab-overload.json
Team Invite Connected teammates npx shadcn@latest add https://www.affectui.com/r/team-invite.json

Motion

Name What it is Install
Grid Background A fine line grid that drifts slowly behind your content and fades out towards the edges npx shadcn@latest add https://www.affectui.com/r/grid-background.json
Number Ticker Odometer-style numbers npx shadcn@latest add https://www.affectui.com/r/number-ticker.json
Shimmer Loader Skeleton blocks that share one soft light sweep, plus shimmering text for “Thinking…” states npx shadcn@latest add https://www.affectui.com/r/shimmer-loader.json
Text Reveal Text that arrives word by word or letter by letter npx shadcn@latest add https://www.affectui.com/r/text-reveal.json

affectUI Pro

87 more components, screens, blocks and illustrations, including the agent components above (Agent Tree, Agent Inbox, Trace Waterfall, Context Map, Agent Handoff and more), full app screens and blocks, are part of affectUI Pro: a one-time purchase with lifetime updates. Their source is not in this repository.

Contributing

Found a bug or missing a component? Open an issue. The files here are synced from the affectUI source on every release, so fixes land through issues rather than pull requests. See CONTRIBUTING.md.

License

Everything in this repository is released under the MIT license. Use it in personal and commercial projects.
Logos shown in previews belong to their owners and are only sample content.


If affectUI saves you time, a ⭐ helps others find it.

Made by Flo

Yorumlar (0)

Sonuc bulunamadi