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=3&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"(754ms)

cerebras_codermain.tsx2 matches

@Catspindevโ€ขUpdated 6 hours ago
1import { serveFile } from "https://esm.town/v/std/utils/index.ts";
2import { generateCode } from "./backend/generate-code.ts";
3import { createTables } from "./database/migrations.ts";
4import { createProject, getCode, getNextVersionNumber, insertVersion } from "./database/queries.ts";
5
6await createTables();

reactHonoStarterREADME.md1 match

@stdโ€ขUpdated 7 hours ago
21## Further resources
22
23- [React Hono Example](https://www.val.town/x/stevekrouse/reactHonoExample) is a bigger example project, with a SQLite database table, queries, client-side CSS, a favicon, and shared code that runs on both client and server.

Websiteindex.ts2 matches

@w_acheโ€ขUpdated 7 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 { runMigrations } from "./database/migrations.ts";
4import api from "./routes/api.ts";
5
11});
12
13// Initialize database
14await runMigrations();
15

Websiteapi.ts1 match

@w_acheโ€ขUpdated 7 hours ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getAllProducts, getProductById, createTransaction } from "../database/queries.ts";
3import type { PurchaseRequest, PurchaseResponse } from "../../shared/types.ts";
4

WebsiteREADME.md2 matches

@w_acheโ€ขUpdated 7 hours ago
8- Purchase simulation with transaction logging
9- Simple, clean design with CSS styling
10- SQLite database for storing products and transactions
11
12## Structure
13
14- `backend/index.ts` - Main Hono server with API routes
15- `backend/database/` - Database setup and queries
16- `frontend/` - HTML, CSS, and JavaScript for the website
17- `shared/` - Shared types and utilities

cREADME.md5 matches

@Sujal5โ€ขUpdated 7 hours ago
22```
23โ”œโ”€โ”€ backend/
24โ”‚ โ”œโ”€โ”€ database/
25โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema
26โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database operations
27โ”‚ โ”œโ”€โ”€ routes/
28โ”‚ โ”‚ โ”œโ”€โ”€ auth.ts # Authentication routes
52- **Backend**: Hono (TypeScript)
53- **Frontend**: React with TypeScript
54- **Database**: SQLite
55- **Styling**: TailwindCSS
56- **PDF Generation**: jsPDF
59## Getting Started
60
611. The application will automatically set up the database on first run
622. **Admin Login Credentials**:
63 - **Email**: `admin@fabrication.com`

cindex.ts2 matches

@Sujal5โ€ขUpdated 7 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 bills from "./routes/bills.ts";
13});
14
15// Initialize database on startup
16await runMigrations();
17

cmigrations.ts1 match

@Sujal5โ€ขUpdated 7 hours ago
76 }
77
78 console.log("Database migrations completed successfully");
79}

expresswebindex.ts1 match

@muhdsaeed1โ€ขUpdated 10 hours ago
17app.use('*', errorHandler);
18
19// Initialize database (similar to connecting to MongoDB)
20await UserModel.init();
21

expresswebREADME.md2 matches

@muhdsaeed1โ€ขUpdated 10 hours ago
8
9- **Express โ†’ Hono**: Web framework for routing and middleware
10- **MongoDB/Mongoose โ†’ SQLite**: Database with ORM-like patterns
11- **Node.js โ†’ Deno**: Runtime environment
12
133## Development Notes
134
135- Database is automatically initialized on startup
136- SQLite table is created if it doesn't exist
137- All responses follow a consistent JSON structure

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago