1# VALL-E-DRAW
2
3LLM code generation for vals, on a canvas! Make apps with a frontend, backend, and database.
4
5* First you need a working version of VALL-E. Follow the steps [here](https://www.val.town/v/janpaul123/VALLE).
43 }
44
45 // Fetch todos from the database
46 const todos = await sqlite.execute(`SELECT * FROM ${KEY}_todos_${SCHEMA_VERSION} ORDER BY id DESC`);
47
30- [ ] add triggers to sidebar
31- [ ] add upload from SQL, CSV and JSON
32- [ ] add ability to connect to a non-val town Turso database
33- [x] fix wonky sidebar separator height problem (thanks to @stevekrouse)
34- [x] make result tables scrollable
397 const newLoserScore = Math.round(loserScore + K * (0 - expectedLoser));
398
399 // Update scores in the database
400 await sqlite.execute(
401 `
36 utilities: "🔧",
37 security: "🔒",
38 database: "💾",
39 testing: "🧪",
40 performance: "âš¡",
30- [ ] add triggers to sidebar
31- [ ] add upload from SQL, CSV and JSON
32- [ ] add ability to connect to a non-val town Turso database
33- [x] fix wonky sidebar separator height problem (thanks to @stevekrouse)
34- [x] make result tables scrollable
1# VALL-E
2
3LLM code generation for vals! Make apps with a frontend, backend, and database.
4
5It's a bit of work to get this running, but it's worth it.
8 const validatedUser = UserSchema.parse(body);
9
10 // Here you would typically save the user to a database
11 // For this demo, we'll just return a success message
12 return new Response(JSON.stringify({ message: "User registered successfully!" }), {
1# VALL-E
2
3LLM code generation for vals! Make apps with a frontend, backend, and database.
4
5It's a bit of work to get this running, but it's worth it.
1/**
2 * This val creates an email storage system using SQLite.
3 * It stores each email sent through the 'newsly' function into a SQLite database.
4 * The email address of the sender is used as the key.
5 * We'll use the sqlite module for database operations and the email module for sending emails.
6 */
7
18 console.log("email:", JSON.stringify(e));
19
20 // Store the email in the database
21 const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
22 const KEY = "newsly";