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/$%7Bsuccess?q=database&page=221&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 6837 results for "database"(1452ms)

stevensDemogetWeather.ts1 match

@codingayamโ€ขUpdated 2 weeks ago
130 }
131
132 console.log(`Weather forecast updated in the database.`);
133 return summary;
134}

stevensDemogetCalendarEvents.ts1 match

@codingayamโ€ขUpdated 2 weeks ago
125 }
126
127 console.log(`Calendar events imported into the database.`);
128 return events;
129 } catch (error) {

stevensDemogenerateFunFacts.ts2 matches

@codingayamโ€ขUpdated 2 weeks ago
8
9/**
10 * Retrieves previously generated fun facts from the memories database
11 * @returns Array of previous fun facts
12 */
47
48/**
49 * Inserts a fun fact into the memories database
50 * @param date Date for the fun fact in ISO format
51 * @param factText The fun fact text

stevensDemo.cursorrules2 matches

@codingayamโ€ขUpdated 2 weeks ago
208```
209โ”œโ”€โ”€ backend/
210โ”‚ โ”œโ”€โ”€ database/
211โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
212โ”‚ โ”‚ โ”œโ”€โ”€ queries.ts # DB query functions
270- Handle API calls properly with proper error catching
271
272### Database Patterns
273- Run migrations on startup or comment out for performance
274- Change table names when modifying schemas rather than altering

FOchiengREADME.md3 matches

@FOchiengโ€ขUpdated 2 weeks ago
6
7- `index.ts` - Main entry point with HTTP API routes
8- `database/` - Database setup and query functions
9 - `migrations.ts` - Database schema definitions
10 - `queries.ts` - Functions for interacting with the database
11
12## API Endpoints

FOchiengindex.ts2 matches

@FOchiengโ€ขUpdated 2 weeks ago
2import { cors } from "https://esm.sh/hono@3.11.7/middleware";
3import { readFile, serveFile } from "https://esm.town/v/std/utils/index.ts";
4import { runMigrations } from "./database/migrations.ts";
5import {
6 getUserById, createUser,
7 getTestsByUserId, getTestById,
8 createTest, updateTest, deleteTest
9} from "./database/queries.ts";
10import { ApiResponse, CreateTestRequest, UpdateTestRequest } from "../shared/types.ts";
11

FOchiengmigrations.ts1 match

@FOchiengโ€ขUpdated 2 weeks ago
6
7/**
8 * Run database migrations to set up the schema
9 */
10export async function runMigrations() {

FOchiengREADME.md2 matches

@FOchiengโ€ขUpdated 2 weeks ago
12## Project Structure
13
14- `/backend` - Server-side code with API endpoints and database operations
15- `/frontend` - Client-side code with UI components and styling
16- `/shared` - Shared types and utilities used by both frontend and backend
18## Technologies
19
20- Backend: Hono.js for API, SQLite for database
21- Frontend: React with Tailwind CSS for styling
22- Shared: TypeScript for type safety

Job-postingjobs.ts1 match

@Oluremiteโ€ขUpdated 2 weeks ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getAllJobs, createJob } from "../database/queries.ts";
3import type { JobPosting } from "../../shared/types.ts";
4

Job-postingchat.ts1 match

@Oluremiteโ€ขUpdated 2 weeks ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getChatMessages, addChatMessage } from "../database/queries.ts";
3import type { ChatMessage } from "../../shared/types.ts";
4

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago