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?q=database&page=190&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 7179 results for "database"(691ms)

Tarunkumarwebsitemigrations.ts1 match

@Tarunkumarโ€ขUpdated 1 week ago
82 `);
83
84 console.log("Database migrations completed successfully");
85}

TarunkumarwebsiteREADME.md5 matches

@Tarunkumarโ€ขUpdated 1 week ago
23- **Frontend**: React 18.2.0 with TypeScript
24- **Backend**: Hono.js API framework
25- **Database**: SQLite for user data and bookings
26- **Styling**: TailwindCSS with custom futuristic components
27- **Storage**: Val Town Blob for user preferences
30```
31โ”œโ”€โ”€ backend/
32โ”‚ โ”œโ”€โ”€ database/
33โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema
34โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database operations
35โ”‚ โ”œโ”€โ”€ routes/
36โ”‚ โ”‚ โ”œโ”€โ”€ auth.ts # Authentication routes
571. The backend API runs on `/backend/index.ts`
582. Frontend is served from `/frontend/index.html`
593. Database is automatically initialized on first run
60
61## API Endpoints

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();

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago