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/$2?q=database&page=33&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 7159 results for "database"(3537ms)

voicemessagesmigrations.ts2 matches

@Darkpearlzzโ€ขUpdated 5 days ago
19 )`);
20
21 console.log('Database migrations completed successfully');
22 } catch (error) {
23 console.error('Database migration failed:', error);
24 throw error;
25 }

voicemessagesindex.ts2 matches

@Darkpearlzzโ€ขUpdated 5 days ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { runMigrations } from "./database/migrations.ts";
3import voiceNotesRoutes from "./routes/voicenotes.ts";
4import staticRoutes from "./routes/static.ts";
11});
12
13// Run database migrations on startup
14try {
15 await runMigrations();

Soccerindex.ts2 matches

@Brian250โ€ขUpdated 5 days ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { readFile, serveFile } from "https://esm.town/v/std/utils@85-main/index.ts";
3import { runMigrations } from "./database/migrations.ts";
4import jobs from "./routes/jobs.ts";
5import chat from "./routes/chat.ts";
12});
13
14// Initialize database
15await runMigrations();
16

Soccerchat.ts1 match

@Brian250โ€ขUpdated 5 days ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getChatMessages, createChatMessage } from "../database/queries.ts";
3import type { CreateChatMessageRequest } from "../../shared/types.ts";
4

Soccerjobs.ts1 match

@Brian250โ€ขUpdated 5 days ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getAllJobs, createJob } from "../database/queries.ts";
3import type { CreateJobRequest } from "../../shared/types.ts";
4

Soccermigrations.ts1 match

@Brian250โ€ขUpdated 5 days ago
31 `);
32
33 console.log('Database migrations completed');
34}

SoccerREADME.md4 matches

@Brian250โ€ขUpdated 5 days ago
13```
14โ”œโ”€โ”€ backend/
15โ”‚ โ”œโ”€โ”€ database/
16โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema setup
17โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database query functions
18โ”‚ โ”œโ”€โ”€ routes/
19โ”‚ โ”‚ โ”œโ”€โ”€ jobs.ts # Job posting API routes
42
43- **Backend**: Hono (TypeScript API framework)
44- **Database**: SQLite
45- **Frontend**: React with TypeScript
46- **Styling**: TailwindCSS

TownieTODOs.md1 match

@Godspowerโ€ขUpdated 5 days ago
9- [ ] make it one click to branch off like old jp townie demos
10- [ ] opentownie as a pr bot
11- [ ] 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
12- [ ] do a browser use or screenshot thing to give it access to its own visual output
13- [ ] Have it default to creating a new branch off main

Towniethink.ts1 match

@Godspowerโ€ขUpdated 5 days 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."),

Towniesystem_prompt.txt2 matches

@Godspowerโ€ขUpdated 5 days ago
174```
175โ”œโ”€โ”€ backend/
176โ”‚ โ”œโ”€โ”€ database/
177โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
178โ”‚ โ”‚ โ”œโ”€โ”€ queries.ts # DB query functions
234 ```
235
236### Database Patterns
237- Run migrations on startup or comment out for performance
238- Change table names when modifying schemas rather than altering

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago