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=24&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 4572 results for "database"(615ms)

FullstackStarterSearch.loader.ts1 match

@wolfโ€ขUpdated 2 days ago
1import { LoaderFunctionArgs } from "https://esm.sh/react-router@7.5.0?deps=react@18.2.0,react-dom@18.2.0";
2import { search } from "../backend/database/queries.ts";
3
4export async function loader({ request }: LoaderFunctionArgs) {

FullstackStarterTopic.loader.ts1 match

@wolfโ€ขUpdated 2 days ago
1import { LoaderFunctionArgs } from "https://esm.sh/react-router@7.5.0?deps=react@18.2.0,react-dom@18.2.0";
2import { getTopicById, getMessagesByTopicId } from "../backend/database/queries.ts";
3
4export async function loader({ params }: LoaderFunctionArgs) {

FullstackStarterTopicMessage.loader.ts1 match

@wolfโ€ขUpdated 2 days ago
1import { LoaderFunctionArgs } from "https://esm.sh/react-router@7.5.0?deps=react@18.2.0,react-dom@18.2.0";
2import { getTopicById, getMessageById, getMessagesByTopicId } from "../backend/database/queries.ts";
3
4export async function loader({ params }: LoaderFunctionArgs) {

FullstackStarterTopic.action.ts1 match

@wolfโ€ขUpdated 2 days ago
1import { ActionFunctionArgs } from "https://esm.sh/react-router@7.5.0?deps=react@18.2.0,react-dom@18.2.0";
2import { createMessage } from "../backend/database/queries.ts";
3
4export async function action({ request }: ActionFunctionArgs) {

TOSmessages.ts2 matches

@Zoemediaโ€ขUpdated 2 days ago
1import { Hono } from "https://esm.sh/hono@3.11.12";
2import { authenticate } from "../auth/auth.ts";
3import { updateLastActive } from "../database/users.ts";
4import {
5 createMessage,
9 getUnreadMessageCount,
10 getChatPartners
11} from "../database/messages.ts";
12
13const messageRoutes = new Hono();

TOSposts.ts3 matches

@Zoemediaโ€ขUpdated 2 days ago
1import { Hono } from "https://esm.sh/hono@3.11.12";
2import { authenticate } from "../auth/auth.ts";
3import { updateLastActive } from "../database/users.ts";
4import {
5 createPost,
9 likePost,
10 unlikePost
11} from "../database/posts.ts";
12import {
13 createComment,
14 getPostComments,
15 deleteComment
16} from "../database/comments.ts";
17import { blob } from "https://esm.town/v/std/blob";
18

TOSusers.ts2 matches

@Zoemediaโ€ขUpdated 2 days ago
7 getOnlineUsers,
8 searchUsers
9} from "../database/users.ts";
10import { getUserPosts, getLikedPosts } from "../database/posts.ts";
11import { blob } from "https://esm.town/v/std/blob";
12

TOSauth.ts1 match

@Zoemediaโ€ขUpdated 2 days ago
2import { compare, hash } from "https://esm.sh/bcrypt@5.1.1";
3import { User, PublicUser, AuthResponse } from "../../shared/types.ts";
4import { getUserByEmail, createUser, getPublicUserData, updateLastActive } from "../database/users.ts";
5
6// Secret key for JWT signing

TOSschema.ts2 matches

@Zoemediaโ€ขUpdated 2 days ago
1import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
2
3// Initialize all database tables
4export async function initializeDatabase() {
5 // Users table
6 await sqlite.execute(`

TOSREADME.md1 match

@Zoemediaโ€ขUpdated 2 days ago
41โ”‚ โ”œโ”€โ”€ index.ts # Main API entry point
42โ”‚ โ”œโ”€โ”€ auth/ # Authentication functions
43โ”‚ โ”œโ”€โ”€ database/ # Database operations
44โ”‚ โ”œโ”€โ”€ routes/ # API routes
45โ”‚ โ””โ”€โ”€ utils/ # Utility functions

bookmarksDatabase

@s3thiโ€ขUpdated 3 months ago

sqLiteDatabase1 file match

@ideofunkโ€ขUpdated 5 months ago