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=4&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 5451 results for "database"(1151ms)

WebsiteREADME.md2 matches

@w_acheโ€ขUpdated 9 hours ago
8- Purchase simulation with transaction logging
9- Simple, clean design with CSS styling
10- SQLite database for storing products and transactions
11
12## Structure
13
14- `backend/index.ts` - Main Hono server with API routes
15- `backend/database/` - Database setup and queries
16- `frontend/` - HTML, CSS, and JavaScript for the website
17- `shared/` - Shared types and utilities

cREADME.md5 matches

@Sujal5โ€ขUpdated 9 hours ago
22```
23โ”œโ”€โ”€ backend/
24โ”‚ โ”œโ”€โ”€ database/
25โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema
26โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database operations
27โ”‚ โ”œโ”€โ”€ routes/
28โ”‚ โ”‚ โ”œโ”€โ”€ auth.ts # Authentication routes
52- **Backend**: Hono (TypeScript)
53- **Frontend**: React with TypeScript
54- **Database**: SQLite
55- **Styling**: TailwindCSS
56- **PDF Generation**: jsPDF
59## Getting Started
60
611. The application will automatically set up the database on first run
622. **Admin Login Credentials**:
63 - **Email**: `admin@fabrication.com`

cindex.ts2 matches

@Sujal5โ€ขUpdated 9 hours ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { runMigrations } from "./database/migrations.ts";
3import auth from "./routes/auth.ts";
4import bills from "./routes/bills.ts";
13});
14
15// Initialize database on startup
16await runMigrations();
17

cmigrations.ts1 match

@Sujal5โ€ขUpdated 9 hours ago
76 }
77
78 console.log("Database migrations completed successfully");
79}

expresswebindex.ts1 match

@muhdsaeed1โ€ขUpdated 12 hours ago
17app.use('*', errorHandler);
18
19// Initialize database (similar to connecting to MongoDB)
20await UserModel.init();
21

expresswebREADME.md2 matches

@muhdsaeed1โ€ขUpdated 12 hours ago
8
9- **Express โ†’ Hono**: Web framework for routing and middleware
10- **MongoDB/Mongoose โ†’ SQLite**: Database with ORM-like patterns
11- **Node.js โ†’ Deno**: Runtime environment
12
133## Development Notes
134
135- Database is automatically initialized on startup
136- SQLite table is created if it doesn't exist
137- All responses follow a consistent JSON structure

Townie2TODOs.md1 match

@toowiredโ€ขUpdated 13 hours 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

Townie2think.ts1 match

@toowiredโ€ขUpdated 13 hours 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."),

Townie2system_prompt.txt2 matches

@toowiredโ€ขUpdated 13 hours 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

Townie2send-message.ts1 match

@toowiredโ€ขUpdated 13 hours ago
10 overLimit,
11 startTrackingUsage,
12} from "../database/queries.tsx";
13import { makeChangeValTypeTool, makeFetchTool, makeTextEditorTool } from "../tools/index.ts";
14import fileWithLinesNumbers from "../utils/fileWithLinesNumbers.ts";

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago