Skip to content

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.

766 B
Raw Blame
<script lang="ts">
	import Icon from './Icon.svelte';
	import { feTerminal, feBox } from './feather.js';
	import { onMount } from 'svelte';

	interface Props {
		xml: any;
		active?: boolean;
		onclick?: (event: any) => void;
	}

	let { xml, active = false, onclick }: Props = $props();
</script>

<button
	data-trigger="artifact"
	class="{active
		? 'bg-slate-800'
		: 'bg-gray-200 hover:bg-gray-300'} group/artifact relative flex items-center gap-2 self-start rounded-full px-3.5 py-2 transition-[background-color,box-shadow] duration-500"
	onclick={onclick}
>
	<Icon icon={feBox} class="{active ? 'text-white' : 'text-slate-800'} h-4 w-4" />

	<span class="{active ? 'text-white' : ''} text-xs">
		{xml.attributes.title || 'Untitled artifact'}
	</span>
</button>