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/image-url.jpg%20%22Optional%20title%22?q=database&page=193&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"(1196ms)

Tarunindex.ts2 matches

@Tarunkumarโ€ขUpdated 1 week 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 bookings from "./routes/bookings.ts";
14});
15
16// Initialize database
17await runMigrations();
18

Tarunpayment.ts1 match

@Tarunkumarโ€ขUpdated 1 week ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { createPayment, updatePaymentStatus, getBookingById, updateBookingStatus } from "../database/queries.ts";
3import { verifyToken } from "./auth.ts";
4import type { ApiResponse, Payment } from "../../shared/types.ts";

Tarunfeedback.ts1 match

@Tarunkumarโ€ขUpdated 1 week ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { createFeedback, getAllFeedback, getFeedbackByCategory, getUserById } from "../database/queries.ts";
3import { verifyToken } from "./auth.ts";
4import type { ApiResponse, Feedback } from "../../shared/types.ts";

Tarunbookings.ts1 match

@Tarunkumarโ€ขUpdated 1 week ago
7 getAllDestinations,
8 getDestinationsByCategory
9} from "../database/queries.ts";
10import { verifyToken } from "./auth.ts";
11import type { ApiResponse, Booking, Destination } from "../../shared/types.ts";

Tarunauth.ts1 match

@Tarunkumarโ€ขUpdated 1 week ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { createUser, getUserByEmail } from "../database/queries.ts";
3import { blob } from "https://esm.town/v/std/blob";
4import type { AuthResponse } from "../../shared/types.ts";

TarunREADME.md4 matches

@Tarunkumarโ€ขUpdated 1 week ago
23โ”œโ”€โ”€ backend/
24โ”‚ โ”œโ”€โ”€ index.ts # Main Hono server
25โ”‚ โ”œโ”€โ”€ database/
26โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema
27โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database operations
28โ”‚ โ””โ”€โ”€ routes/
29โ”‚ โ”œโ”€โ”€ auth.ts # Authentication routes
50- **Backend**: Hono (TypeScript)
51- **Frontend**: React 18.2.0 with TypeScript
52- **Database**: SQLite
53- **Styling**: TailwindCSS
54- **Animations**: CSS transitions and transforms

rashidindex.ts2 matches

@Rashid1473โ€ขUpdated 1 week ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { runMigrations } from "./database/migrations.ts";
3import devices from "./routes/devices.ts";
4import staticRoutes from "./routes/static.ts";
11});
12
13// Initialize database on startup
14await runMigrations();
15

rashidstatic.ts1 match

@Rashid1473โ€ขUpdated 1 week 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 { getAllDevices } from "../database/queries.ts";
4
5const staticRoutes = new Hono();

rashiddevices.ts1 match

@Rashid1473โ€ขUpdated 1 week ago
7 updateDevice,
8 deleteDevice
9} from "../database/queries.ts";
10import {
11 Device,

rashidmigrations.ts2 matches

@Rashid1473โ€ขUpdated 1 week ago
4
5export async function runMigrations() {
6 console.log('Running database migrations...');
7
8 // Create devices table
31 `);
32
33 console.log('Database migrations completed successfully');
34}
35

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago