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=339&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 8256 results for "database"(3980ms)

scifi-bedtime-story-timeREADME.md2 matches

@dthyresson•Updated 1 month ago
17## Project Structure
18
19- `/backend` - API routes, database, and story generation
20- `/frontend` - UI components, emoji selectors, and gallery
21- `/shared` - Shared types and utilities
22
23## Database
24
25The application uses SQLite for data storage with the following table:

scifi-bedtime-story-timemigrations.ts2 matches

@dthyresson•Updated 1 month ago
25}
26
27// Initialize the database
28export async function initializeDatabase() {
29 await createStoriesTable();
30}

scifi-bedtime-story-timestories.ts1 match

@dthyresson•Updated 1 month ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { saveStory, getAllStories, getStoryById, deleteStory } from "../database/queries.ts";
3import { generateStory, generateImagePrompt } from "../services/storyGenerator.ts";
4import { StoryOptions, Story } from "../../shared/types.ts";

scifi-bedtime-story-timeindex.ts3 matches

@dthyresson•Updated 1 month ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { serveFile, readFile } from "https://esm.town/v/std/utils@85-main/index.ts";
3import { initializeDatabase } from "./database/migrations.ts";
4import storiesRoutes from "./routes/stories.ts";
5import { parseProject } from "https://esm.town/v/std/utils@85-main/index.ts";
13});
14
15// Initialize the database
16app.use("*", async (c, next) => {
17 await initializeDatabase();
18 await next();
19});

bedtime-story-timeindex.ts3 matches

@dthyresson•Updated 1 month ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { serveFile, readFile } from "https://esm.town/v/std/utils@85-main/index.ts";
3import { initializeDatabase } from "./database/migrations.ts";
4import storiesRoutes from "./routes/stories.ts";
5import { parseProject } from "https://esm.town/v/std/utils@85-main/index.ts";
13});
14
15// Initialize the database
16app.use("*", async (c, next) => {
17 await initializeDatabase();
18 await next();
19});

bedtime-story-timestories.ts1 match

@dthyresson•Updated 1 month ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { saveStory, getAllStories, getStoryById, deleteStory } from "../database/queries.ts";
3import { generateStory, generateImagePrompt } from "../services/storyGenerator.ts";
4import { StoryOptions, Story } from "../../shared/types.ts";

bedtime-story-timemigrations.ts2 matches

@dthyresson•Updated 1 month ago
25}
26
27// Initialize the database
28export async function initializeDatabase() {
29 await createStoriesTable();
30}

bedtime-story-timeREADME.md1 match

@dthyresson•Updated 1 month ago
17## Project Structure
18
19- `/backend` - API routes, database, and story generation
20- `/frontend` - UI components, emoji selectors, and gallery
21- `/shared` - Shared types and utilities

TyappValchat.ts1 match

@oluwa_ty•Updated 1 month ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { cors } from "https://esm.sh/@hono/cors@0.0.6";
3import { getAllChatMessages, createChatMessage } from "../database/queries.ts";
4import type { ChatMessageFormData } from "../../shared/types.ts";
5

TyappValjobs.ts1 match

@oluwa_ty•Updated 1 month ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { cors } from "https://esm.sh/@hono/cors@0.0.6";
3import { getAllJobPostings, getJobPostingById, createJobPosting } from "../database/queries.ts";
4import type { JobPostingFormData } from "../../shared/types.ts";
5

customer-database-setup2 file matches

@stevenvapi•Updated 4 days ago

prDatabase

@pdw•Updated 1 week ago