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.

1.4 KB
Raw Blame
<script>
  import { mode } from '../stores.js';
  import Icon from '../Icon.svelte';
  import { feTrendingUp, feBarChart2, feActivity, feAlertCircle, feMoreHorizontal, feBox, feLayers, feZap } from '../feather.js';
  import MoreDropdown from './MoreDropdown.svelte';

  let moreOpen = $state(false);

  const chips = [
    { id: 'text3d',    label: 'Text → 3D',          icon: feZap },
    { id: 'gems',      label: 'Find new gems',      icon: feTrendingUp },
    { id: 'track',     label: 'Track a token',      icon: feActivity },
    { id: 'portfolio', label: 'Check my portfolio', icon: feBarChart2 },
    { id: 'rugcheck',  label: 'Rug check',          icon: feAlertCircle },
    { id: 'chart3d',   label: '3D chart',           icon: feBox },
    { id: 'scene3d',   label: '3D scene',           icon: feLayers },
  ];

  function pick(id) {
    mode.set($mode === id ? null : id);
  }
</script>

<div class="flex flex-wrap gap-3 justify-center mt-4">
  {#each chips as c}
    <button
      class="three-ui-chip {$mode === c.id ? 'three-ui-chip-selected' : ''}"
      onclick={() => pick(c.id)}
    >
      <Icon icon={c.icon} class="h-4 w-4" />
      {c.label}
    </button>
  {/each}
  <div class="relative">
    <button class="three-ui-chip" onclick={() => (moreOpen = !moreOpen)}>
      <Icon icon={feMoreHorizontal} class="h-4 w-4" />
      More
    </button>
    {#if moreOpen}
      <MoreDropdown onclose={() => (moreOpen = false)} />
    {/if}
  </div>
</div>