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=757&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 12597 results for "react"(2513ms)

blog2025-04-08-migration.md1 match

@cdignamโ€ขUpdated 1 month ago
14| | Before | Now |
15|---------------------|---------------------------|------------|
16| **Rendering** | Astro | React |
17| **Version control** | GitHub | Val Town |
18| **Text editing** | Local editor | Val Town |

chatREADME.md9 matches

@loadingโ€ขUpdated 1 month ago
1# AI Chat App
2
3A sleek, dark-themed AI chat application built with React on Val Town using the OpenAI API.
4
5## Features
6
7- React-based chat interface with component architecture
8- Elegant dark theme with purple/indigo accents
9- Powered by OpenAI's GPT models
20โ”‚ โ””โ”€โ”€ index.ts # Backend API with Hono and OpenAI integration
21โ”œโ”€โ”€ frontend/
22โ”‚ โ”œโ”€โ”€ components/ # React components
23โ”‚ โ”‚ โ”œโ”€โ”€ App.tsx # Main application component
24โ”‚ โ”‚ โ”œโ”€โ”€ Message.tsx # Message component for chat bubbles
25โ”‚ โ”‚ โ””โ”€โ”€ ChatInput.tsx # Input component with send button
26โ”‚ โ”œโ”€โ”€ index.html # HTML shell for React app
27โ”‚ โ””โ”€โ”€ index.tsx # React entry point
28โ””โ”€โ”€ README.md
29```
31## How It Works
32
331. The React frontend provides a component-based chat interface
342. Messages are managed with React state
353. API requests are sent to the backend endpoint
364. The backend uses the OpenAI API to generate responses
40## Technologies Used
41
42- **React**: For component-based UI architecture
43- **TypeScript**: For type safety and better code organization
44- **Tailwind CSS**: For styling without custom CSS files
60
61You can customize the app by:
62- Modifying React components to add new features
63- Changing the OpenAI model in the backend (currently using gpt-4o-mini)
64- Adjusting the max tokens parameter for longer or shorter responses

chatindex.ts2 matches

@loadingโ€ขUpdated 1 month ago
44});
45
46// Serve React app files
47app.get("/", (c) => serveFile("/frontend/index.html", import.meta.url));
48app.get("/index.tsx", (c) => serveFile("/frontend/index.tsx", import.meta.url));
49
50// Serve React components
51app.get("/components/:filename", (c) => {
52 const filename = c.req.param("filename");

chatindex.tsx5 matches

@loadingโ€ขUpdated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from 'https://esm.sh/react@18.2.0';
3import { createRoot } from 'https://esm.sh/react-dom@18.2.0/client';
4import { App } from './components/App.tsx';
5
11 const root = createRoot(rootElement);
12 root.render(
13 <React.StrictMode>
14 <App />
15 </React.StrictMode>
16 );
17 }

chatApp.tsx2 matches

@loadingโ€ขUpdated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useState, useRef, useEffect } from 'https://esm.sh/react@18.2.0';
3import { Message } from './Message.tsx';
4import { ChatInput } from './ChatInput.tsx';

chatChatInput.tsx2 matches

@loadingโ€ขUpdated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useState, useRef, useEffect, KeyboardEvent, MouseEvent } from 'https://esm.sh/react@18.2.0';
3
4interface ChatInputProps {

chatMessage.tsx2 matches

@loadingโ€ขUpdated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useEffect, useRef } from 'https://esm.sh/react@18.2.0';
3
4interface MessageProps {

newestCard.tsx1 match

@loadingโ€ขUpdated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2
3export function ValCard({ val }) {

blogBlogPost.tsx2 matches

@valdottownโ€ขUpdated 1 month ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import { BlogPost as BlogPostType } from "../utils/types.ts";
4import Byline from "./Byline.tsx";

vt-blogREADME.md2 matches

@stevekrouseโ€ขUpdated 1 month ago
20
21- **`/index.ts`**: Main entry point that sets up Hono routing and middleware
22- **`/components/`**: React components for rendering the blog
23 - **`Layout.tsx`**: Shared layout with header, footer, and styling
24 - **`HomePage.tsx`**: Renders the blog homepage with featured and recent posts
37### Technical Stack
38
39- **React**: For server-side rendering components
40- **Hono**: Lightweight web framework for routing
41- **Custom CSS**: For styling (no external frameworks)

reactHonoStarter4 file matches

@lightweightโ€ขUpdated 1 day ago

reactHonoStarter4 file matches

@stdโ€ขUpdated 1 day 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