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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Component Preview</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
}
body {
height: 100%;
overflow: auto;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #000000;
color: #ffffff;
}
.component-wrapper {
width: 100%;
height: 100%;
padding: 0;
box-sizing: border-box;
overflow: auto;
}
</style>
</head>
<body>
<div class="component-wrapper">
<html><head></head><body><div style="
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #000; /* optional, just for visibility */
"><a href="#" class="btn-wrapper" style="--dot-size: 8px; --line-weight: 1px; --line-distance: 0.8rem 1rem; --animation-speed: 0.35s; --dot-color: #fffa; --line-color: #fffa; --grid-color: #fff3; position: relative; display: inline-flex; justify-content: center; align-items: center; width: auto; height: auto; padding: var(--line-distance); background-color: rgba(0, 0, 0, 0); user-select: none">
<style>
.btn-wrapper::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: inherit;
pointer-events: none;
background-color: #0000;
background-image: repeating-linear-gradient(45deg, var(--grid-color) 0 1px, transparent 2px 5px);
opacity: 0;
z-index: -1;
}
.btn-wrapper:has(.btn:hover)::after {
animation: opacity-anim calc(var(--animation-speed) * 4) ease-in-out forwards;
}
@keyframes opacity-anim {
80% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.btn-wrapper .btn {
position: relative;
display: flex;
justify-content: center;
align-items: center;
padding: 0.8rem 1.25rem;
background-color: #fff0;
border: 1px solid var(--grid-color);
color: #fffd;
font-family: "Inter", sans-serif;
letter-spacing: -0.01em;
font-size: 1rem;
font-weight: 600;
text-transform: capitalize;
border-radius: 6px;
cursor: pointer;
transition: transform .2s ease-in-out, letter-spacing .2s ease-in-out;
}
.btn-wrapper .btn:hover {
background-color: #25358b;
color: #fff;
transform: scale(1.05);
letter-spacing: .06em;
}
.btn-wrapper .btn:active {
background-color: #25358b;
transform: scale(.98);
letter-spacing: .02em;
}
.btn-wrapper .btn-svg {
margin-left: .5rem;
height: 24px;
stroke-width: 1;
stroke-linecap: round;
stroke-linejoin: round;
stroke: #fff4;
fill: #fff2;
transition: all .2s ease-in-out;
}
.btn-wrapper .btn:hover .btn-svg {
stroke: #fffa;
fill: #fff3;
}
.btn-wrapper .dot {
position: absolute;
width: var(--dot-size);
aspect-ratio: 1;
border-radius: 2px;
background-color: var(--dot-color);
transition: all .3s ease-in-out;
opacity: 0;
}
.btn-wrapper:has(.btn:hover) .dot.top.left {
top: 50%;
left: 20%;
animation: move-top-left var(--animation-speed) ease-in-out forwards;
}
@keyframes move-top-left {
90% {
opacity: .6;
}
100% {
top: calc(var(--dot-size) * -0.5);
left: calc(var(--dot-size) * -0.5);
opacity: 1;
}
}
.btn-wrapper:has(.btn:hover) .dot.top.right {
top: 50%;
right: 20%;
animation: move-top-right var(--animation-speed) ease-in-out forwards;
animation-delay: calc(var(--animation-speed)*.6);
}
@keyframes move-top-right {
80% {
opacity: .6;
}
100% {
top: calc(var(--dot-size) * -0.5);
right: calc(var(--dot-size) * -0.5);
opacity: 1;
}
}
.btn-wrapper:has(.btn:hover) .dot.bottom.right {
bottom: 50%;
right: 20%;
animation: move-bottom-right var(--animation-speed) ease-in-out forwards;
animation-delay: calc(var(--animation-speed)*1.2);
}
@keyframes move-bottom-right {
80% {
opacity: .6;
}
100% {
bottom: calc(var(--dot-size) * -0.5);
right: calc(var(--dot-size) * -0.5);
opacity: 1;
}
}
.btn-wrapper:has(.btn:hover) .dot.bottom.left {
bottom: 50%;
left: 20%;
animation: move-bottom-left var(--animation-speed) ease-in-out forwards;
animation-delay: calc(var(--animation-speed)*1.8);
}
@keyframes move-bottom-left {
80% {
opacity: .6;
}
100% {
bottom: calc(var(--dot-size) * -0.5);
left: calc(var(--dot-size) * -0.5);
opacity: 1;
}
}
.btn-wrapper .line {
position: absolute;
transition: all .3s ease-in-out;
}
.btn-wrapper .line.horizontal {
height: var(--line-weight);
width: 100%;
background-image: repeating-linear-gradient(90deg, #0000 0 calc(var(--line-weight)*2), var(--line-color) calc(var(--line-weight)*2) calc(var(--line-weight)*4));
}
.btn-wrapper .line.top {
top: calc(var(--line-weight)*-0.5);
transform-origin: top left;
transform: rotate(5deg) scaleX(0);
}
.btn-wrapper:has(.btn:hover) .line.top {
animation: draw-top var(--animation-speed) ease-in-out forwards;
animation-delay: calc(var(--animation-speed)*.8);
}
@keyframes draw-top {
100% {
transform: rotate(0deg) scaleX(1);
}
}
.btn-wrapper .line.bottom {
bottom: calc(var(--line-weight)*-0.5);
transform-origin: bottom right;
transform: rotate(5deg) scaleX(0);
}
.btn-wrapper:has(.btn:hover) .line.bottom {
animation: draw-bottom var(--animation-speed) ease-in-out forwards;
animation-delay: calc(var(--animation-speed)*2);
}
@keyframes draw-bottom {
100% {
transform: rotate(0deg) scaleX(1);
}
}
.btn-wrapper .line.vertical {
width: var(--line-weight);
height: 100%;
background-image: repeating-linear-gradient(0deg, #0000 0 calc(var(--line-weight)*2), var(--line-color) calc(var(--line-weight)*2) calc(var(--line-weight)*4));
}
.btn-wrapper .line.left {
left: calc(var(--line-weight)*-0.5);
transform-origin: bottom left;
transform: rotate(0deg) scaleY(0);
}
.btn-wrapper:has(.btn:hover) .line.left {
animation: draw-left var(--animation-speed) ease-in-out forwards;
animation-delay: calc(var(--animation-speed)*2.4);
}
@keyframes draw-left {
100% {
transform: rotate(0deg) scaleY(1);
}
}
.btn-wrapper .line.right {
right: calc(var(--line-weight)*-0.5);
transform-origin: top right;
transform: rotate(5deg) scaleY(0);
}
.btn-wrapper:has(.btn:hover) .line.right {
animation: draw-right var(--animation-speed) ease-in-out forwards;
animation-delay: calc(var(--animation-speed)*1.4);
}
@keyframes draw-right {
100% {
transform: rotate(0deg) scaleY(1);
}
}
</style>
<div class="line horizontal top"></div>
<div class="line vertical right"></div>
<div class="line horizontal bottom"></div>
<div class="line vertical left"></div>
<div class="dot top left"></div>
<div class="dot top right"></div>
<div class="dot bottom right"></div>
<div class="dot bottom left"></div>
<button class="btn bg-[#ffffff]">
<span class="btn-text">Start Creating</span>
<svg class="btn-svg" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M17.6744 11.4075L15.7691 17.1233C15.7072 17.309 15.5586 17.4529 15.3709 17.5087L3.69348 20.9803C3.22819 21.1186 2.79978 20.676 2.95328 20.2155L6.74467 8.84131C6.79981 8.67588 6.92419 8.54263 7.08543 8.47624L12.472 6.25822C12.696 6.166 12.9535 6.21749 13.1248 6.38876L17.5294 10.7935C17.6901 10.9542 17.7463 11.1919 17.6744 11.4075Z" class=""></path>
<path d="M3.2959 20.6016L9.65986 14.2376" class=""></path>
<path d="M17.7917 11.0557L20.6202 8.22724C21.4012 7.44619 21.4012 6.17986 20.6202 5.39881L18.4989 3.27749C17.7178 2.49645 16.4515 2.49645 15.6704 3.27749L12.842 6.10592" class=""></path>
<path d="M11.7814 12.1163C11.1956 11.5305 10.2458 11.5305 9.66004 12.1163C9.07426 12.7021 9.07426 13.6519 9.66004 14.2376C10.2458 14.8234 11.1956 14.8234 11.7814 14.2376C12.3671 13.6519 12.3671 12.7021 11.7814 12.1163Z" class=""></path>
</svg>
</button>
</a></div></body></html>
</div>
<script>
(function() {
function checkAndCenter() {
// Use double requestAnimationFrame to ensure DOM is fully painted and layout is stable
requestAnimationFrame(function() {
requestAnimationFrame(function() {
const wrapper = document.querySelector('.component-wrapper');
if (!wrapper) return;
// Get all child elements
const children = Array.from(wrapper.children);
if (children.length === 0) return;
// Temporarily override wrapper styles to shrink-wrap for measurement
// Set inline styles to shrink-wrap (inline styles override CSS)
wrapper.style.display = 'inline-block';
wrapper.style.width = 'auto';
wrapper.style.height = 'auto';
wrapper.style.overflow = 'visible';
wrapper.style.boxSizing = 'content-box';
// Force multiple reflows to ensure styles are fully applied
void wrapper.offsetHeight;
void wrapper.offsetWidth;
void wrapper.offsetHeight;
// Measure the wrapper's content size
const contentWidth = wrapper.offsetWidth;
const contentHeight = wrapper.offsetHeight;
// Restore original styles by removing inline styles we added
wrapper.style.removeProperty('display');
wrapper.style.removeProperty('width');
wrapper.style.removeProperty('height');
wrapper.style.removeProperty('overflow');
wrapper.style.removeProperty('box-sizing');
// If content is less than 500x500, center it
if (contentWidth > 0 && contentHeight > 0 && contentWidth < 500 && contentHeight < 500) {
wrapper.style.display = 'flex';
wrapper.style.alignItems = 'center';
wrapper.style.justifyContent = 'center';
}
});
});
}
// Check immediately and after delays to ensure content is rendered and styled
function runChecks() {
checkAndCenter();
setTimeout(checkAndCenter, 50);
setTimeout(checkAndCenter, 150);
setTimeout(checkAndCenter, 300);
setTimeout(checkAndCenter, 500);
setTimeout(checkAndCenter, 1000);
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', runChecks);
} else {
runChecks();
}
// Also check when images or other resources load
window.addEventListener('load', () => {
setTimeout(checkAndCenter, 100);
setTimeout(checkAndCenter, 300);
});
// Use ResizeObserver to detect size changes
if (window.ResizeObserver) {
setTimeout(() => {
const wrapper = document.querySelector('.component-wrapper');
if (wrapper) {
const observer = new ResizeObserver(() => {
setTimeout(checkAndCenter, 50);
});
observer.observe(wrapper);
}
}, 500);
}
})();
</script>
</body>
</html>