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=2&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"(562ms)

reactHonoStarterREADME.md1 match

@lightweightโ€ขUpdated 6 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.

Smart_Expense_Trackerindex.ts3 matches

@gunjana_04โ€ขUpdated 6 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 expenses from "./routes/expenses.ts";
5import goals from "./routes/goals.ts";
15});
16
17// Initialize database on startup
18await runMigrations();
19
69 <p class="text-sm text-blue-800">
70 <strong>API Status:</strong> โœ… Backend is running<br>
71 <strong>Database:</strong> โœ… Initialized<br>
72 <strong>Frontend:</strong> โŒ Not found
73 </p>

Smart_Expense_Trackeruser.ts1 match

@gunjana_04โ€ขUpdated 6 hours ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getUser, updateUser, setBudget, getBudgets } from "../database/queries.ts";
3import { getMonthYear } from "../../shared/utils.ts";
4

Smart_Expense_Trackeranalytics.ts1 match

@gunjana_04โ€ขUpdated 6 hours ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { getMonthlyReport, getCategorySpending, getUser, getGoals, getBudgets } from "../database/queries.ts";
3import { generateSavingsInsights, generateMotivationalMessage, getMonthYear } from "../../shared/utils.ts";
4

Smart_Expense_Trackergoals.ts1 match

@gunjana_04โ€ขUpdated 6 hours ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { addGoal, getGoals, updateGoalProgress, deleteGoal, getTravelDestinations } from "../database/queries.ts";
3
4const goals = new Hono();

Smart_Expense_Trackerexpenses.ts1 match

@gunjana_04โ€ขUpdated 6 hours ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { addExpense, getExpenses, getExpensesByMonth, deleteExpense } from "../database/queries.ts";
3import { getMonthYear } from "../../shared/utils.ts";
4

Smart_Expense_Trackermigrations.ts3 matches

@gunjana_04โ€ขUpdated 6 hours ago
1import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
2
3// Database schema for the expense tracker
4export async function runMigrations() {
5 console.log("Running database migrations...");
6
7 // Users table
158 }
159
160 console.log("Database migrations completed!");
161}

Smart_Expense_TrackerREADME.md3 matches

@gunjana_04โ€ขUpdated 6 hours ago
33```
34โ”œโ”€โ”€ backend/
35โ”‚ โ”œโ”€โ”€ database/
36โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema
37โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database operations
38โ”‚ โ”œโ”€โ”€ routes/
39โ”‚ โ”‚ โ”œโ”€โ”€ expenses.ts # Expense CRUD operations

untitled-9454README.md2 matches

@Varun07โ€ขUpdated 6 hours ago
8- ๐Ÿ“ User registration
9- ๐Ÿช Session management with cookies
10- ๐Ÿ’พ SQLite database for user storage
11- ๐ŸŽจ Beautiful UI with TailwindCSS
12- ๐Ÿ“ฑ Responsive design
41- `GET /api/auth` - Check authentication status
42
43## Database Schema
44
45The app uses SQLite with a simple users table:

untitled-9454index.ts5 matches

@Varun07โ€ขUpdated 6 hours ago
11});
12
13// Database setup
14const TABLE_NAME = 'login_users_1';
15
16// Initialize database
17async function initDatabase() {
18 await sqlite.execute(`CREATE TABLE IF NOT EXISTS ${TABLE_NAME} (
19 id INTEGER PRIMARY KEY AUTOINCREMENT,
34}
35
36// Initialize database on startup
37await initDatabase();
38
39// Serve static files

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago