Public
Readme
This is an AI code assistant powered by Cerebras, running llama3.3-70b.
- Sign up for Cerebras
- Get a Cerebras API Key
- Save it in a Val Town environment variable called
CEREBRAS_API_KEY
Code
HTTP
Uncaught Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20…
Open your browser’s developer tools to debug this, or open this val in Townie and ask it to fix the bug.
/** @jsxImportSource https://esm.sh/react@18.2.0 */
import Cerebras from "https://esm.sh/@cerebras/cerebras_cloud_sdk";
import Chart from "https://esm.sh/chart.js/auto";
import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
import { Prism as SyntaxHighlighter } from "https://esm.sh/react-syntax-highlighter";
import { tomorrow } from "https://esm.sh/react-syntax-highlighter/dist/esm/styles/prism";
import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
const STARTER_PROMPTS = [
"todo list app persisted in local storage",
"weather app using open-meteo API",
"interactive markdown editor with live preview",
"pomodoro timer with sound notifications",
"simple drawing canvas with color picker",
"recipe ingredient converter and scaler",
"morse code translator with audio output",
"random quote generator with tweet functionality",
"personal finance tracker with basic charts",
"multiplayer rock-paper-scissors game",
];
function Dashboard() {
const [stats, setStats] = useState<{
totalGenerations: number;
totalVersions: number;
totalProjects: number;
popularPrompts: { prompt: string; count: number }[];
dailyGenerations: { date: string; count: number }[];
}>({
totalGenerations: 0,
totalVersions: 0,
totalProjects: 0,
popularPrompts: [],
dailyGenerations: [],
});
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
stevekrouse-legendaryvioletbovid.web.val.run
Updated: December 11, 2024