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";
2 * This tool fetches real-time data from various free APIs to create a JSON object
3 * representing the current state of the world from different perspectives.
4 * Data is cached for 30 minutes using Val Town's SQLite database to reduce API calls and improve performance.
5 */
6
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 `
157 const imageUrl = `https://val.town/v/${KEY}/blobs/${imageKey}`;
158
159 // Update user's image in the database
160 await sqlite.execute(`
161 UPDATE ${KEY}_users
31 interface Register {
32 Lucia: typeof lucia;
33 DatabaseUserAttributes: DatabaseUserAttributes;
34 }
35}
36
37interface DatabaseUserAttributes {
38 username: string;
39}
1# Get all the pages in a notion database
2
3## Usage
4
51. Find your `databaseId`: https://developers.notion.com/reference/retrieve-a-database
62. Get `auth` by setting up an internal integration: https://developers.notion.com/docs/authorization#internal-integration-auth-flow-set-up
7
8Example usage: @stevekrouse.dateMeNotionDatabase
9
10deno-notion-sdk docs: https://github.com/cloudydeno/deno-notion_sdk