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/$%7BsvgDataUrl%7D?q=react&page=11&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=react

Returns an array of strings in format "username" or "username/projectName"

Found 17012 results for "react"(2244ms)

tanstackReactHonoExampleREADME.md5 matches

@laurynasโ€ขUpdated 2 days ago
1# React + TanStack + Hono Val Town Project
2
3Full-stack message board built for Val Town.
11
12### Frontend
13- React 19
14- TanStack Router (code-first routing)
15- TanStack Query (server state management)
31โ”‚ โ”œโ”€โ”€ database/ # Drizzle schema, migrations, and queries
32โ”‚ โ””โ”€โ”€ index.ts # Main Hono application
33โ”œโ”€โ”€ frontend/ # React app running in browser
34โ”‚ โ”œโ”€โ”€ components/ # React components
35โ”‚ โ”œโ”€โ”€ lib/ # Utilities and hooks
36โ”‚ โ””โ”€โ”€ router.tsx # TanStack Router configuration
40## API Endpoints
41
42- `GET /` - Serves the React application with initial data
43- `GET /api/messages` - Fetch all messages (JSON)
44- `POST /api/messages` - Create a new message

tanstackReactHonoExamplequeries.ts1 match

@laurynasโ€ขUpdated 2 days ago
1import { useQuery, useMutation, useQueryClient } from "https://esm.sh/@tanstack/react-query@^5.0.0?deps=react@19";
2import { type Message } from "../../shared/utils.ts";
3

tanstackReactHonoExampleindex.tsx2 matches

@laurynasโ€ขUpdated 2 days ago
1/** @jsxImportSource https://esm.sh/react@19 */
2import { createRoot } from "https://esm.sh/react-dom@19/client?deps=react@19";
3import { type Message } from "../shared/utils.ts";
4import { RouterApp } from "./router.tsx";

tanstackReactHonoExampleApp.tsx2 matches

@laurynasโ€ขUpdated 2 days ago
1/** @jsxImportSource https://esm.sh/react@19 */
2import React from "https://esm.sh/react@19";
3import { type Message, MESSAGE_LIMIT } from "../../shared/utils.ts";
4import { MessageInput } from "./MessageInput.tsx";

tanstackReactHonoExamplerouter.tsx5 matches

@laurynasโ€ขUpdated 2 days ago
1/** @jsxImportSource https://esm.sh/react@19 */
2import React from "https://esm.sh/react@19";
3import {
4 RootRoute,
7 createRouter,
8 RouterProvider,
9} from "https://esm.sh/@tanstack/react-router@^1.121.0?deps=react@19";
10import {
11 QueryClient,
12 QueryClientProvider,
13} from "https://esm.sh/@tanstack/react-query@^5.0.0?deps=react@19";
14import { App } from "./components/App.tsx";
15
59
60// Register the router for TypeScript
61declare module "@tanstack/react-router" {
62 interface Register {
63 router: typeof router;

Townie2PurchaseCreditsRoute.tsx2 matches

@charmaineโ€ขUpdated 2 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useEffect, useState } from "react";
3import { isProdBranch } from "../../shared/is-prod-branch.ts";
4

Townie2index.ts6 matches

@charmaineโ€ขUpdated 2 days ago
190 {
191 "imports": {
192 "react": "https://esm.sh/react@18.2.0?dev",
193 "react-dom": "https://esm.sh/react-dom@18.2.0/client?dev",
194 "react-router": "https://esm.sh/react-router@7.4.0?dev&deps=react@18.2.0,react-dom@18.2.0",
195 "react-use": "https://esm.sh/react-use?dev&deps=react@18.2.0,react-dom@18.2.0",
196 "@ai-sdk/react": "https://esm.sh/@ai-sdk/react?dev&deps=react@18.2.0,react-dom@18.2.0,zod@3.24",
197 "react-markdown": "https://esm.sh/react-markdown?dev&deps=react@18.2.0,react-dom@18.2.0"
198 }
199 }

Townie2ValTownLogo.tsx1 match

@charmaineโ€ขUpdated 2 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2
3export function ValTownLogo () {

Townie2useUser.tsx1 match

@charmaineโ€ขUpdated 2 days ago
1import { useState, useEffect } from "react";
2
3const USER_ENDPOINT = "/api/user";

Townie2useUsageStats.ts1 match

@charmaineโ€ขUpdated 2 days ago
1import { useEffect } from "react";
2
3export function useUsageStats(messages: any[], usages: any[]) {

tanstackReactHonoExample10 file matches

@laurynasโ€ขUpdated 3 hours ago

tanstackReactHonoExample10 file matches

@charmaineโ€ขUpdated 9 hours ago
effector
Write business logic with ease Meet the new standard for modern TypeScript development. Type-safe, reactive, framework-agnostic library to manage your business logic.
officialrajdeepsingh
Follow me if you learn more about JavaScript | TypeScript | React.js | Next.js | Linux | NixOS | Frontend Developer | https://linktr.ee/officialrajdeepsingh