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=18&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 6941 results for "database"(3577ms)

Towniequeries.tsx1 match

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

untitled-4011README.md2 matches

@ianmenethilโ€ขUpdated 22 hours ago
1# Val Town Dashboard
2
3A dashboard application for managing Val Town resources including blobs, emails, profiles, SQLite databases, and vals.
4
5## Project Structure
36- **Email Management**: Handle Val Town email functionality
37- **Profile Management**: Manage Val Town user profiles
38- **SQLite Management**: Interact with Val Town SQLite databases
39- **Vals Management**: Manage Val Town vals (functions)
40- **Settings**: User authentication and preferences

kevinbetvotes.ts1 match

@kibetโ€ขUpdated 22 hours ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { castVote, getVoteResults, hasUserVoted, getUserVote } from "../database/queries.ts";
3import { CANDIDATES } from "../../shared/types.ts";
4

kevinbetmigrations.ts1 match

@kibetโ€ขUpdated 22 hours ago
22 )`);
23
24 console.log('Database migrations completed');
25}
26

kevinbetindex.ts3 matches

@kibetโ€ขUpdated 22 hours 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 { getVoteResults, getChatMessages } from "./database/queries.ts";
5import votes from "./routes/votes.ts";
6import chat from "./routes/chat.ts";
13});
14
15// Initialize database on startup
16await runMigrations();
17

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago