Something went wrong. Try again.
a tiny pet with a GPT-2 brain, living in your browser
Something went wrong. Try again.
1234567891011121314151617181920import { render } from "preact";import { testControls } from "./app/debug.ts";import { boot, resumeBrain } from "./app/lifecycle.ts";import { App } from "./components/App.tsx";import { initCore } from "./core.ts";const root = document.getElementById("pet-root");if (!root) throw new Error("Missing #pet-root mount element");// The shared rules must load before the save is read or the pet runs.try { await initCore();} catch (error) { root.textContent = "tokenling could not start in this browser: its rules module did not load."; throw error;}await boot();render(<App />, root);document.documentElement.classList.add("pet-js");window.tokenling = testControls();void resumeBrain();