Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
/* Examples gallery (/examples) */
.exg-shell {
max-width: 1080px;
margin: 0 auto;
padding: 48px 20px 96px;
font-family: var(--font-body, system-ui, sans-serif);
}
.exg-hero {
padding: 40px 0 8px;
}
.exg-kicker {
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 12px;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text-dim, #9a9aa4);
}
.exg-live-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: #38d39f;
box-shadow: 0 0 0 0 rgba(56, 211, 159, 0.5);
animation: exg-pulse 2.4s infinite;
}
@keyframes exg-pulse {
0% {
box-shadow: 0 0 0 0 rgba(56, 211, 159, 0.45);
}
70% {
box-shadow: 0 0 0 8px rgba(56, 211, 159, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(56, 211, 159, 0);
}
}
.exg-title {
font-family: var(--font-display, inherit);
font-size: clamp(32px, 5vw, 48px);
line-height: 1.05;
margin: 14px 0 12px;
letter-spacing: -0.02em;
}
.exg-title em {
font-style: normal;
background: linear-gradient(90deg, #7c8cff, #38d39f);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.exg-sub {
max-width: 62ch;
color: var(--text-dim, #9a9aa4);
line-height: 1.65;
}
.exg-sub a {
color: inherit;
text-decoration: underline;
text-underline-offset: 3px;
}
.exg-sub a:hover,
.exg-docs a:hover {
color: var(--text, #ececf2);
}
.exg-grid {
display: grid;
gap: 24px;
margin-top: 40px;
}
/* Lane nav: a sticky jump list over the four capability lanes. Every card stays
in the document, so deep links and in-page search keep working. */
/* Filter bar: text + tag chips over every lane. */
.exg-filter {
margin-top: 40px;
display: grid;
gap: 12px;
}
.exg-filter-field {
display: flex;
gap: 8px;
}
.exg-filter-input {
flex: 1;
min-width: 0;
font: inherit;
font-size: 15px;
padding: 11px 14px;
border-radius: 10px;
border: 1px solid var(--border, #26262e);
background: var(--surface, rgba(255, 255, 255, 0.02));
color: var(--text, #ececf2);
}
.exg-filter-input::placeholder {
color: var(--text-dim, #9a9aa4);
}
.exg-filter-input:focus-visible {
outline: 2px solid #7c8cff;
outline-offset: 2px;
border-color: transparent;
}
.exg-filter-clear {
appearance: none;
font: inherit;
font-size: 14px;
padding: 0 16px;
border-radius: 10px;
cursor: pointer;
border: 1px solid var(--border, #26262e);
background: transparent;
color: var(--text, #ececf2);
}
.exg-filter-clear:hover {
border-color: var(--border-strong, #3a3a46);
background: var(--surface, rgba(255, 255, 255, 0.04));
}
.exg-filter-clear:focus-visible {
outline: 2px solid #7c8cff;
outline-offset: 2px;
}
.exg-chips {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.exg-chip {
appearance: none;
display: inline-flex;
align-items: center;
gap: 6px;
font: inherit;
font-size: 13px;
padding: 5px 12px;
border-radius: 999px;
cursor: pointer;
border: 1px solid var(--border, #26262e);
background: transparent;
color: var(--text-dim, #9a9aa4);
transition:
border-color var(--duration-fast) var(--ease-standard),
color var(--duration-fast) var(--ease-standard),
background var(--duration-fast) var(--ease-standard);
}
.exg-chip:hover {
border-color: #7c8cff;
color: var(--text, #ececf2);
}
.exg-chip:focus-visible {
outline: 2px solid #7c8cff;
outline-offset: 2px;
}
.exg-chip[aria-pressed='true'] {
background: var(--text, #ececf2);
border-color: transparent;
color: var(--bg, #0a0a0a);
}
.exg-chip-count {
font-size: 11px;
font-variant-numeric: tabular-nums;
opacity: 0.65;
}
.exg-empty {
margin: 32px 0 0;
padding: 28px;
border: 1px dashed var(--border, #26262e);
border-radius: 14px;
text-align: center;
color: var(--text-dim, #9a9aa4);
}
/* Announced to screen readers, never painted. */
.exg-sr {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.exg-lane-nav {
position: sticky;
top: 0;
z-index: 2;
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 4px;
padding: 12px 0;
background: linear-gradient(to bottom, var(--bg, #0a0a0a) 72%, rgba(10, 10, 10, 0));
backdrop-filter: blur(6px);
/* The band spans the column and sits over whatever scrolls under it,
including a running example. Only the pills themselves take clicks. */
pointer-events: none;
}
.exg-lane-link {
pointer-events: auto;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
border: 1px solid var(--border, #26262e);
border-radius: 999px;
color: var(--text, #ececf2);
text-decoration: none;
font-size: 14px;
transition:
border-color var(--duration-fast) var(--ease-standard),
background var(--duration-fast) var(--ease-standard),
transform var(--duration-instant) var(--ease-standard);
}
.exg-lane-link:hover {
border-color: #7c8cff;
background: var(--surface, rgba(255, 255, 255, 0.04));
}
.exg-lane-link:active {
transform: translateY(1px);
}
.exg-lane-link:focus-visible {
outline: 2px solid #7c8cff;
outline-offset: 2px;
}
.exg-lane-link-count {
font-size: 12px;
font-variant-numeric: tabular-nums;
color: var(--text-dim, #9a9aa4);
border: 1px solid var(--border, #26262e);
border-radius: 999px;
padding: 1px 7px;
}
.exg-lane {
margin-top: 56px;
scroll-margin-top: 72px;
}
.exg-lane-head {
border-top: 1px solid var(--border, #26262e);
padding-top: 28px;
}
.exg-lane-label {
margin: 0;
font-size: 12px;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #7c8cff;
}
.exg-lane-title {
font-family: var(--font-display, inherit);
font-size: clamp(24px, 3.4vw, 32px);
line-height: 1.15;
letter-spacing: -0.02em;
margin: 10px 0 10px;
}
.exg-lane-blurb {
margin: 0;
max-width: 68ch;
color: var(--text-dim, #9a9aa4);
line-height: 1.65;
}
.exg-card {
scroll-margin-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
.exg-lane-link,
.exg-btn {
transition: none;
}
}
.exg-card {
border: 1px solid var(--border, #26262e);
border-radius: 16px;
padding: 24px;
background: var(--surface, rgba(255, 255, 255, 0.02));
transition:
border-color var(--duration-base) var(--ease-standard),
transform var(--duration-base) var(--ease-standard);
}
.exg-card:hover {
border-color: var(--border-strong, #3a3a46);
}
.exg-card-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.exg-card-title {
font-size: 20px;
margin: 0;
letter-spacing: -0.01em;
}
.exg-tags {
display: flex;
gap: 6px;
}
.exg-tag {
font-size: 11px;
letter-spacing: 0.08em;
text-transform: uppercase;
padding: 3px 8px;
border-radius: 999px;
border: 1px solid var(--border, #26262e);
color: var(--text-dim, #9a9aa4);
}
.exg-blurb {
color: var(--text-dim, #9a9aa4);
line-height: 1.6;
margin: 10px 0 16px;
max-width: 72ch;
}
.exg-pre {
margin: 0;
padding: 16px;
border-radius: 12px;
border: 1px solid var(--border, #26262e);
background: var(--code-bg, #101016);
overflow-x: auto;
font-size: 12.5px;
line-height: 1.55;
tab-size: 2;
max-height: 340px;
overflow-y: auto;
}
.exg-actions {
display: flex;
gap: 10px;
margin-top: 14px;
flex-wrap: wrap;
}
.exg-btn {
appearance: none;
border: 1px solid var(--border, #26262e);
background: transparent;
color: var(--text, #ececf2);
font: inherit;
font-size: 14px;
padding: 9px 16px;
border-radius: 10px;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
transition:
background var(--duration-fast) var(--ease-standard),
border-color var(--duration-fast) var(--ease-standard),
transform var(--duration-instant) var(--ease-standard);
}
.exg-btn:hover {
border-color: var(--border-strong, #3a3a46);
background: var(--surface, rgba(255, 255, 255, 0.04));
}
.exg-btn:active {
transform: translateY(1px);
}
.exg-btn:focus-visible {
outline: 2px solid #7c8cff;
outline-offset: 2px;
}
.exg-btn--primary {
background: var(--text, #ececf2);
color: var(--bg, #0a0a0a);
border-color: transparent;
}
.exg-btn--primary:hover {
background: #fff;
color: #000;
}
.exg-btn--link {
border-style: dashed;
}
.exg-docs {
margin: 14px 0 0;
font-size: 13px;
color: var(--text-dim, #9a9aa4);
}
.exg-docs a {
color: inherit;
text-decoration: underline;
text-underline-offset: 3px;
}
.exg-stage {
margin-top: 16px;
}
.exg-frame {
width: 100%;
border: 1px solid var(--border, #26262e);
border-radius: 12px;
background: var(--bg-0);
display: block;
}
.exg-more {
margin-top: 56px;
border-top: 1px solid var(--border, #26262e);
padding-top: 32px;
}
.exg-more h2 {
font-size: 22px;
margin: 0 0 8px;
}
.exg-more p {
color: var(--text-dim, #9a9aa4);
line-height: 1.65;
max-width: 72ch;
}
.exg-more-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 14px;
margin-top: 18px;
}
.exg-more-card {
display: block;
border: 1px solid var(--border, #26262e);
border-radius: 12px;
padding: 16px;
text-decoration: none;
color: inherit;
transition:
border-color var(--duration-fast) var(--ease-standard),
transform var(--duration-fast) var(--ease-standard);
}
.exg-more-card:hover {
border-color: var(--border-strong, #3a3a46);
transform: translateY(-2px);
}
.exg-more-card:focus-visible {
outline: 2px solid #7c8cff;
outline-offset: 2px;
}
.exg-more-card strong {
display: block;
margin-bottom: 6px;
}
.exg-more-card span {
font-size: 13px;
color: var(--text-dim, #9a9aa4);
line-height: 1.5;
}
/* The generated half of the page: every example found by scanning the repo.
Styled to sit under the curated snippets without competing with them, so the
cards are quieter than .exg-card and the grid is denser. */
.exi-toolbar {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
margin-top: 20px;
}
.exi-search-wrap {
position: relative;
flex: 1 1 240px;
max-width: 380px;
}
.exi-search-icon {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
color: var(--text-dim, #9a9aa4);
pointer-events: none;
}
.exi-search {
width: 100%;
padding: 9px 12px 9px 34px;
border-radius: 10px;
border: 1px solid var(--border, #26262e);
background: var(--surface, #131319);
color: var(--text, #ececf1);
font: inherit;
font-size: 14px;
outline: none;
transition:
border-color var(--duration-fast) var(--ease-standard),
box-shadow var(--duration-fast) var(--ease-standard);
}
.exi-search:hover {
border-color: var(--border-strong, #3a3a46);
}
.exi-search:focus-visible {
border-color: #7c8cff;
box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.22);
}
.exi-count {
margin-left: auto;
font-size: 13px;
color: var(--text-dim, #9a9aa4);
font-variant-numeric: tabular-nums;
}
.exi-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 16px 0 4px;
}
.exi-chip {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 7px 13px;
border-radius: 999px;
cursor: pointer;
border: 1px solid var(--border, #26262e);
background: transparent;
color: var(--text-dim, #9a9aa4);
font: inherit;
font-size: 13px;
transition:
border-color var(--duration-fast) var(--ease-standard),
color var(--duration-fast) var(--ease-standard),
background var(--duration-fast) var(--ease-standard);
}
.exi-chip:hover {
border-color: var(--border-strong, #3a3a46);
color: var(--text, #ececf1);
}
.exi-chip:focus-visible {
outline: 2px solid #7c8cff;
outline-offset: 2px;
}
.exi-chip.is-active {
background: var(--text, #ececf1);
border-color: transparent;
color: var(--bg, #0b0b0f);
font-weight: 600;
}
.exi-chip-n {
font-size: 11px;
opacity: 0.7;
font-variant-numeric: tabular-nums;
}
.exi-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 14px;
margin-top: 18px;
}
.exi-card {
display: flex;
flex-direction: column;
gap: 9px;
border: 1px solid var(--border, #26262e);
border-radius: 12px;
padding: 16px;
transition:
border-color var(--duration-fast) var(--ease-standard),
transform var(--duration-fast) var(--ease-standard);
}
.exi-card:hover {
border-color: var(--border-strong, #3a3a46);
transform: translateY(-2px);
}
.exi-card:focus-within {
border-color: var(--border-strong, #3a3a46);
}
.exi-card-top {
display: flex;
align-items: center;
gap: 8px;
}
.exi-kind {
font-size: 11px;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--text-dim, #9a9aa4);
}
.exi-owner {
margin-left: auto;
font-size: 11px;
color: var(--text-dim, #9a9aa4);
border: 1px solid var(--border, #26262e);
border-radius: 999px;
padding: 2px 9px;
}
.exi-card-title {
margin: 0;
font-size: 16px;
line-height: 1.3;
}
.exi-card-title a {
color: inherit;
text-decoration: none;
}
.exi-card-title a:hover {
text-decoration: underline;
}
.exi-card-title a:focus-visible {
outline: 2px solid #7c8cff;
outline-offset: 3px;
border-radius: 4px;
}
.exi-card-desc {
margin: 0;
font-size: 13px;
line-height: 1.55;
color: var(--text-dim, #9a9aa4);
}
.exi-files {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 0;
padding: 0;
}
.exi-files code {
font-size: 11.5px;
color: var(--text-dim, #9a9aa4);
background: var(--code-bg, #0f0f14);
border: 1px solid var(--border, #26262e);
border-radius: 5px;
padding: 2px 7px;
}
.exi-more {
font-size: 11.5px;
color: var(--text-dim, #9a9aa4);
align-self: center;
}
.exi-run {
display: flex;
align-items: center;
gap: 8px;
background: var(--code-bg, #0f0f14);
border: 1px solid var(--border, #26262e);
border-radius: 10px;
padding: 7px 7px 7px 11px;
}
.exi-run code {
flex: 1;
min-width: 0;
font-size: 12px;
color: var(--text, #ececf1);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.exi-copy {
flex: none;
cursor: pointer;
font: inherit;
font-size: 12px;
padding: 4px 10px;
border-radius: 6px;
border: 1px solid var(--border, #26262e);
background: transparent;
color: var(--text-dim, #9a9aa4);
transition:
color var(--duration-fast) var(--ease-standard),
border-color var(--duration-fast) var(--ease-standard);
}
.exi-copy:hover {
color: var(--text, #ececf1);
border-color: var(--border-strong, #3a3a46);
}
.exi-copy:focus-visible {
outline: 2px solid #7c8cff;
outline-offset: 2px;
}
.exi-copy.is-copied {
color: #38d39f;
border-color: #38d39f;
}
.exi-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
margin-top: auto;
padding-top: 4px;
}
.exi-btn {
display: inline-flex;
align-items: center;
padding: 6px 13px;
border-radius: 9px;
font-size: 13px;
font-weight: 600;
text-decoration: none;
cursor: pointer;
font-family: inherit;
border: 1px solid transparent;
background: var(--text, #ececf1);
color: var(--bg, #0b0b0f);
transition:
filter var(--duration-fast) var(--ease-standard),
border-color var(--duration-fast) var(--ease-standard);
}
.exi-btn:hover {
filter: brightness(0.92);
}
.exi-btn:focus-visible {
outline: 2px solid #7c8cff;
outline-offset: 2px;
}
.exi-btn--ghost {
background: transparent;
color: var(--text, #ececf1);
border-color: var(--border, #26262e);
}
.exi-btn--ghost:hover {
filter: none;
border-color: var(--border-strong, #3a3a46);
}
.exi-path {
margin-left: auto;
font-size: 11px;
color: var(--text-dim, #9a9aa4);
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.exi-skeleton {
height: 180px;
border-radius: 12px;
border: 1px solid var(--border, #26262e);
background: linear-gradient(
100deg,
var(--surface, #131319) 30%,
var(--code-bg, #0f0f14) 50%,
var(--surface, #131319) 70%
);
background-size: 200% 100%;
animation: exi-shimmer 1.3s infinite linear;
}
@keyframes exi-shimmer {
to {
background-position: -200% 0;
}
}
.exi-state {
text-align: center;
padding: 48px 20px;
color: var(--text-dim, #9a9aa4);
}
.exi-state h3 {
color: var(--text, #ececf1);
margin: 0 0 8px;
font-size: 18px;
}
.exi-state p {
max-width: 54ch;
margin: 0 auto 16px;
}
.exi-subhead {
font-size: 15px;
margin: 40px 0 0;
color: var(--text-dim, #9a9aa4);
font-weight: 600;
letter-spacing: 0.02em;
}
.exi-sr {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
@media (prefers-reduced-motion: reduce) {
.exi-skeleton {
animation: none;
}
.exi-card:hover,
.exg-more-card:hover {
transform: none;
}
}
@media (max-width: 640px) {
.exg-shell {
padding-top: 24px;
}
.exg-card {
padding: 18px;
}
.exi-grid {
grid-template-columns: 1fr;
}
.exi-count {
margin-left: 0;
}
.exi-path {
margin-left: 0;
width: 100%;
}
}
html[data-theme='light'] .exi-card,
html[data-theme='light'] .exi-search {
background: #fff;
border-color: #e3e3ea;
}
html[data-theme='light'] .exi-run,
html[data-theme='light'] .exi-files code {
background: #f5f5f8;
border-color: #e3e3ea;
}
html[data-theme='light'] .exg-pre {
background: #f5f5f8;
border-color: #e3e3ea;
}
html[data-theme='light'] .exg-card {
background: #fff;
border-color: #e3e3ea;
}
html[data-theme='light'] .exg-btn--primary {
background: #111;
color: #fff;
}
.exg-lane .exg-grid {
margin-top: 24px;
}