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=react&page=8&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 21590 results for "react"(1697ms)

SonarExploreScreen.tsx2 matches

@moeUpdated 2 days ago
1/** @jsxImportSource https://esm.sh/react@19 */
2import { Text, Grid3x3, TrendingUp } from 'https://esm.sh/lucide-react@0.510.0'
3
4import { Feed } from '../components/Post.tsx'

Sonarmisc.tsx4 matches

@moeUpdated 2 days ago
1/** @jsxImportSource https://esm.sh/react@19 */
2import fcsdk from 'https://esm.sh/@farcaster/frame-sdk'
3import { Menu } from 'https://esm.sh/lucide-react@0.510.0'
4import { useNavigate } from 'https://esm.sh/react-router@7'
5import { useEffect, useState } from 'https://esm.sh/react@19'
6
7import { LinkedText } from '../components/LinkedText.tsx'

basic-html-starterREADME.md1 match

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

GLM-4-5-chat-01main.tsx3 matches

@aibotcommanderUpdated 2 days ago
1import React, { useState, useEffect } from 'react';
2import { NextRequest, NextResponse } from 'next/server';
3
344}
345
346// React Component for testing/demo purposes
347const GLMChatBot: React.FC = () => {
348 const [messages, setMessages] = useState<Message[]>([]);
349 const [input, setInput] = useState('');

elevenLabsDialogueTestermain.tsx3 matches

@dcm31Updated 2 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5function App() {

chatgptShareTranscriptmain.tsx3 matches

@dcm31Updated 2 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5function App() {

manga-updates-to-discordAGENTS.md6 matches

@sorcoroUpdated 2 days 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:**

PreactHTMXindex.tsx2 matches

@dumbanimalUpdated 2 days ago
1/** @jsxImportSource https://esm.sh/preact */
2
3import { serveFile } from "https://esm.town/v/std/utils/index.ts";
4import { Context, Hono } from "npm:hono";
5import { renderToString } from "npm:preact-render-to-string";
6
7

html-siteREADME.md1 match

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

linkInBioTemplatemain.tsx2 matches

@uUpdated 2 days ago
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {

wa-hono-react4 file matches

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