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.

480 B
Raw Blame
import type Slugger from 'github-slugger'

export function joinUrlPaths(...paths: string[]): string {
  return (
    '/' +
    paths
      .flatMap((path) => path.split('/'))
      .filter((path) => !!path)
      .join('/')
  )
}

export function isRelative(url: string): boolean {
  return url.startsWith('/') || url.startsWith('#')
}

export function generatePathSegment(name: string, slugger: Slugger) {
  return slugger.slug(name).replace(/--+/g, '-') // Replaces -- with -
}