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
import { mkdtempSync, rmSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
import { afterAll, describe, expect, it, vi } from 'vitest';
const root = mkdtempSync(join(tmpdir(), 'pulse-db-'));
describe('embedded pglite', () => {
afterAll(() => rmSync(root, { recursive: true, force: true }));
it('creates missing parent directories so a fresh clone starts with zero setup', async () => {
vi.stubEnv('DATABASE_URL', '');
vi.stubEnv('PGLITE_DIR', join(root, 'not', 'yet', 'there', 'pglite'));
vi.resetModules();
const { db } = await import('../src/db/client.ts');
const d = await db();
expect(d.kind).toBe('pglite');
expect(await d.query('select 1 as one')).toEqual([{ one: 1 }]);
await d.close();
});
});