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=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 12532 results for "react"(899ms)

untitled-421README.md7 matches

@dhvanilUpdated 11 hours ago
8- 🧩 **Component-based HTML building** for programmatic generation
9- 📱 **Responsive design** with TailwindCSS integration
10- ⚛️ **React app export** support
11- 📦 **Minification** for optimized output
12- 💾 **Direct download** functionality
18- `/` - Main dashboard with export options
19- `/export/simple` - Download a simple HTML page
20- `/export/react` - Download a React application
21- `/export/custom` - Form to create custom HTML exports
22
39 title: "My App",
40 content: "<div>Content here</div>",
41 includeReact: true,
42 customCSS: "body { background: #f0f0f0; }"
43});
105Downloads a simple HTML page with current timestamp.
106
107### GET `/export/react`
108Downloads a React counter application as a standalone HTML file.
109
110### GET `/export/custom`
1581. **Use templates** for consistent layouts
1592. **Minify HTML** for production exports
1603. **Pin React versions** when including React
1614. **Validate user input** in custom exports
1625. **Use semantic HTML** for accessibility
166
167- **Template not found**: Ensure template files exist in `/templates/`
168- **React not loading**: Check that versions are pinned to 18.2.0
169- **Styles not applying**: Verify TailwindCSS script is included
170- **Download not working**: Check Content-Disposition headers

untitled-421html.ts5 matches

@dhvanilUpdated 11 hours ago
37 title: string;
38 content: string;
39 includeReact?: boolean;
40 customCSS?: string;
41 customJS?: string;
42}): Promise<string> {
43 const { title, content, includeReact = false, customCSS = "", customJS = "" } = options;
44
45 let head = customCSS ? `<style>${customCSS}</style>` : "";
46 let scripts = customJS ? `<script>${customJS}</script>` : "";
47
48 if (includeReact) {
49 head += `
50 <script type="importmap">
51 {
52 "imports": {
53 "react": "https://esm.sh/react@18.2.0",
54 "react-dom": "https://esm.sh/react-dom@18.2.0"
55 }
56 }

Townie2ValTownLogo.tsx1 match

@toowiredUpdated 13 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0?dev */
2
3export function ValTownLogo () {

Townie2useUser.tsx1 match

@toowiredUpdated 13 hours ago
1import { useState, useEffect } from "react";
2
3const USER_ENDPOINT = "/api/user";

Townie2useUsageStats.ts1 match

@toowiredUpdated 13 hours ago
1import { useEffect } from "react";
2
3export function useUsageStats(messages: any[], usages: any[]) {

Townie2useScrollToBottom.tsx1 match

@toowiredUpdated 13 hours ago
1import { useEffect, useRef } from 'https://esm.sh/react@18.2.0?dev';
2
3

Townie2useProject.tsx1 match

@toowiredUpdated 13 hours ago
1import { useState, useEffect } from "react";
2
3const PROJECT_ENDPOINT = "/api/project";

Townie2useProjects.tsx1 match

@toowiredUpdated 13 hours ago
1import { useState, useEffect } from "react";
2
3const ENDPOINT = "/api/projects-loader";

Townie2useLoadingFavicon.ts1 match

@toowiredUpdated 13 hours ago
1import { useEffect } from "react";
2
3function setLoadingFavicon() {

Townie2useCreateProject.tsx1 match

@toowiredUpdated 13 hours ago
1import { useState, useEffect } from "react";
2
3const ENDPOINT = "/api/create-project";

reactHonoStarter4 file matches

@lightweightUpdated 7 hours ago

reactHonoStarter4 file matches

@stdUpdated 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