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=90&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 5719 results for "database"(1127ms)

PointofSaledashboard.ts1 match

@Lenny254โ€ขUpdated 1 week ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { jwt } from "https://esm.sh/hono@3.11.7/jwt";
3import { getDashboardStats } from "../database/queries.ts";
4
5// Secret key for JWT - in production, use an environment variable

PointofSalesales.ts1 match

@Lenny254โ€ขUpdated 1 week ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { jwt } from "https://esm.sh/hono@3.11.7/jwt";
3import { createSale, getSaleById, getRecentSales } from "../database/queries.ts";
4
5// Secret key for JWT - in production, use an environment variable

PointofSaleproducts.ts1 match

@Lenny254โ€ขUpdated 1 week ago
8 deleteProduct,
9 updateProductStock
10} from "../database/queries.ts";
11
12// Secret key for JWT - in production, use an environment variable

PointofSaleauth.ts1 match

@Lenny254โ€ขUpdated 1 week ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { jwt } from "https://esm.sh/hono@3.11.7/jwt";
3import { createUser, getUserByUsername, verifyUser } from "../database/queries.ts";
4
5// Secret key for JWT - in production, use an environment variable

PointofSaleREADME.md2 matches

@Lenny254โ€ขUpdated 1 week ago
14## Project Structure
15
16- `/backend` - Server API and database operations
17- `/frontend` - User interface components and pages
18- `/shared` - Shared types and utilities
24## Technologies Used
25
26- Backend: Hono (API framework), SQLite (database)
27- Frontend: React, TailwindCSS
28- Shared: TypeScript for type definitions

TownieTODOs.md1 match

@maxmโ€ข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

Towniethink.ts1 match

@maxmโ€ข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."),

Towniesystem_prompt.txt2 matches

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

Towniesend-message.ts1 match

@maxmโ€ขUpdated 1 week ago
10 overLimit,
11 startTrackingUsage,
12} from "../database/queries.tsx";
13import {
14 getTextEditorTool,

Towniequeries.tsx1 match

@maxmโ€ขUpdated 1 week 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 } = {};

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago