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/$%7Bart_info.art.src%7D?q=database&page=62&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 4019 results for "database"(1694ms)

WillpersonalWebsiteHTTP1011 match

@willthereaderβ€’Updated 1 week ago
26<ul>
27 <li><strong>HTTP</strong> is the movie-rental kiosk interfaceβ€”how you browse, check out, and return movies.</li>
28 <li><strong>Client</strong> is the customer at the kiosk; <strong>Server</strong> is the machine’s inventory database.</li>
29 <li>An <strong>HTTP Request</strong> is your on-screen selection:</li>
30 <li><strong>Method</strong> β†’ Action button (β€œ<strong>GET</strong>” to view details, β€œ<strong>PUT</strong>” to update return date, β€œ<strong>POST</strong>” to add a new rental);</li>

OpenTownie_jacksonTODOs.md1 match

@stevekrouseβ€’Updated 1 week ago
9- [ ] make it one click to branch off like old jp townie demos
10- [ ] opentownie as a pr bot
11- [ ] give it the ability to see its own client-side and server-side logs by building a middleware that shoves them into a SQL light database date and then give it a tool to access them
12- [ ] do a browser use or screenshot thing to give it access to its own visual output
13- [ ] Have it default to creating a new branch off main

OpenTownie_jacksonthink.ts1 match

@stevekrouseβ€’Updated 1 week ago
7export const thinkTool = tool({
8 description:
9 "Use the tool to think about something. It will not obtain new information or change the database, but just append the thought to the log. Use it when complex reasoning or some cache memory is needed.",
10 parameters: z.object({
11 thought: z.string().describe("A thought to think about."),

OpenTownie_jacksonsystem_prompt.txt2 matches

@stevekrouseβ€’Updated 1 week ago
192```
193β”œβ”€β”€ backend/
194β”‚ β”œβ”€β”€ database/
195β”‚ β”‚ β”œβ”€β”€ migrations.ts # Schema definitions
196β”‚ β”‚ β”œβ”€β”€ queries.ts # DB query functions
251 ```
252
253### Database Patterns
254- Run migrations on startup or comment out for performance
255- Change table names when modifying schemas rather than altering

OpenTownieTODOs.md1 match

@jxnblkβ€’Updated 1 week ago
9- [ ] make it one click to branch off like old jp townie demos
10- [ ] opentownie as a pr bot
11- [ ] give it the ability to see its own client-side and server-side logs by building a middleware that shoves them into a SQL light database date and then give it a tool to access them
12- [ ] do a browser use or screenshot thing to give it access to its own visual output
13- [ ] Have it default to creating a new branch off main
vtProjectSearch

vtProjectSearchapi.tsx3 matches

@dcm31β€’Updated 1 week ago
179 const needFullDocsData = searchTerm && (resultType === "docs" || format.toLowerCase() === "json");
180
181 // Run database search in parallel with appropriate docs search
182 const [searchResponse, docsResult] = await Promise.all([
183 // Database search for files, vals, users
184 searchTerm
185 ? searchFileContentWithContext(searchTerm, 2, page, pageSize, resultType !== "docs" ? resultType : undefined) // Show 2 lines of context
222 };
223
224 // Only get database stats when needed (no query or empty results)
225 const totalResults = combinedResponse.totalFileResults
226 + combinedResponse.totalValResults

StevensgetWeather.ts1 match

@dannyboyβ€’Updated 1 week ago
126 }
127
128 console.log(`Weather forecast updated in the database.`);
129 return summary;
130}

policy2main.tsx1 match

@salonβ€’Updated 1 week ago
331. **text**: The specific text snippet in the document identifying the reference.
342. **context**: The surrounding sentence or phrase providing context for the reference.
353. **potentialUrl**: If a URL is explicitly mentioned or clearly implied (e.g., for a specific law database), extract it. Otherwise, null.
364. **relevance**: Briefly describe the purpose or relevance of this reference in its context (e.g., "Cited as legal basis", "Source of statistical data", "Related work for comparison", "Further reading resource", "Governing standard", "Mentioned organization").
37

MiniAppStarterREADME.md1 match

@applefatherβ€’Updated 1 week ago
9- The **client-side entrypoint** is `/frontend/index.html`, which in turn imports `/frontend/index.tsx`, which in turn imports the React app from `/frontend/App.tsx`.
10
11[React Hono Example](https://www.val.town/x/stevekrouse/reactHonoExample) is a fuller featured example project, with a SQLite database table, queries, client-side CSS and a favicon, and some shared code that runs on both client and server.

MiniAppStarterApp.tsx5 matches

@applefatherβ€’Updated 1 week ago
13 const navLinks = [
14 { name: "Farcaster SDK", path: "/" },
15 { name: "Database", path: "/db" },
16 { name: "About", path: "/about" },
17 ];
35 <Routes>
36 <Route path="/" element={<FarcasterMiniApp />} />
37 <Route path="/db" element={<Database />} />
38 <Route path="/about" element={<About />} />
39 <Route path="/neynar" element={<Neynar />} />
50 <div className="">✷ Hono + React + Tailwind</div>
51 <div className="">✷ React Router + React Query</div>
52 <div className="">✷ Built-in database (blob storage)</div>
53 <div className="">✷ Farcaster mini app manifest + webhook + embed metadata</div>
54 <div className="">✷ Farcaster notifications (storing tokens, sending recurring notifications, ...)</div>
66}
67
68function Database() {
69 const queryFn = () => fetch("/api/counter/get").then((r) => r.json());
70 const { data, refetch } = useQuery({ queryKey: ["counter"], queryFn });
71 return (
72 <Section className="flex flex-col items-start gap-3 m-5">
73 {/* <h2 className="font-semibold">Database Example</h2> */}
74 <div className="">Counter value: {data}</div>
75 <Button variant="outline" onClick={() => fetch("/api/counter/increment").then(refetch)}>

bookmarksDatabase

@s3thiβ€’Updated 2 months ago

sqLiteDatabase1 file match

@ideofunkβ€’Updated 5 months ago