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/image-url.jpg?q=database&page=223&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 6963 results for "database"(867ms)

ALXREADME.md4 matches

@nancyghalyโ€ขUpdated 2 weeks ago
13```
14โ”œโ”€โ”€ backend/
15โ”‚ โ”œโ”€โ”€ database/
16โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Database schema
17โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database queries
18โ”‚ โ”œโ”€โ”€ index.ts # Main API entry point
19โ”‚ โ””โ”€โ”€ routes/ # API routes
32## Technologies Used
33
34- **Backend**: Hono (API framework), SQLite (database)
35- **Frontend**: React, TailwindCSS
36- **Shared**: TypeScript for type safety

twitterCompetitorMonitoringdb.ts2 matches

@jamiedubsโ€ขUpdated 2 weeks ago
4const TWEETS_TABLE = 'competitor_tweets';
5
6// Initialize the database
7export async function initDb() {
8 await sqlite.execute(`CREATE TABLE IF NOT EXISTS ${TWEETS_TABLE} (
15}
16
17// Store a tweet in the database
18export async function storeTweet(tweet: {
19 id: string;

fREADME.md2 matches

@damonlinโ€ขUpdated 2 weeks ago
14
15- Backend: Hono.js for API routing
16- Database: Val Town SQLite for storing tweets
17- Frontend: Simple HTML/CSS/JS with Tailwind CSS for styling
18
29
301. Check the browser console for errors
312. Ensure the database is properly initialized
323. Try refreshing the page
33

findex.ts5 matches

@damonlinโ€ขUpdated 2 weeks ago
14app.use("*", cors());
15
16// Database setup
17const TWEETS_TABLE = "twitter_clone_tweets";
18
19// Setup database
20async function setupDatabase() {
21 // Create tweets table
22 await sqlite.execute(`
40}
41
42// Initialize database
43await setupDatabase();
44
45// API Routes

untitled-682index.ts2 matches

@godinoartsโ€ขUpdated 2 weeks ago
2import { cors } from "https://esm.sh/hono@3.11.7/middleware/cors";
3import { serveFile, readFile } from "https://esm.town/v/std/utils/index.ts";
4import { runMigrations } from "./database/migrations.ts";
5import auth from "./routes/auth.ts";
6import kyc from "./routes/kyc.ts";
21app.use("*", cors());
22
23// Run database migrations
24app.use("*", async (c, next) => {
25 try {

untitled-682webhook.ts1 match

@godinoartsโ€ขUpdated 2 weeks ago
4 updateWalletBalance,
5 createTransaction
6} from "../database/queries.ts";
7import { WebhookEvent } from "../../shared/types.ts";
8import { generateTransactionReference } from "../../shared/utils.ts";

untitled-682support.ts1 match

@godinoartsโ€ขUpdated 2 weeks ago
7 createSupportMessage,
8 getSupportMessagesByChatId
9} from "../database/queries.ts";
10import { email } from "https://esm.town/v/std/email";
11import { SendMessageRequest } from "../../shared/types.ts";

untitled-682transaction.ts1 match

@godinoartsโ€ขUpdated 2 weeks ago
10 getTransactionLimitByTypeAndCurrency,
11 getTransactionLimitsByUserId
12} from "../database/queries.ts";
13import {
14 TransferRequest,

untitled-682wallet.ts1 match

@godinoartsโ€ขUpdated 2 weeks ago
6 getWalletByUserIdAndCurrency,
7 getUserById
8} from "../database/queries.ts";
9import { WalletCreationRequest, Currency } from "../../shared/types.ts";
10import { getBankDetailsByCurrency } from "../../shared/utils.ts";

untitled-682kyc.ts1 match

@godinoartsโ€ขUpdated 2 weeks ago
2import { blob } from "https://esm.town/v/std/blob";
3import { authMiddleware } from "./auth.ts";
4import { createKycSubmission, getKycSubmissionByUserId, updateKycStatus } from "../database/queries.ts";
5import { KycSubmissionRequest } from "../../shared/types.ts";
6import { doNamesMatch } from "../../shared/utils.ts";

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 6 months ago