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=259&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 2798 results for "database"(382ms)

OpenTownie_1742929529007index.ts1 match

@dcm31โ€ขUpdated 1 month ago
20export const thinkTool = tool({
21 description:
22 "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.",
23 parameters: z.object({
24 thought: z.string().describe("A thought to think about."),

OpenTownie_1742929529007system_prompt.txt2 matches

@dcm31โ€ข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

svgEditorindex.ts1 match

@dcm31โ€ขUpdated 1 month ago
20export const thinkTool = tool({
21 description:
22 "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.",
23 parameters: z.object({
24 thought: z.string().describe("A thought to think about."),

svgEditorsystem_prompt.txt2 matches

@dcm31โ€ข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

forkyREADME.md1 match

@smhโ€ขUpdated 1 month ago
7The **client-side entrypoint** is `/frontend/index.html`, which in turn imports `/frontend/index.tsx`, which in turn imports the React app from `/frontend/components/App.tsx`.
8
9[React Hono Example](https://www.val.town/x/stevekrouse/reactHonoExample) is a fuller featured example project, with a SQLite database table, queries, client-side CSS and a favicon, and some shared code that runs on both client and server.

nextgenindex.tsx1 match

@maxmโ€ขUpdated 1 month ago
5async function ddb() {
6 const duckdb = await import("npm:duckdb-async");
7 const db = await duckdb.default.Database.create(":memory:");
8 const conn = await db.connect();
9

nextgentrees.ts1 match

@maxmโ€ขUpdated 1 month ago
11
12 const duckdb = await import("npm:duckdb-async");
13 const db = await duckdb.default.Database.create(":memory:");
14 const conn = await db.connect();
15

nextgenddb.ts1 match

@maxmโ€ขUpdated 1 month ago
1async function ddb() {
2 const duckdb = await import("npm:duckdb-async");
3 const db = await duckdb.default.Database.create(":memory:");
4 const conn = await db.connect();
5

cerebras_coderindex2 matches

@webrixoโ€ข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> {

OpenTownieNormalsystem_prompt.txt2 matches

@dcm31โ€ข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