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.

523 B
Raw Blame
const path = require('path');
const fs = require('fs');

module.exports = function* parse(file) {
  const cache = {};
  const data = fs.readFileSync(path.resolve(__dirname, file), 'utf8');
  for (const line of data.split('\r\n')) {
    const groups = line.match(/^(?<key>\w+) = (?<value>\w+)(?<extra>.*)$/)?.groups;
    if (groups) {
      const { key, value, extra } = groups;
      cache[key] = value;
      if (groups.key === 'Result') {
        yield Object.assign({ extra: extra.trim() }, cache);
      }
    }
  }
};