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=55&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 7208 results for "database"(1324ms)

Jobpostingjobs.ts1 match

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

EcomREADME.md4 matches

@Ruona26โ€ขUpdated 6 days ago
10- Responsive design with TailwindCSS
11- Admin panel for product management
12- SQLite database for data persistence
13
14## Project Structure
16```
17โ”œโ”€โ”€ backend/
18โ”‚ โ”œโ”€โ”€ database/
19โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema
20โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database operations
21โ”‚ โ”œโ”€โ”€ routes/
22โ”‚ โ”‚ โ”œโ”€โ”€ products.ts # Product API routes

Jobpostingmigrations.ts1 match

@Adel0248โ€ขUpdated 6 days ago
27 )`);
28
29 console.log('Database migrations completed');
30}
31

Farmers_Hubindex.ts3 matches

@Pondamanโ€ขUpdated 6 days 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 { getDashboardStats } from "./database/queries.ts";
5import { getCookie } from "https://esm.sh/hono@3.11.7/cookie";
6import auth from "./routes/auth.ts";
17});
18
19// Initialize database
20await runMigrations();
21

Remnachatsettings.ts1 match

@Remnaโ€ขUpdated 6 days ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { requireAuth } from "./auth.ts";
3import { getUserSettings, updateUserSettings } from "../database/queries.ts";
4import type { ApiResponse, UserSettings } from "../../shared/types.ts";
5

JobpostingREADME.md4 matches

@Adel0248โ€ขUpdated 6 days ago
13```
14โ”œโ”€โ”€ backend/
15โ”‚ โ”œโ”€โ”€ database/
16โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema setup
17โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database query functions
18โ”‚ โ”œโ”€โ”€ routes/
19โ”‚ โ”‚ โ”œโ”€โ”€ jobs.ts # Job posting API routes
35
36- **Backend**: Hono (TypeScript API framework)
37- **Database**: SQLite
38- **Frontend**: React with TypeScript
39- **Styling**: TailwindCSS

Remnachatchatroom.ts1 match

@Remnaโ€ขUpdated 6 days ago
6 createChatRoomReply,
7 getChatRoomReplies
8} from "../database/queries.ts";
9import type { ApiResponse, ChatRoomPost, ChatRoomReply } from "../../shared/types.ts";
10

Remnachatgroups.ts3 matches

@Remnaโ€ขUpdated 6 days ago
7 getUserById,
8 getUserContacts
9} from "../database/queries.ts";
10import type { ApiResponse, Chat } from "../../shared/types.ts";
11
239 }
240
241 // In a real implementation, you'd remove the participant from the database
242 // For now, just return success
243 return c.json<ApiResponse>({
306 }
307
308 // In a real implementation, you'd update the group details in the database
309 // For now, just return success
310 return c.json<ApiResponse>({

Remnachatchat.ts2 matches

@Remnaโ€ขUpdated 6 days ago
8 getChatMessages,
9 getUserById
10} from "../database/queries.ts";
11import type { ApiResponse, Chat, Message } from "../../shared/types.ts";
12
194 }
195
196 // In a real implementation, you'd mark messages as read in the database
197 // For now, just return success
198 return c.json<ApiResponse>({

Remnachatcontacts.ts1 match

@Remnaโ€ขUpdated 6 days ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { requireAuth } from "./auth.ts";
3import { addContact, getUserContacts, getUserByUsername, getUserByEmail } from "../database/queries.ts";
4import type { ApiResponse, Contact } from "../../shared/types.ts";
5

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago