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/$%7Bsuccess?q=database&page=175&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 7694 results for "database"(4398ms)

untitled-4894index.ts2 matches

@clarejoanโ€ขUpdated 2 weeks 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 { createTables } from "./database/migrations.ts";
4import reviewsRouter from "./routes/reviews.ts";
5
11});
12
13// Initialize database on startup
14await createTables();
15

untitled-4770README.md2 matches

@chinweikeโ€ขUpdated 2 weeks ago
15```
16โ”œโ”€โ”€ backend/
17โ”‚ โ”œโ”€โ”€ database/
18โ”‚ โ”‚ โ”œโ”€โ”€ blob-storage.ts # Blob storage functions
19โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # SQLite schema (backup)
56- Counter: `workgroup_message_counter`
57
58## Database Schema
59
60### User Object

untitled-4770auth.ts1 match

@chinweikeโ€ขUpdated 2 weeks ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { createUser, getUserByUsername } from "../database/blob-storage.ts";
3import type { AuthRequest, AuthResponse } from "../../shared/types.ts";
4

untitled-4770index.ts1 match

@chinweikeโ€ขUpdated 2 weeks 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 { initializeStorage } from "./database/blob-storage.ts";
4import auth from "./routes/auth.ts";
5import messages from "./routes/messages.ts";

untitled-4770messages.ts1 match

@chinweikeโ€ขUpdated 2 weeks ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { createMessage, getAllMessages, getUserByUsername } from "../database/blob-storage.ts";
3import type { MessageRequest, MessageResponse, MessagesResponse } from "../../shared/types.ts";
4

untitled-4894reviews.ts1 match

@clarejoanโ€ขUpdated 2 weeks ago
6 getCompanySummaries,
7 getReviewsByCompany
8} from "../database/queries.ts";
9import type { NewReview, ReviewFilters } from "../../shared/types.ts";
10

untitled-4894README.md4 matches

@clarejoanโ€ขUpdated 2 weeks ago
15```
16โ”œโ”€โ”€ backend/
17โ”‚ โ”œโ”€โ”€ database/
18โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema setup
19โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database query functions
20โ”‚ โ””โ”€โ”€ routes/
21โ”‚ โ””โ”€โ”€ reviews.ts # Review API endpoints
38
39- **Backend**: Hono (TypeScript API framework)
40- **Database**: SQLite
41- **Frontend**: React with TypeScript
42- **Styling**: TailwindCSS

Syphrose1990TODOs.md1 match

@Syphrose1990โ€ขUpdated 2 weeks 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

Syphrose1990think.ts1 match

@Syphrose1990โ€ขUpdated 2 weeks 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."),

Syphrose1990system_prompt.txt2 matches

@Syphrose1990โ€ขUpdated 2 weeks 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 4 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 7 months ago