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/image-url.jpg%20%22Optional%20title%22?q=database&page=214&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 7122 results for "database"(1338ms)

con-juanAUTOBOT.md4 matches

@Downchuckโ€ขUpdated 2 weeks ago
67### New Components
68
691. **Database Module** (`database.ts`):
70 - Manages SQLite operations
71 - Implements tables for sessions, messages, patterns, and examples
85 - Provides export functionality
86
87### Database Schema
88
89The application uses SQLite with the following tables:
175 - Tests for edge cases and error handling
176
1772. **`database.test.ts`**:
178 - Tests for database initialization
179 - Tests for CRUD operations on all tables
180 - Tests for recursive queries and threaded conversations

con-juandatabase.ts3 matches

@Downchuckโ€ขUpdated 2 weeks ago
7const EXAMPLES_TABLE = "abuse_analyzer_examples_v1";
8
9// Initialize database tables
10export async function initDatabase() {
11 // Create sessions table
12 await sqlite.execute(`
63}
64
65// Types for our database entities
66export interface Session {
67 id: string;

Ffcccxxapi.ts1 match

@special_server_wahoโ€ขUpdated 2 weeks ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getPendingUsers, updateUserStatus } from "./database.ts";
3
4export const apiRouter = new Hono();

Ffcccxxdatabase.ts4 matches

@special_server_wahoโ€ขUpdated 2 weeks ago
15const USERS_TABLE = "admin_panel_users";
16
17// Initialize database
18export async function initDatabase() {
19 await sqlite.execute(`
20 CREATE TABLE IF NOT EXISTS ${USERS_TABLE} (
59}
60
61// Initialize the database on module import
62await initDatabase();
63
64// Add some test users if none exist (for demonstration)

FfcccxxREADME.md1 match

@special_server_wahoโ€ขUpdated 2 weeks ago
8- `/backend/` - Backend API endpoints
9 - `/backend/api.ts` - API routes for pending users and status updates
10 - `/backend/database.ts` - Database setup and queries
11- `/frontend/` - Frontend assets
12 - `/frontend/admin-panel.html` - Admin panel HTML template

TownieTODOs.md1 match

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

Towniethink.ts1 match

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

Towniesystem_prompt.txt2 matches

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

Towniesend-message.ts1 match

@roadlabsโ€ขUpdated 2 weeks ago
10 overLimit,
11 startTrackingUsage,
12} from "../database/queries.tsx";
13import {
14 getTextEditorTool,

Towniequeries.tsx1 match

@roadlabsโ€ขUpdated 2 weeks 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 } = {};

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago