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/%22mailto:kurt@sachersolutions.ca/%22https:/fonts.gstatic.com//%22https:/cdn.twind.style/%22?q=react&page=1&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 21731 results for "react"(1182ms)

SonarMiniAppScreen.tsx4 matches

@moeUpdated 20 mins ago
1/** @jsxImportSource https://esm.sh/react@19 */
2import { useQuery } from 'https://esm.sh/@tanstack/react-query@5'
3import { Braces, IdCard, PanelBottom } from 'https://esm.sh/lucide-react@0.510.0'
4import { useParams } from 'https://esm.sh/react-router@7'
5
6import { Debug, NavOutlet, PaddedError, PaddedSpinner } from '../components/ui.tsx'

SonarApp.tsx5 matches

@moeUpdated 22 mins ago
1/** @jsxImportSource https://esm.sh/react@19 */
2import fcsdk from 'https://esm.sh/@farcaster/frame-sdk'
3import { Route, Routes, useLocation, useNavigate } from 'https://esm.sh/react-router@7'
4import { useEffect, useState } from 'https://esm.sh/react@19'
5
6import { Analytics } from './components/Analytics.tsx'
98 {/* <h2 className="">Features:</h2> */}
99 <div className="opacity-50">
100 <div className="">✷ Hono + React + Tailwind</div>
101 <div className="">✷ React Router + React Query</div>
102 <div className="">✷ Built-in database (blob storage)</div>
103 <div className="">✷ Farcaster mini app manifest + webhook + embed metadata</div>

SonarMiniAppsScreen.tsx3 matches

@moeUpdated 30 mins ago
1/** @jsxImportSource https://esm.sh/react@19 */
2import { LayoutGrid, ArrowUpRight } from 'https://esm.sh/lucide-react@0.510.0'
3import { useNavigate } from 'https://esm.sh/react-router@7'
4
5import { PaddedError, PaddedSpinner, Section, Button } from '../components/ui.tsx'

SonarSearchScreen.tsx4 matches

@moeUpdated 33 mins ago
1/** @jsxImportSource https://esm.sh/react@19 */
2import { Search } from 'https://esm.sh/lucide-react@0.510.0'
3import { NavLink, useNavigate } from 'https://esm.sh/react-router@7'
4import { useState } from 'https://esm.sh/react@19'
5
6import { Button, Input, PaddedError, Section } from '../components/ui.tsx'

zoomtest.cursorrules6 matches

@yawnxyzUpdated 1 hour ago
189- **Imports:** Use `https://esm.sh` for npm and Deno dependencies to ensure compatibility on server and browser
190- **Storage Strategy:** Only use backend storage if explicitly required; prefer simple static client-side sites
191- **React Configuration:** When using React libraries, pin versions with `?deps=react@18.2.0,react-dom@18.2.0` and start the file with `/** @jsxImportSource https://esm.sh/react@18.2.0 */`
192- Ensure all React dependencies and sub-dependencies are pinned to the same version
193- **Styling:** Default to using TailwindCSS via `<script src="https://cdn.twind.style" crossorigin></script>` unless otherwise specified
194
275 - Always run table creation before querying
276
2773. **React Configuration:**
278 - All React dependencies must be pinned to 18.2.0
279 - Always include `@jsxImportSource https://esm.sh/react@18.2.0` at the top of React files
280 - Rendering issues often come from mismatched React versions
281
2824. **File Handling:**

basic-html-starterREADME.md1 match

@xaelzephUpdated 2 hours ago
34
35If you want more interactivity, check out this
36[React starter](https://www.val.town/x/std/reactHonoStarter).
37
38### ← favicon.svg

untitled-1522ChatInterface.tsx4 matches

@jessicaoceanUpdated 2 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useRef, useEffect } from "https://esm.sh/react@18.2.0?deps=react@18.2.0";
3import type { Message, ConversationWithMessages, ConversationParticipant } from "../../shared/types.ts";
4import InviteModal from "./InviteModal.tsx";
44 }, [message]);
45
46 const handleSubmit = async (e: React.FormEvent) => {
47 e.preventDefault();
48 if (!message.trim() || isSending) return;
59 };
60
61 const handleKeyDown = (e: React.KeyboardEvent) => {
62 if (e.key === 'Enter' && !e.shiftKey) {
63 e.preventDefault();

untitled-1522README.md2 matches

@jessicaoceanUpdated 2 hours ago
32
33- `backend/` - Hono API server with authentication and group chat
34- `frontend/` - React chat interface with group features
35- `shared/` - Shared TypeScript types
36
38
39- **Backend**: Hono, LastLogin auth, SQLite, OpenAI, Server-Sent Events
40- **Frontend**: React, TailwindCSS, Real-time SSE connections
41- **Database**: SQLite with participant and invitation tables
42

untitled-1522App.tsx2 matches

@jessicaoceanUpdated 2 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0?deps=react@18.2.0";
3import LoginPage from "./LoginPage.tsx";
4import ConversationList from "./ConversationList.tsx";

untitled-1522ConversationList.tsx2 matches

@jessicaoceanUpdated 2 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0?deps=react@18.2.0";
3import type { ConversationWithParticipants } from "../../shared/types.ts";
4

wa-hono-react4 file matches

@nbbaierUpdated 2 days ago
react
franky47
Freelance software engineer, open-sourcerer, speaker. Building `nuqs`, a type-safe search params state manager for React.