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%22Image%20title%22?q=database&page=275&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 7182 results for "database"(2803ms)

Newmigrations.ts1 match

@technicalmickeyโ€ขUpdated 3 weeks ago
51 `);
52
53 console.log("Database migrations completed successfully");
54}

NewREADME.md2 matches

@technicalmickeyโ€ขUpdated 3 weeks ago
14```
15โ”œโ”€โ”€ backend/
16โ”‚ โ”œโ”€โ”€ database/
17โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
18โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # DB query functions
46- **Frontend**: React, TailwindCSS
47- **Backend**: Deno, Hono (API framework)
48- **Database**: SQLite
49- **Authentication**: JWT-based authentication

Aindex.ts3 matches

@aditya_2629โ€ขUpdated 3 weeks ago
2import { cors } from "https://esm.sh/hono@3.11.7/middleware";
3import { readFile, serveFile } from "https://esm.town/v/std/utils@85-main/index.ts";
4import { initializeDatabase } from "./database/schema.ts";
5import authRoutes from "./routes/auth.ts";
6import userRoutes from "./routes/users.ts";
8import notificationRoutes from "./routes/notifications.ts";
9
10// Initialize the database
11await initializeDatabase();
12
13const app = new Hono();

Anotifications.ts1 match

@aditya_2629โ€ขUpdated 3 weeks ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getNotificationsByUser, getUnreadNotificationCount, markNotificationAsRead, markAllNotificationsAsRead, deleteNotification } from "../database/notifications.ts";
3import { verifyToken } from "../auth.ts";
4import { ApiResponse, Notification } from "../../shared/types.ts";

Atasks.ts3 matches

@aditya_2629โ€ขUpdated 3 weeks ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getAllTasks, getTaskById, getTasksByUser, createTask, updateTask, deleteTask } from "../database/tasks.ts";
3import { createNotification } from "../database/notifications.ts";
4import { getUserById } from "../database/users.ts";
5import { verifyToken } from "../auth.ts";
6import { ApiResponse, Task, CreateTaskRequest, UpdateTaskRequest } from "../../shared/types.ts";

Ausers.ts1 match

@aditya_2629โ€ขUpdated 3 weeks ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getAllUsers, getUserById, updateUser, deleteUser, updateUserPassword } from "../database/users.ts";
3import { verifyToken } from "../auth.ts";
4import { ApiResponse, User } from "../../shared/types.ts";

Aauth.ts1 match

@aditya_2629โ€ขUpdated 3 weeks ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { authenticateUser, generateToken, hashPassword } from "../auth.ts";
3import { createUser, getUserByUsername } from "../database/users.ts";
4import { ApiResponse, AuthResponse, UserCredentials } from "../../shared/types.ts";
5

Aauth.ts1 match

@aditya_2629โ€ขUpdated 3 weeks ago
1import { User } from "../shared/types.ts";
2import { verifyUserCredentials } from "./database/users.ts";
3
4// Simple JWT implementation for Val Town

Aschema.ts1 match

@aditya_2629โ€ขUpdated 3 weeks ago
6export const NOTIFICATIONS_TABLE = 'task_app_notifications';
7
8export async function initializeDatabase() {
9 // Create users table
10 await sqlite.execute(`

AREADME.md1 match

@aditya_2629โ€ขUpdated 3 weeks ago
14```
15โ”œโ”€โ”€ backend/
16โ”‚ โ”œโ”€โ”€ database/ # SQLite database setup and queries
17โ”‚ โ”œโ”€โ”€ routes/ # API routes for tasks, users, etc.
18โ”‚ โ””โ”€โ”€ index.ts # Main entry point for the backend

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago