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/$%7Burl%7D?q=database&page=337&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 4135 results for "database"(549ms)

cerebras_coderindex2 matches

@Bikโ€ขUpdated 1 month ago
1import { generateCode } from "./backend/generate-code";
2import { createTables } from "./database/migrations";
3import { createProject, getCode, getNextVersionNumber, insertVersion } from "./database/queries";
4
5async function servePublicFile(path: string): Promise<Response> {

aircrafttestmain.tsx1 match

@Learnโ€ขUpdated 1 month ago
714 console.log("Received aircraft data, preparing analysis...");
715
716 // In a real implementation, this would connect to a maintenance database and AI analysis service
717 // For now, we'll just wait and send a mock response
718 await new Promise(resolve => setTimeout(resolve, 2000));

cerebras_coderindex2 matches

@llmโ€ขUpdated 1 month ago
1import { generateCode } from "./backend/generate-code";
2import { createTables } from "./database/migrations";
3import { createProject, getCode, getNextVersionNumber, insertVersion } from "./database/queries";
4
5async function servePublicFile(path: string): Promise<Response> {

bhaavsynthlandipgpagemain.tsx1 match

@prashamtrivediโ€ขUpdated 1 month ago
414 const SCHEMA_VERSION = 1;
415
416 // Save email to database
417 await sqlite.execute(`
418 CREATE TABLE IF NOT EXISTS ${KEY}_signups_${SCHEMA_VERSION} (

cerebras_coderindex2 matches

@adsissuesโ€ขUpdated 1 month ago
1import { generateCode } from "./backend/generate-code";
2import { createTables } from "./database/migrations";
3import { createProject, getCode, getNextVersionNumber, insertVersion } from "./database/queries";
4
5async function servePublicFile(path: string): Promise<Response> {

zanyBeigeFoxmain.tsx1 match

@Tommybdbdnโ€ขUpdated 1 month ago
16 apiKey: "AIzaSyBRdHIXJcFUMV3h7k2GFg9wY0S_hUttaZU",
17 authDomain: "tommy-ai-image-generator-d2466.firebaseapp.com",
18 databaseURL: "https://tommy-ai-image-generator-d2466-default-rtdb.firebaseio.com",
19 projectId: "tommy-ai-image-generator-d2466",
20 storageBucket: "tommy-ai-image-generator-d2466.firebasestorage.app",

OpenTownieTODOs.md1 match

@k7dโ€ขUpdated 1 month ago
13- [ ] Rebuild as React Router?
14- [ ] opentownie as a pr bot
15- [ ] give it the ability to see its own client-side and server-side logs by building a middleware that shoves them into a SQL light database date and then give it a tool to access them or use our trpc API in that tool
16- [ ] do a browser use or screenshot thing to give it access to its own visual output
17- [ ] Have it default to creating a new branch off main and then embedding and iframe to the resulting http val and give you a link to a pr opening url

OpenTowniethink.ts1 match

@k7dโ€ขUpdated 1 month ago
7export const thinkTool = tool({
8 description:
9 "Use the tool to think about something. It will not obtain new information or change the database, but just append the thought to the log. Use it when complex reasoning or some cache memory is needed.",
10 parameters: z.object({
11 thought: z.string().describe("A thought to think about."),

OpenTowniesystem_prompt.txt2 matches

@k7dโ€ขUpdated 1 month ago
166```
167โ”œโ”€โ”€ backend/
168โ”‚ โ”œโ”€โ”€ database/
169โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
170โ”‚ โ”‚ โ”œโ”€โ”€ queries.ts # DB query functions
228- Handle API calls properly with proper error catching
229
230### Database Patterns
231- Run migrations on startup or comment out for performance
232- Change table names when modifying schemas rather than altering

FixItWanddrizzle.config.ts1 match

@wolfโ€ขUpdated 1 month ago
7 out: "./backend/drizzle",
8 dbCredentials: {
9 url: process.env.DATABASE_URL!,
10 },
11});

bookmarksDatabase

@s3thiโ€ขUpdated 2 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 5 months ago