INNER CODE UNIT · JavaScript

init

meursyphus/flitter · dev/llm-playground/app.js:375

async function init() {
  const [registryResponse, casesResponse] = await Promise.all([
    fetch("/data/chart-registry.json"),
    fetch("/data/evaluation-cases.json"),
  ]);

  state.registry = await registryResponse.json();
  state.cases = await casesResponse.json();
  state.selectedCaseId = state.cases[0]?.id ?? null;
  render();
}

init().catch((error) => {
  const app = document.getElementById("app");
  app.innerHTML = `
    <div class="loading-shell">
      <div class="loading-card">
        <p class="eyebrow">LLM Playground</p>

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…