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/?q=database&page=296&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 3427 results for "database"(475ms)

vs_codemain.tsx1 match

@AIWB•Updated 2 months ago
31 const password = url.searchParams.get("password");
32
33 // In a real application, you would validate the username and password against a database
34 if (username === "demo" && password === "password") {
35 const token = await generateToken(username);

cerebras_coderindex2 matches

@mdkashifraja•Updated 2 months ago
1import { generateCode } from "./backend/generate-code";
2import { createTables } from "./database/migrations";
3import { createProject, getCode, getNextVersionNumber, insertVersion } from "./database/queries";
4
5async function servePublicFile(path: string): Promise<Response> {

cerebras_coderindex2 matches

@huynq•Updated 2 months ago
1import { generateCode } from "./backend/generate-code";
2import { createTables } from "./database/migrations";
3import { createProject, getCode, getNextVersionNumber, insertVersion } from "./database/queries";
4
5async function servePublicFile(path: string): Promise<Response> {

punctualIndigoMeerkatmain.tsx3 matches

@gigmx•Updated 2 months ago
6const DISCORD_WEBHOOK_URL = "https://discord.com/api/webhooks/1340020239634796596/j-My1DvuPPHy_rxcAiz3lQwKbIw_guMkhTAm3Nb0dPIyo-YHj17zWjXf1AfaGKqTjtHN";
7
8// Initialize database
9await initDatabase();
10
11async function initDatabase() {
12 await sqlite.execute(`
13 CREATE TABLE IF NOT EXISTS ${KEY}_characters_${SCHEMA_VERSION} (

logicalIvoryWrenmain.tsx2 matches

@toowired•Updated 2 months ago
3import { handleHistory } from 'https://esm.town/v/02bea313-4abc-475e-987f-68da0b110d85/api/history';
4import { handleAnalyze } from 'https://esm.town/v/02bea313-4abc-475e-987f-68da0b110d85/api/analyze';
5import { setupDatabase } from 'https://esm.town/v/02bea313-4abc-475e-987f-68da0b110d85/db';
6import { App } from 'https://esm.town/v/02bea313-4abc-475e-987f-68da0b110d85/App';
7
8export default async function server(request) {
9 await setupDatabase();
10
11 const url = new URL(request.url);

vivaciousBrownBeemain.tsx2 matches

@toowired•Updated 2 months ago
3import { handleHistory } from 'https://esm.town/v/02bea313-4abc-475e-987f-68da0b110d85/api/history';
4import { handleAnalyze } from 'https://esm.town/v/02bea313-4abc-475e-987f-68da0b110d85/api/analyze';
5import { setupDatabase } from 'https://esm.town/v/02bea313-4abc-475e-987f-68da0b110d85/db';
6import { App } from 'https://esm.town/v/02bea313-4abc-475e-987f-68da0b110d85/App';
7
8export default async function server(request) {
9 await setupDatabase();
10
11 const url = new URL(request.url);

src_indexmain.tsx2 matches

@toowired•Updated 2 months ago
3import { handleHistory } from 'https://esm.town/v/02bea313-4abc-475e-987f-68da0b110d85/api/history';
4import { handleAnalyze } from 'https://esm.town/v/02bea313-4abc-475e-987f-68da0b110d85/api/analyze';
5import { setupDatabase } from 'https://esm.town/v/02bea313-4abc-475e-987f-68da0b110d85/db';
6import { App } from 'https://esm.town/v/02bea313-4abc-475e-987f-68da0b110d85/App';
7
8export default async function server(request) {
9 await setupDatabase();
10
11 const url = new URL(request.url);

diverseAmberReindeerREADME.md1 match

@melissanf•Updated 2 months ago
26- **Townie AI** – AI-based automation
27- **OpenAI API** – For generating blog content
28- **Built-in Databases** – To store and retrieve topics (if needed)
29
30---

cerebras_coderindex2 matches

@Priyanshu_23•Updated 2 months ago
1import { generateCode } from "./backend/generate-code";
2import { createTables } from "./database/migrations";
3import { createProject, getCode, getNextVersionNumber, insertVersion } from "./database/queries";
4
5async function servePublicFile(path: string): Promise<Response> {

blogIdeaGeneratorAppREADME.md1 match

@melissanf•Updated 2 months ago
16* Townie AI – AI-based automation
17* OpenAI API – For generating blog content
18* Built-in Databases – To store and retrieve topics (if needed)
19* How to Deploy & Share
20* Run the app on Townie AI

bookmarksDatabase

@s3thi•Updated 2 months ago

sqLiteDatabase1 file match

@ideofunk•Updated 5 months ago