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=371&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 8244 results for "database"(4081ms)

linkInBioTemplatestatic.ts1 match

@Joeyhanniโ€ขUpdated 1 month 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 { getJobPostings, getChatMessages } from "../database/queries.ts";
4
5const static_routes = new Hono();

linkInBioTemplatechat.ts1 match

@Joeyhanniโ€ขUpdated 1 month ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { createChatMessage, getChatMessages } from "../database/queries.ts";
3
4const chat = new Hono();

linkInBioTemplatejobs.ts1 match

@Joeyhanniโ€ขUpdated 1 month ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { createJobPosting, getJobPostings, getJobPostingById } from "../database/queries.ts";
3
4const jobs = new Hono();

linkInBioTemplatemigrations.ts2 matches

@Joeyhanniโ€ขUpdated 1 month ago
6
7/**
8 * Run database migrations to set up the schema
9 */
10export async function runMigrations() {
31 `);
32
33 console.log("Database migrations completed");
34}

linkInBioTemplateREADME.md2 matches

@Joeyhanniโ€ขUpdated 1 month ago
16
17- Backend: Hono.js API framework
18- Database: SQLite for data persistence
19- Frontend: HTML, JavaScript with Tailwind CSS
20- Data Refresh: Polling for chat updates
24```
25โ”œโ”€โ”€ backend/
26โ”‚ โ”œโ”€โ”€ database/
27โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
28โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # DB query functions

bragreelOLDREADME.md1 match

@lightweightโ€ขUpdated 1 month ago
221. Set up a `CLAUDE_API_KEY` environment variable in Val Town with your Anthropic API key
232. Configure your Notion integration to send webhooks to this endpoint
243. Ensure your Notion database has the following properties:
25 - URL (URL type)
26 - Name (Title type)

Satrancmigrations.ts1 match

@erensโ€ขUpdated 1 month ago
6const LEAGUE_STANDINGS_TABLE = "chess_league_standings_1";
7
8export async function setupDatabase() {
9 // Create users table
10 await sqlite.execute(`

Satrancindex.ts7 matches

@erensโ€ขUpdated 1 month ago
3import { readFile, serveFile } from "https://esm.town/v/std/utils@85-main/index.ts";
4import { parseProject } from "https://esm.town/v/std/utils@85-main/index.ts";
5import { setupDatabase } from "./database/migrations.ts";
6import { getUsers, createUser, getUserById, updateUserStats } from "./database/queries.ts";
7import { createGame, getGame, updateGameState, getActiveGames, getUserGames } from "./database/game-queries.ts";
8import { getLeagueStandings, updateLeagueStandings } from "./database/league-queries.ts";
9
10// Initialize the Hono app
19app.use("/*", cors());
20
21// Setup database on startup
22app.use("*", async (c, next) => {
23 try {
24 await setupDatabase();
25 } catch (error) {
26 console.error("Database setup error:", error);
27 }
28 return next();

TaskWahoindex.ts4 matches

@wahobdโ€ขUpdated 1 month ago
2import { cors } from "https://esm.sh/hono@3.11.7/middleware";
3import { serveFile, readFile } from "https://esm.town/v/std/utils@85-main/index.ts";
4import { initializeDatabase } from "./database/schema.ts";
5
6// Import routes
20});
21
22// Initialize database on startup
23app.use("*", async (c, next) => {
24 try {
25 await initializeDatabase();
26 } catch (error) {
27 console.error("Database initialization error:", error);
28 }
29 await next();

TaskWahouser.ts1 match

@wahobdโ€ขUpdated 1 month ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getUserById } from "../database/queries.ts";
3import { getAuthenticatedUser } from "../auth.ts";
4

customer-database-setup2 file matches

@stevenvapiโ€ขUpdated 3 days ago

prDatabase

@pdwโ€ขUpdated 1 week ago