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/$%7Bart_info.art.src%7D?q=database&page=204&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 7790 results for "database"(3878ms)

SchoolBankindex.ts2 matches

@Maruelโ€ขUpdated 2 weeks 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 auth from "./routes/auth.ts";
5import students from "./routes/students.ts";
13});
14
15// Initialize database on startup
16await runMigrations();
17

SchoolBankmessages.ts1 match

@Maruelโ€ขUpdated 2 weeks ago
6 markMessageAsRead,
7 getDashboardStats
8} from "../database/queries.ts";
9import type { CreateMessageRequest, ApiResponse, Message, DashboardStats } from "../../shared/types.ts";
10

SchoolBankstudents.ts1 match

@Maruelโ€ขUpdated 2 weeks ago
7 updateStudent,
8 deleteStudent
9} from "../database/queries.ts";
10import type { CreateStudentRequest, ApiResponse, Student } from "../../shared/types.ts";
11

SchoolBankauth.ts1 match

@Maruelโ€ขUpdated 2 weeks ago
2import { getCookie, setCookie, deleteCookie } from "https://esm.sh/hono@3.11.7/cookie";
3import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
4import { getUserByUsername, validateUserPassword, getUserById } from "../database/queries.ts";
5import type { LoginRequest, ApiResponse, User } from "../../shared/types.ts";
6

SchoolBankmigrations.ts7 matches

@Maruelโ€ขUpdated 2 weeks ago
1import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
2
3// Database schema setup for the school management system
4export async function runMigrations() {
5 console.log("Running database migrations...");
6
7 // Users table - for authentication and role management
95 }
96
97 console.log("Database migrations completed successfully!");
98}
99
100// Helper function to reset database (for development)
101export async function resetDatabase() {
102 console.log("Resetting database...");
103
104 await sqlite.execute("DROP TABLE IF EXISTS user_sessions");
108
109 await runMigrations();
110 console.log("Database reset completed!");
111}

SchoolBankREADME.md5 matches

@Maruelโ€ขUpdated 2 weeks ago
26```
27โ”œโ”€โ”€ backend/
28โ”‚ โ”œโ”€โ”€ database/
29โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema setup
30โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database query functions
31โ”‚ โ”œโ”€โ”€ routes/
32โ”‚ โ”‚ โ”œโ”€โ”€ students.ts # Student CRUD operations
50
51- **Backend**: Hono (TypeScript API framework)
52- **Database**: SQLite (Val Town hosted)
53- **Frontend**: React with TypeScript
54- **Styling**: TailwindCSS
57## Getting Started
58
591. The app will automatically set up the database on first run
602. Access the application through the HTTP endpoint
613. Default admin credentials will be created for initial setup

task_managerREADME.md4 matches

@flumadiโ€ขUpdated 2 weeks ago
16```
17โ”œโ”€โ”€ backend/
18โ”‚ โ”œโ”€โ”€ database/
19โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema setup
20โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database query functions
21โ”‚ โ”œโ”€โ”€ routes/
22โ”‚ โ”‚ โ”œโ”€โ”€ auth.ts # Authentication routes
77
78### Technical Features
79- SQLite database with proper schema design
80- RESTful API endpoints
81- Session-based authentication

task_managerindex.ts2 matches

@flumadiโ€ขUpdated 2 weeks 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 auth from "./routes/auth.ts";
5import tasks from "./routes/tasks.ts";
12});
13
14// Initialize database
15await runMigrations();
16

task_managertasks.ts1 match

@flumadiโ€ขUpdated 2 weeks ago
8 updateTaskCompletion,
9 deleteTask
10} from "../database/queries.ts";
11
12const tasks = new Hono();

task_managerauth.ts1 match

@flumadiโ€ขUpdated 2 weeks ago
10 getSessionByToken,
11 deleteSession
12} from "../database/queries.ts";
13
14const auth = new Hono();

bookmarksDatabase

@s3thiโ€ขUpdated 4 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 7 months ago