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/?q=database&page=262&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 2798 results for "database"(596ms)

AlwaysHereindex.ts3 matches

@varun1352•Updated 1 month ago
9import userApi from "./api/user.ts";
10import googleOAuth from "./auth/googleOAuth.ts";
11import { createTables } from "./database/migrations.ts";
12const app = new Hono();
13
16});
17
18app.get("/setupDatabase", async c => {
19 createTables();
20 return c.text("Database Setup Successful");
21});
22app.route("/auth/google", googleOAuth);

AlwaysHeregoogleOAuth.ts1 match

@varun1352•Updated 1 month ago
1import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
2import { Hono } from "npm:hono";
3import { USERS } from "../database/migrations.ts"; // Make sure migrations defines this table
4
5const CLIENT_ID = "your_google_client_id";

AlwaysHereuser.ts1 match

@varun1352•Updated 1 month ago
1import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
2import { Hono } from "npm:hono";
3import { USERS } from "../database/migrations.ts";
4
5const user = new Hono();

AlwaysHeretranscripts.ts1 match

@varun1352•Updated 1 month ago
1import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
2import { Hono } from "npm:hono";
3import { CONVERSATIONS } from "../database/migrations.ts";
4
5const transcripts = new Hono();

AlwaysHererecordings.ts1 match

@varun1352•Updated 1 month ago
1import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
2import { Hono } from "npm:hono";
3import { RECORDINGS } from "../database/migrations.ts";
4
5const recordings = new Hono();

AlwaysHerefriends.ts1 match

@varun1352•Updated 1 month ago
1import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
2import { Hono } from "npm:hono";
3import { FRIENDS } from "../database/migrations.ts";
4
5const friends = new Hono();

AlwaysHerechat.ts1 match

@varun1352•Updated 1 month ago
1import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
2import { Hono } from "npm:hono";
3import { CONVERSATIONS } from "../database/migrations.ts";
4
5const chat = new Hono();

forky_1742582577934README.md1 match

@charmaine•Updated 1 month ago
7The **client-side entrypoint** is `/frontend/index.html`, which in turn imports `/frontend/index.tsx`, which in turn imports the React app from `/frontend/components/App.tsx`.
8
9[React Hono Example](https://www.val.town/x/stevekrouse/reactHonoExample) is a fuller featured example project, with a SQLite database table, queries, client-side CSS and a favicon, and some shared code that runs on both client and server.

forky_1742579787862README.md1 match

@shouser•Updated 1 month ago
7The **client-side entrypoint** is `/frontend/index.html`, which in turn imports `/frontend/index.tsx`, which in turn imports the React app from `/frontend/components/App.tsx`.
8
9[React Hono Example](https://www.val.town/x/stevekrouse/reactHonoExample) is a fuller featured example project, with a SQLite database table, queries, client-side CSS and a favicon, and some shared code that runs on both client and server.

pondiversecreateDatabase.ts0 matches

@todepond•Updated 1 month ago