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=5&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"(979ms)

Townie-Al2TODOs.md1 match

@prubeandoAl•Updated 2 days ago
1- [ ] Give it a tool to make an HTTP request to its own endpoint to test things!
2- [x] Get React Router working on the client & move off localstorage for storing page state
3- [ ] When it hits the max number of steps, detect that and give the user a button (or instructions on how) to get it to continue (neverstew mentioned this)
4- [x] Make it look good

Townie-Al2system_prompt.txt6 matches

@prubeandoAl•Updated 2 days 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- Val Town does not accept incoming websocket connections. Use polling, long polling, or server-sent events.
251 - Always run table creation before querying
252
2533. **React Configuration:**
254 - All React dependencies must be pinned to 18.2.0
255 - Always include `@jsxImportSource https://esm.sh/react@18.2.0` at the top of React files
256 - Rendering issues often come from mismatched React versions
257
2584. **File Handling:**

Townie-Al2PurchaseCreditsRoute.tsx2 matches

@prubeandoAl•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

Townie-Al2ProjectsRoute.tsx2 matches

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

Townie-Al2PreviewFrame.tsx2 matches

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

Townie-Al2NotFoundRoute.tsx1 match

@prubeandoAl•Updated 2 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2
3export function NotFoundRoute () {

Townie-Al2NewProjectRoute.tsx3 matches

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

Townie-Al2MessageTimer.tsx2 matches

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

Townie-Al2Messages.tsx7 matches

@prubeandoAl•Updated 2 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
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}
390 {message.parts.map((part, i) => part.type === "text" ? (
391 <div key={i} className="user-message">
392 <ReactMarkdown>
393 {part.text}
394 </ReactMarkdown>
395 </div>
396 ) : (

Townie-Al2login.tsx2 matches

@prubeandoAl•Updated 2 days ago
1/** @jsxImportSource npm:react@18.2.0 */
2import { Hono } from "npm:hono";
3import { renderToString } from "npm:react-dom@18.2.0/server";
4import { TownieIcon } from "../components/icons.tsx";
5import { ValTownLogo } from "../components/ValTownLogo.tsx";

glimpse2-runbook-view-glimpse-save-login-react19 file matches

@lightweight•Updated 5 hours ago

wa-hono-react4 file matches

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