Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/?q=database&page=322&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=database

Returns an array of strings in format "username" or "username/projectName"

Found 3427 results for "database"(444ms)

VALLEREADME.md1 match

@lho•Updated 8 months ago
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.

zod_demo_httpmain.tsx1 match

@stevekrouse•Updated 8 months ago
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!" }), {

VALLEREADME.md1 match

@eugenechantk•Updated 8 months ago
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.

newslymain.tsx3 matches

@yawnxyz•Updated 8 months ago
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";

todaystatsmain.tsx1 match

@ejfox•Updated 8 months ago
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

sqliteExplorerAppREADME.md1 match

@andrewn•Updated 8 months ago
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

reluctantCoffeeGayalmain.tsx1 match

@kaz•Updated 8 months ago
397 const newLoserScore = Math.round(loserScore + K * (0 - expectedLoser));
398
399 // Update scores in the database
400 await sqlite.execute(
401 `

eldestBronzePtarmiganmain.tsx1 match

@ejfox•Updated 8 months ago
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

lucia_middlewaremain.tsx2 matches

@stevekrouse•Updated 8 months ago
31 interface Register {
32 Lucia: typeof lucia;
33 DatabaseUserAttributes: DatabaseUserAttributes;
34 }
35}
36
37interface DatabaseUserAttributes {
38 username: string;
39}

notionGetDatabaseREADME.md3 matches

@ttodosi•Updated 8 months ago
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

bookmarksDatabase

@s3thi•Updated 2 months ago

sqLiteDatabase1 file match

@ideofunk•Updated 5 months ago