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/$1?q=database&page=5&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 5445 results for "database"(855ms)

Towniequeries.tsx1 match

@c15rโ€ขUpdated 12 hours ago
4import { INFERENCE_CALLS_TABLE, USAGE_TABLE } from "./schema.tsx";
5
6// Eventually we'll have a user database,
7// but in the meantime, we can cache user info in memory
8const userIdCache: { [key: string]: any } = {};

Townie.cursorrules2 matches

@c15rโ€ขUpdated 12 hours ago
198```
199โ”œโ”€โ”€ backend/
200โ”‚ โ”œโ”€โ”€ database/
201โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
202โ”‚ โ”‚ โ”œโ”€โ”€ queries.ts # DB query functions
257 ```
258
259### Database Patterns
260- Run migrations on startup or comment out for performance
261- Change table names when modifying schemas rather than altering

Tumiscript.js2 matches

@Yoyosโ€ขUpdated 19 hours ago
248 'Data structures and algorithms',
249 'Object-oriented programming',
250 'Database basics',
251 'Software development principles'
252 ],
254 'Python game development',
255 'Data analysis project',
256 'Web application with database',
257 'Algorithm visualization tool'
258 ]

Tumiindex.ts1 match

@Yoyosโ€ขUpdated 19 hours ago
24 console.log("Contact form submission:", body);
25
26 // Here you could add email sending or database storage
27 return c.json({ success: true, message: "Thank you for your interest!" });
28});

Pickindex.ts3 matches

@Zobiโ€ขUpdated 20 hours ago
772 name: 'Advanced',
773 duration: '3 months',
774 topics: ['Advanced JavaScript', 'Backend basics', 'Database integration', 'Deployment'],
775 projects: ['Full-stack application', 'Dynamic website', 'Professional project']
776 }
844 name: 'Advanced',
845 duration: '3 months',
846 topics: ['Advanced algorithms', 'Software engineering', 'Database design', 'API development'],
847 projects: ['Full application', 'Database project', 'API integration']
848 }
849 ]

Pickindex.html3 matches

@Zobiโ€ขUpdated 20 hours ago
772 name: 'Advanced',
773 duration: '3 months',
774 topics: ['Advanced JavaScript', 'Backend basics', 'Database integration', 'Deployment'],
775 projects: ['Full-stack application', 'Dynamic website', 'Professional project']
776 }
844 name: 'Advanced',
845 duration: '3 months',
846 topics: ['Advanced algorithms', 'Software engineering', 'Database design', 'API development'],
847 projects: ['Full application', 'Database project', 'API integration']
848 }
849 ]

ProtoShareindex.ts2 matches

@c15rโ€ขUpdated 22 hours ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { runMigrations } from "./database/migrations.ts";
3import { auth } from "./routes/auth.ts";
4import { content } from "./routes/content.ts";
13});
14
15// Run database migrations on startup
16await runMigrations();
17

ProtoSharecontent.ts2 matches

@c15rโ€ขUpdated 22 hours ago
6 getUserByBearerToken,
7 updateBearerTokenLastUsed
8} from "../database/queries.ts";
9import { requireAuth } from "./auth.ts";
10import type { ContentRequest } from "../../shared/types.ts";
138});
139
140// Debug endpoint to test database
141content.get('/debug', async (c) => {
142 try {

ProtoShareauth.ts1 match

@c15rโ€ขUpdated 22 hours ago
17 getBearerTokensByUserId,
18 deleteBearerToken
19} from "../database/queries.ts";
20import type {
21 RegisterStartRequest,

ProtoSharestatic.ts1 match

@c15rโ€ขUpdated 23 hours 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 { getUserById } from "../database/queries.ts";
4import { getCookie } from "https://esm.sh/hono@3.11.7/cookie";
5

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago