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/$1?q=database&page=17&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 6935 results for "database"(3962ms)

TownieTODOs.md1 match

@Alashakaweeโ€ขUpdated 20 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

Towniethink.ts1 match

@Alashakaweeโ€ขUpdated 20 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."),

Towniesystem_prompt.txt2 matches

@Alashakaweeโ€ขUpdated 20 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

Towniesend-message.ts1 match

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

Towniequeries.tsx1 match

@Alashakaweeโ€ขUpdated 20 hours ago
4import { INFERENCE_CALLS_TABLE, USAGE_TABLE } from "./schema.tsx";
5
6// Eventually we'll have a user database,
7// but in the meantime, we can cache user info in memory
8const userIdCache: { [key: string]: any } = {};

Townie.cursorrules2 matches

@Alashakaweeโ€ขUpdated 20 hours ago
198```
199โ”œโ”€โ”€ backend/
200โ”‚ โ”œโ”€โ”€ database/
201โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
202โ”‚ โ”‚ โ”œโ”€โ”€ queries.ts # DB query functions
257 ```
258
259### Database Patterns
260- Run migrations on startup or comment out for performance
261- Change table names when modifying schemas rather than altering

untitled-4011ValTownSQLite.tsx1 match

@ianmenethilโ€ขUpdated 20 hours ago
197 <div className="space-y-6">
198 <div className="bg-white dark:bg-gray-800 rounded-lg shadow-sm border dark:border-gray-700 p-6">
199 <h2 className="text-2xl font-bold text-gray-900 dark:text-white mb-6">SQLite Database</h2>
200
201 {/* Tables sidebar */}

untitled-4011Sidebar.tsx1 match

@ianmenethilโ€ขUpdated 20 hours ago
14 { name: "Vals", path: "/vals", icon: "โšก", description: "Manage your functions" },
15 { name: "Blobs", path: "/blobs", icon: "๐Ÿ“ฆ", description: "File storage" },
16 { name: "SQLite", path: "/sqlite", icon: "๐Ÿ—„๏ธ", description: "Database management" },
17 { name: "Emails", path: "/emails", icon: "๐Ÿ“ง", description: "Email functionality" },
18 { name: "Profile", path: "/profile", icon: "๐Ÿ‘ค", description: "User profile" },

untitled-4011HomePage.tsx1 match

@ianmenethilโ€ขUpdated 20 hours ago
125 <h3 className="font-semibold text-gray-900 dark:text-white mb-2">SQLite</h3>
126 <p className="text-sm text-gray-600 dark:text-gray-400">
127 Query and manage your databases
128 </p>
129 </div>

untitled-4011SettingsPage.tsx1 match

@ianmenethilโ€ขUpdated 20 hours ago
130 </p>
131 <p className="text-sm text-gray-600 dark:text-gray-400">
132 Manage blobs, emails, profiles, SQLite databases, and vals from one place
133 </p>
134 </div>

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago