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/$1?q=database&page=52&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 7207 results for "database"(2761ms)

Createbusinesses.ts3 matches

@Omosola_1•Updated 6 days ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { runMigrations } from "../database/migrations.ts";
3import { createBusiness, getBusinessById, getBusinesses } from "../database/queries.ts";
4import type { Business, BusinessFilters, ApiResponse } from "../../shared/types.ts";
5
6const app = new Hono();
7
8// Initialize database on first request
9let dbInitialized = false;
10async function ensureDbInitialized() {

Creatediscussions.ts3 matches

@Omosola_1•Updated 6 days ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { runMigrations } from "../database/migrations.ts";
3import { createDiscussion, getDiscussionById, getDiscussions } from "../database/queries.ts";
4import type { Discussion, DiscussionFilters, ApiResponse } from "../../shared/types.ts";
5
6const app = new Hono();
7
8// Initialize database on first request
9let dbInitialized = false;
10async function ensureDbInitialized() {

Testchat.ts1 match

@Alashakawee•Updated 6 days ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getRecentMessages, createMessage } from "../database/queries.ts";
3import type { CreateMessageRequest, ApiResponse } from "../../shared/types.ts";
4

LearnEasyusers.ts2 matches

@jibolad1•Updated 6 days ago
6 findTutorsBySubject,
7 getSchools
8} from "../database/queries.ts";
9import type { ApiResponse, Skill, User, SkillForm } from "../../shared/types.ts";
10
124 }
125
126 const { getUserById } = await import("../database/queries.ts");
127 const user = await getUserById(userId);
128

Attindex.ts6 matches

@mental•Updated 6 days ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { readFile } from "https://esm.town/v/std/utils/index.ts";
3import { runMigrations, seedSampleData } from "./database/migrations.ts";
4import studentsRoutes from "./routes/students.ts";
5import attendanceRoutes from "./routes/attendance.ts";
13});
14
15// Initialize database on startup
16let dbInitialized = false;
17async function initializeDatabase() {
18 if (!dbInitialized) {
19 await runMigrations();
32// Health check endpoint
33app.get("/api/health", async (c) => {
34 await initializeDatabase();
35 return c.json({
36 success: true,
43app.get("/", async (c) => {
44 try {
45 await initializeDatabase();
46
47 let html = await readFile("/frontend/index.html", import.meta.url);
76app.get("*", async (c) => {
77 try {
78 await initializeDatabase();
79
80 let html = await readFile("/frontend/index.html", import.meta.url);

Testjobs.ts1 match

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

Createevents.ts3 matches

@Omosola_1•Updated 6 days ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { runMigrations } from "../database/migrations.ts";
3import {
4 createEvent, getEventById, getEvents, createRSVP,
5 getEventRSVPs, getUserRSVP
6} from "../database/queries.ts";
7import type { Event, EventRSVP, EventFilters, ApiResponse } from "../../shared/types.ts";
8
9const app = new Hono();
10
11// Initialize database on first request
12let dbInitialized = false;
13async function ensureDbInitialized() {

SURGICALGALAapi.ts1 match

@Sanya56•Updated 6 days ago
8 getAllBodyRegions,
9 searchApproaches
10} from "../database/queries.ts";
11
12const api = new Hono();

LearnEasyauth.ts1 match

@jibolad1•Updated 6 days ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getCookie, setCookie, deleteCookie } from "https://esm.sh/hono@3.11.7/cookie";
3import { createUser, getUserByEmail, createSession, getSessionUser, deleteSession } from "../database/queries.ts";
4import type { LoginForm, RegisterForm, ApiResponse, User } from "../../shared/types.ts";
5

Testmigrations.ts1 match

@Alashakawee•Updated 6 days ago
25 )`);
26
27 console.log('Database migrations completed');
28}
29

bookmarksDatabase

@s3thi•Updated 3 months ago

sqLiteDatabase1 file match

@ideofunk•Updated 6 months ago