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/$2?q=react&page=17&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 15401 results for "react"(4522ms)

Towniesystem_prompt.txt6 matches

@nelo•Updated 10 hours ago
165- **Imports:** Use `https://esm.sh` for npm and Deno dependencies to ensure compatibility on server and browser
166- **Storage Strategy:** Only use backend storage if explicitly required; prefer simple static client-side sites
167- **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 */`
168- Ensure all React dependencies and sub-dependencies are pinned to the same version
169- **Styling:** Default to using TailwindCSS via `<script src="https://cdn.twind.style" crossorigin></script>` unless otherwise specified
170
252 - Always run table creation before querying
253
2543. **React Configuration:**
255 - All React dependencies must be pinned to 18.2.0
256 - Always include `@jsxImportSource https://esm.sh/react@18.2.0` at the top of React files
257 - Rendering issues often come from mismatched React versions
258
2594. **File Handling:**

TownieProjectsRoute.tsx2 matches

@nelo•Updated 10 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { Link } from "react-router";
3import { useProjects } from "../hooks/useProjects.tsx";
4import { Loading } from "./Loading.tsx";

TowniePreviewFrame.tsx2 matches

@nelo•Updated 10 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { useEffect, useRef, useState } from "react";
3import { RefreshIcon } from "./icons.tsx";
4

TownieNotFoundRoute.tsx1 match

@nelo•Updated 10 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2
3export function NotFoundRoute () {

TownieNewProjectRoute.tsx3 matches

@nelo•Updated 10 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { useState } from "react";
3import { useNavigate } from "react-router";
4import { useCreateProject } from "../hooks/useCreateProject.tsx";
5

TownieMessageTimer.tsx2 matches

@nelo•Updated 10 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { useEffect, useState } from "react";
3
4const formatTime = (ms: number): string => {

TownieMessages.tsx7 matches

@nelo•Updated 10 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { useState, createContext, useContext } from "react";
3import ReactMarkdown from "react-markdown";
4
5import { Loading } from "./Loading.tsx";
124function TextPart ({ part }) {
125 return (
126 <ReactMarkdown>
127 {part.text}
128 </ReactMarkdown>
129 );
130}
349 {message.parts.map((part, i) => part.type === "text" ? (
350 <div key={i} className="user-message">
351 <ReactMarkdown>
352 {part.text}
353 </ReactMarkdown>
354 </div>
355 ) : (

Townielogin.tsx2 matches

@nelo•Updated 10 hours ago
1/** @jsxImportSource npm:react@18.2.0 */
2import { Hono } from "npm:hono";
3import { renderToString } from "npm:react-dom@18.2.0/server";
4import { Footer, SOURCE_URL } from "../components/Footer.tsx";
5import { TownieIcon } from "../components/icons.tsx";

TownieLoading.tsx1 match

@nelo•Updated 10 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2
3export function Loading () {

TownieLayoutRoute.tsx2 matches

@nelo•Updated 10 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2import { Outlet } from "react-router";
3import { Header } from "./Header.tsx";
4

reactHonoStarter4 file matches

@archie•Updated 19 hours ago

reactHonoStarter4 file matches

@ETLS•Updated 20 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