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/image-url.jpg%20%22Optional%20title%22?q=react&page=132&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 11225 results for "react"(699ms)

vtProjectSearch.cursorrules6 matches

@tallesjp•Updated 5 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:**

vtProjectSearchcomponents.tsx5 matches

@tallesjp•Updated 5 days ago
1/** @jsxImportSource npm:react */
2/** @jsxImportSourceTypes npm:@types/react */
3import { JSX } from "npm:react";
4import { clientScript } from "./client.tsx";
5import { styles } from "./styles.tsx";
1247 <a href="?q=discord" className="example-link">discord</a>
1248 <a href="?q=openai" className="example-link">openai</a>
1249 <a href="?q=react" className="example-link">react</a>
1250 </div>
1251 </div>
1402 <a href="?q=discord" className="example-link">discord</a>
1403 <a href="?q=openai" className="example-link">openai</a>
1404 <a href="?q=react" className="example-link">react</a>
1405 </div>
1406 </div>

vtProjectSearchapi.tsx3 matches

@tallesjp•Updated 5 days ago
1/** @jsxImportSource npm:react */
2/** @jsxImportSourceTypes npm:@types/react */
3import { renderToString } from "npm:react-dom/server";
4import {
5 SearchResponse as _SearchResponse

mini-remix-soundREADME.md1 match

@probablycorey•Updated 5 days ago
5# What does this do?
6
7You can write server side and client side react code in the same file and render it to a val.
8
9# Why?

TownieuseUser.tsx1 match

@jasonkneen•Updated 5 days ago
1import { useState, useEffect } from "react";
2
3const USER_ENDPOINT = "/api/user";

TownieuseUsageStats.ts1 match

@jasonkneen•Updated 5 days ago
1import { useEffect } from "react";
2
3export function useUsageStats(messages: any[], usages: any[]) {

TownieuseScrollToBottom.tsx1 match

@jasonkneen•Updated 5 days ago
1import { useEffect, useRef } from 'https://esm.sh/react@18.2.0?dev';
2
3

TownieuseProject.tsx1 match

@jasonkneen•Updated 5 days ago
1import { useState, useEffect } from "react";
2
3const PROJECT_ENDPOINT = "/api/project";

TownieuseProjects.tsx1 match

@jasonkneen•Updated 5 days ago
1import { useState, useEffect } from "react";
2
3const ENDPOINT = "/api/projects-loader";

TownieuseLoadingFavicon.ts1 match

@jasonkneen•Updated 5 days ago
1import { useEffect } from "react";
2
3function setLoadingFavicon() {

a_new_website3 file matches

@wolf•Updated 37 mins ago
Starter template with client-side React & Hono server

reactHonoStarter4 file matches

@ashryanio•Updated 9 hours ago
Starter template with client-side React & Hono server
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