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=160&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 11783 results for "react"(1401ms)

1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { Context } from "https://esm.sh/hono@3.11.7";
3import { lowlight } from "https://esm.sh/lowlight@2.9.0/lib/common";
22}
23
24// Transform the syntax tree into React components
25function transform(node: any, color: string, context: { l: number }) {
26 switch (node.type) {

satori-syntax-highlighterPlayground.tsx2 matches

@stevekrouse•Updated 6 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3import { DEFAULT_BACKGROUND, DEFAULT_CODE, DEFAULT_FONT_SIZE, DEFAULT_LANG } from "../../shared/types.ts";
4import { buildHighlighterUrl } from "../../shared/utils.ts";

mini-remix-soundold-index.ts2 matches

@probablycorey•Updated 6 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useState } from "https://esm.sh/react@18.2.0";
3import { defineAction, defineLoader, Form, render, useActionData, useLoaderData } from "./render.ts";
4

linestest.tsx1 match

@stevekrouse•Updated 6 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { ImageResponse } from 'npm:@vercel/og';
3

NPLLMhono.ts1 match

@wolf•Updated 1 week ago
2
3import { hc } from "https://esm.sh/hono@4.7.7/client?deps=hono@4.7.7";
4import { QueryClient } from "https://esm.sh/@tanstack/react-query@5.74.7?deps=react@19.0.0";
5import { AppType } from "../backend/api/mod.ts";
6import { APP_URL } from "../shared/consts.ts";

vectorsvector.tsx1 match

@jxnblk•Updated 1 week ago
1/** @jsxImportSource ../jsx */
2import { useLoaderData, Outlet } from "https://esm.sh/react-router";
3import * as ident from "../vectors/identicon.tsx";
4

stockAppdeno.json2 matches

@prashamtrivedi•Updated 1 week ago
6 "importMap": "import_map.json",
7 "compilerOptions": {
8 "jsx": "react-jsx",
9 "jsxImportSource": "https://esm.sh/preact@10.19.6"
10 },
11 "fmt": {

stockAppindex.html4 matches

@prashamtrivedi•Updated 1 week ago
30 <div id="root"></div>
31
32 <!-- React and ReactDOM from esm.sh (pinned versions as per guidelines) -->
33 <!-- The ?deps=react@18.2.0,react-dom@18.2.0 is important for Val Town compatibility -->
34 <script type="module">
35 import { render, h } from "https://esm.sh/preact@10.19.6";
36 // The main application component will be imported from index.tsx
37 import App from "/frontend/index.tsx"; // Assuming index.tsx is the entry point
41 render(h(App), rootElement);
42 } else {
43 console.error("Root element not found. Preact app cannot be mounted.");
44 }
45 </script>

stockAppAppHeader.tsx2 matches

@prashamtrivedi•Updated 1 week ago
1/** @jsxImportSource https://esm.sh/preact@10.19.6 */
2import { h, FunctionComponent, JSX } from "https://esm.sh/preact@10.19.6";
3import { User } from "../../shared/types.ts"; // Import User type
4

vectorsserver.tsx5 matches

@jxnblk•Updated 1 week ago
1/** @jsxImportSource ./jsx */
2import { Hono } from "npm:hono@4";
3import * as React from "https://esm.sh/react@19";
4import ReactDOMServer from "https://esm.sh/react-dom@19/server";
5import {
6 createStaticHandler,
7 createStaticRouter,
8 StaticRouterProvider,
9} from "https://esm.sh/react-router";
10import routes from "./routes/index.tsx";
11
19});
20
21// react app
22app.get("*", async (c) => {
23 const { query, dataRoutes } = createStaticHandler(routes);
25 const router = createStaticRouter(dataRoutes, context);
26
27 let html = await ReactDOMServer.renderToReadableStream(
28 <StaticRouterProvider
29 router={router}

MiniAppStarter9 file matches

@moe•Updated 4 hours ago
Hono + React + Tailwind + Farcaster Mini App Starter Project

reactHonoStarter4 file matches

@jessicagarson•Updated 17 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