BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/SmoothUI Registry/ai-core

Ai Core

smoothui-registry/ai-core
FreeComponent

Shared AI state contract, per-state motion presets and microphone amplitude hooks for SmoothUI AI components.

Install it

npx shadcn@latest add https://www.smoothui.dev/r/ai-core.json

Source

index.tsxwww.smoothui.dev/r/ai-core.json · first 6 KB
1"use client";
2
3import {
4 type MotionValue,
5 useAnimationFrame,
6 useMotionValue,
7} from "motion/react";
8import { useCallback, useEffect, useRef, useState } from "react";
9
10/**
11 * The single state contract shared by every SmoothUI AI component.
12 *
13 * Passing the same value to an orb, a prompt input and a tool card makes the
14 * whole surface move as one organism instead of a set of independent widgets.
15 */
16export type AIState =
17 | "idle"
18 | "listening"
19 | "thinking"
20 | "streaming"
21 | "done"
22 | "error";
23
24/**
25 * A behavioural hint each component expresses **in its own material**.
26 *
27 * Deliberately not an overlay. Bolting one shared graphic onto every orb makes
28 * four different materials look like the same widget wearing a costume, and it
29 * pushes literal iconography (a checkmark, a warning ring) onto pieces that are
30 * decorative by nature. Instead: a shader warps, a canvas ring loses harmonics,
31 * a character changes expression. Same vocabulary, different flesh.
32 */
33export type AIStateMotif =
34 | "breathe"
35 | "receive"
36 | "scan"
37 | "pulse"
38 | "ping"
39 | "fault";
40
41/** Semantic accent applied on top of the component's own palette. */
42export type AIStateAccent = "success" | "danger" | null;
43
44/** Motion parameters a component reads to render a given {@link AIState}. */
45export type AIStateMotion = {
46 /** Semantic colour override, so status is carried by hue and not only motion. */
47 accent: AIStateAccent;
48 /** Outer bloom strength, 0–1. */
49 glow: number;
50 /** Palette hue rotation in degrees. Small shifts read as a mood change. */
51 hueRotate: number;
52 /** Overall motion energy, 0–1. Scales ambient loops and displacement. */
53 intensity: number;
54 /** Behavioural hint; each component expresses it in its own material. */
55 motif: AIStateMotif;
56 /** Seconds between discrete pulses, for rhythmic behaviour. */
57 pulseSeconds: number;
58 /**
59 * How far a shader's domain warp pushes the field, 0–1. Low values read as a
60 * calm surface; high values churn without the silhouette growing.
61 */
62 turbulence: number;
63 /** Revolutions per second of the noise field — the slow tumble. */
64 tumble: number;
65 /** How much external amplitude reaches the surface, 0 = ignore it. */
66 reactivity: number;
67 /** Chroma multiplier. Below 1 desaturates. */
68 saturation: number;
69 /** Resting scale of the surface, 1 = no change. */
70 scale: number;
71 /** Ambient loop speed multiplier, 1 = the component's base tempo. */
72 speed: number;
73};
74
75/**
76// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • index.tsx

Facts

Registry
SmoothUI Registry
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

www.smoothui.dev educlopez/smoothui on GitHub Raw registry item This item as JSON

More from SmoothUI Registry

All 178 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Agent Avataragent-avatarSmoothUI RegistryComponentsFreeno deps
Ai Approvalai-approvalSmoothUI RegistryComponentsFree2 deps
Ai Artifactai-artifactSmoothUI RegistryComponentsFree2 deps
Ai Branchai-branchSmoothUI RegistryComponentsFree2 deps
Ai Citationai-citationSmoothUI RegistryComponentsFree2 deps
Ai Context Meterai-context-meterSmoothUI RegistryComponentsFree2 deps
Ai Conversationai-conversationSmoothUI RegistryComponentsFree2 deps
Ai Diffai-diffSmoothUI RegistryComponentsFree2 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