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/$%7Burl%7D?q=database&page=329&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 4142 results for "database"(661ms)

OpenTownietownie.mdc2 matches

@nuloโ€ขUpdated 1 month ago
154```
155โ”œโ”€โ”€ backend/
156โ”‚ โ”œโ”€โ”€ database/
157โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
158โ”‚ โ”‚ โ”œโ”€โ”€ queries.ts # DB query functions
213 ```
214
215### Database Patterns
216- Run migrations on startup or comment out for performance
217- Change table names when modifying schemas rather than altering

OpenTownieTODOs.md1 match

@nuloโ€ขUpdated 1 month ago
15- [ ] Rebuild as React Router?
16- [ ] opentownie as a pr bot
17- [ ] 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
18- [ ] do a browser use or screenshot thing to give it access to its own visual output
19- [ ] Have it default to creating a new branch off main and then embedding and iframe to the resulting http val and give you a link to a pr opening url

OpenTowniethink.ts1 match

@nuloโ€ขUpdated 1 month 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."),

OpenTowniesystem_prompt.txt2 matches

@nuloโ€ขUpdated 1 month ago
149```
150โ”œโ”€โ”€ backend/
151โ”‚ โ”œโ”€โ”€ database/
152โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
153โ”‚ โ”‚ โ”œโ”€โ”€ queries.ts # DB query functions
208 ```
209
210### Database Patterns
211- Run migrations on startup or comment out for performance
212- Change table names when modifying schemas rather than altering
vtProjectSearch

vtProjectSearchdb.ts3 matches

@maxmโ€ขUpdated 1 month ago
172
173/**
174 * Get database statistics for the homepage
175 */
176export async function getSearchStats(): Promise<{
837 const offset = (page - 1) * pageSize;
838
839 // Start all database queries in parallel
840 // 1. Launch count queries
841 const countsPromise = Promise.all([
924 );
925
926 // Wait for all database operations to complete in parallel
927 const [
928 [totalFileResults, totalProjectResults, totalUserResults],

reactRouter7Exampleindex.ts3 matches

@stevekrouseโ€ขUpdated 1 month ago
9import { readFile, serveFile } from "https://esm.town/v/std/utils@85-main/index.ts";
10import { routes } from "../shared/routes.ts";
11import { initializeDatabase } from "./database/migrations.ts";
12
13// Initialize the database
14await initializeDatabase();
15
16// Create the Hono app

reactRouter7ExampleREADME.md3 matches

@stevekrouseโ€ขUpdated 1 month ago
17```
18โ”œโ”€โ”€ backend/
19โ”‚ โ”œโ”€โ”€ database/
20โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema
21โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database queries
22โ”‚ โ””โ”€โ”€ index.ts # Server entry point
23โ”œโ”€โ”€ frontend/

reactRouter7Exampleindex.ts3 matches

@tmcwโ€ขUpdated 1 month ago
9import { readFile, serveFile } from "https://esm.town/v/std/utils@85-main/index.ts";
10import { routes } from "../shared/routes.ts";
11import { initializeDatabase } from "./database/migrations.ts";
12
13// Initialize the database
14await initializeDatabase();
15
16// Create the Hono app

reactRouter7ExampleTopics.action.ts1 match

@tmcwโ€ขUpdated 1 month ago
1import { ActionFunctionArgs, redirect } from "https://esm.sh/react-router@7.5.0?deps=react@18.2.0,react-dom@18.2.0";
2import { createTopic } from "../backend/database/queries.ts";
3
4export async function action({ request }: ActionFunctionArgs) {

reactRouter7ExampleTopicMessage.loader.ts1 match

@tmcwโ€ขUpdated 1 month ago
1import { LoaderFunctionArgs } from "https://esm.sh/react-router@7.5.0?deps=react@18.2.0,react-dom@18.2.0";
2import { getTopicById, getMessageById, getMessagesByTopicId } from "../backend/database/queries.ts";
3
4export async function loader({ params }: LoaderFunctionArgs) {

bookmarksDatabase

@s3thiโ€ขUpdated 2 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 5 months ago