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=image&page=1&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=image

Returns an array of strings in format "username" or "username/projectName"

Found 8086 results for "image"(693ms)

cp24-digestViewHeadlines.tsx1 match

@gwoods22Updated 51 mins ago
22 url: $("tbody > tr:nth-child(2) > td > span a").attr("href"),
23 date: $("span > b").text(),
24 imgUrl: $("#emailImage").attr("src") ?? "",
25 };
26});

untitled-923index.html1 match

@Piyush1234Updated 2 hours ago
18
19 <!-- Favicon -->
20 <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🎓</text></svg>">
21</head>
22<body>

untitled-923types.ts2 matches

@Piyush1234Updated 2 hours ago
15 date: string;
16 summary: string;
17 image?: string;
18}
19
31 department: string;
32 qualifications: string;
33 image?: string;
34}

charmaineValSearchcomponents.tsx22 matches

@charmaineUpdated 2 hours ago
228 <div className="result-header">
229 <div className="result-header-content">
230 {result.image_url && (
231 <div className="project-image">
232 <img src={result.image_url} alt={result.project_name} />
233 </div>
234 )}
292 <div className="result-header">
293 <div className="result-header-content">
294 {result.image_url && (
295 <div className="project-image">
296 <img src={result.image_url} alt={result.name} />
297 </div>
298 )}
351 <div className="result-header">
352 <div className="user-header">
353 {result.profile_image_url && (
354 <div className="user-avatar">
355 <img src={result.profile_image_url} alt={result.username || "User"} />
356 </div>
357 )}
1224 <a href="?q=api" className="example-link">api</a>
1225 <a href="?q=database" className="example-link">database</a>
1226 <a href="?q=image" className="example-link">image</a>
1227 <a href="?q=function" className="example-link">function</a>
1228 <a href="?q=discord" className="example-link">discord</a>
1289 <div className="contributor-header">
1290 <div className="contributor-avatar">
1291 {contributor.profile_image_url
1292 ? <img src={contributor.profile_image_url} alt={contributor.username} />
1293 : (
1294 <div
1337 rel="noopener noreferrer"
1338 >
1339 <div className="project-image">
1340 {project.image_url
1341 ? <img src={project.image_url} alt={project.name} />
1342 : (
1343 <div
1378 <a href="?q=api" className="example-link">api</a>
1379 <a href="?q=database" className="example-link">database</a>
1380 <a href="?q=image" className="example-link">image</a>
1381 <a href="?q=function" className="example-link">function</a>
1382 <a href="?q=discord" className="example-link">discord</a>
1419 <div className="val-meta">
1420 <span className="username">
1421 {val.user_profile_image_url && (
1422 <img
1423 src={val.user_profile_image_url}
1424 alt={val.username}
1425 className="profile-image"
1426 />
1427 )}
1472 <div className="project-meta">
1473 <div className="username">
1474 {project.user_profile_image_url && (
1475 <img
1476 src={project.user_profile_image_url}
1477 alt="Profile"
1478 className="profile-image"
1479 />
1480 )}
1824 }
1825
1826 .profile-image {
1827 width: 20px;
1828 height: 20px;

templateTwitterAlertREADME.md3 matches

@johnnyclemUpdated 3 hours ago
9## Example
10This val tracks mentions of "Val Town" and related terms, excluding noise like retweets and irrelevant accounts. Notifications are sent to a Discord webhook but can be easily reconfigured for other platforms.
11<img src="https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/85912106-f625-443e-5321-6e2699453200/public" width="500"/>
12To see exactly how we use this template at Val Town: https://www.val.town/x/stevekrouse/twitterAlert
13
16### 1. Fork this Val
17To use this template, fork this val on the top right corner of this page.
18![Screenshot 2025-01-10 at 1.22.10 PM.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/c4ae349d-7e28-4378-8646-21c8958e1f00/public)
19
20### 2. View Source Code
21<em>The `CODE` box shows you the the full source code of this val, you may need to scroll down to see it.</em>
22![image.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/6a4dabb4-3b27-4cea-fce3-95a1a1c3cd00/public)
23
24### 3. Customize Query

charmaineValSearchimport.ts2 matches

@charmaineUpdated 4 hours ago
37 username: user.username,
38 bio: user.bio,
39 profile_image_url: user.profileImageUrl,
40 url: user.url,
41 updated_at: new Date().toISOString(), // Using current time as the API doesn't provide updated_at
55 name: project.name,
56 description: project.description,
57 image_url: project.imageUrl,
58 username: project.author.username || "",
59 updated_at: mainBranch?.updatedAt || new Date().toISOString(),
vtProjectSearch

vtProjectSearchimport.ts2 matches

@maxmUpdated 4 hours ago
37 username: user.username,
38 bio: user.bio,
39 profile_image_url: user.profileImageUrl,
40 url: user.url,
41 updated_at: new Date().toISOString(), // Using current time as the API doesn't provide updated_at
55 name: project.name,
56 description: project.description,
57 image_url: project.imageUrl,
58 username: project.author.username || "",
59 updated_at: mainBranch?.updatedAt || new Date().toISOString(),

PetWebsitePetCard.tsx1 match

@Aditi_DeshmukhUpdated 4 hours ago
45 <>
46 <div className="pet-card bg-white rounded-lg shadow-md overflow-hidden">
47 {/* Pet Image Placeholder */}
48 <div className="h-48 bg-gradient-to-br from-purple-100 to-pink-100 flex items-center justify-center">
49 <span className="text-6xl">{getSpeciesEmoji(pet.species)}</span>

PetWebsitemigrations.ts1 match

@Aditi_DeshmukhUpdated 4 hours ago
144 in_stock BOOLEAN DEFAULT TRUE,
145 stock_quantity INTEGER DEFAULT 0,
146 image_url TEXT,
147 created_at DATETIME DEFAULT CURRENT_TIMESTAMP
148 )

PetWebsitetypes.ts1 match

@Aditi_DeshmukhUpdated 4 hours ago
105 in_stock: boolean;
106 stock_quantity: number;
107 image_url?: string;
108 created_at: string;
109}

image_proxy

@oopsUpdated 3 days ago

ImageExplorer10 file matches

@carmiUpdated 1 week ago
Chrimage
Atiq
"Focal Lens with Atig Wazir" "Welcome to my photography journey! I'm Atiq Wazir, a passionate photographer capturing life's beauty one frame at a time. Explore my gallery for stunning images, behind-the-scenes stories, and tips & tricks to enhance your own