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/$%7Bsuccess?q=image&page=520&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 7074 results for "image"(1754ms)

blob_admin_migratedmain.tsx5 matches

@shouser•Updated 3 months ago
440 {profile && (
441 <div className="flex items-center space-x-4">
442 <img src={profile.profileImageUrl} alt="Profile" className="w-8 h-8 rounded-full" />
443 <span>{profile.username}</span>
444 <a href="/auth/logout" className="text-blue-400 hover:text-blue-300">Logout</a>
583 alt="Blob content"
584 className="max-w-full h-auto"
585 onError={() => console.error("Error loading image")}
586 />
587 </div>
635 <li>Create public shareable links for blobs</li>
636 <li>View and manage public folder</li>
637 <li>Preview images directly in the interface</li>
638 </ul>
639 </div>
694 const { ValTown } = await import("npm:@valtown/sdk");
695 const vt = new ValTown();
696 const { email: authorEmail, profileImageUrl, username } = await vt.me.profile.retrieve();
697 // const authorEmail = me.email;
698
762
763 c.set("email", email);
764 c.set("profile", { profileImageUrl, username });
765 await next();
766};

sqliteExplorerAppREADME.md1 match

@shouser•Updated 3 months ago
3View and interact with your Val Town SQLite data. It's based off Steve's excellent [SQLite Admin](https://www.val.town/v/stevekrouse/sqlite_admin?v=46) val, adding the ability to run SQLite queries directly in the interface. This new version has a revised UI and that's heavily inspired by [LibSQL Studio](https://github.com/invisal/libsql-studio) by [invisal](https://github.com/invisal). This is now more an SPA, with tables, queries and results showing up on the same page.
4
5![image.webp](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/c8e102fd-39ca-4bfb-372a-8d36daf43900/public)
6
7## Install

versatileWhiteJaymain.tsx3 matches

@Love•Updated 3 months ago
6const TMDB_API_KEY = "3fd2be6f0c70a2a598f084ddfb75487c"; // Public read-only key
7const TMDB_BASE_URL = "https://api.themoviedb.org/3";
8const TMDB_IMAGE_BASE_URL = "https://image.tmdb.org/t/p/w500";
9
10// Expanded list of Indian languages and alternative search terms
248 >
249 <img
250 src={`${TMDB_IMAGE_BASE_URL}${actor.profile_path}`}
251 alt={actor.name}
252 style={{
284 >
285 <img
286 src={`${TMDB_IMAGE_BASE_URL}${movie.poster_path}`}
287 alt={movie.title}
288 style={{

statusREADME.md1 match

@BaronVonLeskis•Updated 3 months ago
4
5<div align="center">
6<img src="https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/67a1d35e-c37c-41a4-0e5a-03a9ba585d00/public" width="700px"/>
7</div>

isMyWebsiteDownREADME.md1 match

@BaronVonLeskis•Updated 3 months ago
8
9<div align="center">
10<img src="https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/67a1d35e-c37c-41a4-0e5a-03a9ba585d00/public" width="500px"/>
11</div>

OpenTowniesystem_prompt.txt2 matches

@AIWB•Updated 3 months ago
18 * Response.redirect is broken. Use `return new Response(null, { status: 302, headers: { Location: "/place/to/redirect" }})`
19
20 * Avoid external images or base64 images, use emojis, unicode symtols, or icon fonts/libraries instead, unless that's not practical for the user's request (e.g. if they ask for a particular animated gif).
21
22 * If you want an AI generated image, use https://maxm-imggenurl.web.val.run/the-description-of-your-image to dynamically generate one.
23
24 * DO NOT use the Deno KV module for storage.

ThumbMakermain.tsx27 matches

@AIWB•Updated 3 months ago
1/**
2 * This application creates a thumbnail maker using Hono for server-side routing and client-side JavaScript for image processing.
3 * It allows users to upload images, specify output options, and generate a composite thumbnail image.
4 * The app uses the HTML5 Canvas API for image manipulation and supports drag-and-drop functionality.
5 *
6 * The process is divided into two steps:
7 * 1. Generating thumbnails: Users choose thumbnail size options and create individual thumbnails.
8 * 2. Rendering: Users can create and export the final composite image with options for format and quality.
9 * This two-step process allows changing format or quality without re-rendering the entire canvas.
10 *
33 <h1>Thumbnail Maker</h1>
34 <div id="dropZone">
35 <p>📷 Drag & drop images here or click to select</p>
36 <input type="file" id="fileInput" multiple accept="image/*">
37 </div>
38 <div id="thumbnailOptions">
57 Output Format:
58 <select id="outputFormat">
59 <option value="image/png">PNG</option>
60 <option value="image/jpeg">JPEG</option>
61 <option value="image/webp">WebP</option>
62 </select>
63 </label><br>
74 <button id="downloadMetadataBtn">Download Metadata</button>
75 </div>
76 <div id="imagePreview"></div>
77 </div>
78</body>
138select {
139 appearance: none;
140 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z' fill='%23333'/%3E%3C/svg%3E");
141 background-repeat: no-repeat;
142 background-position: right 10px center;
204}
205
206#imagePreview {
207 margin-top: 20px;
208 text-align: center;
209}
210
211#imagePreview img {
212 max-width: 100%;
213 height: auto;
231const keepAspectRatio = document.getElementById('keepAspectRatio');
232const thumbWidth = document.getElementById('thumbWidth');
233const imagePreview = document.getElementById('imagePreview');
234const thumbnailOptions = document.getElementById('thumbnailOptions');
235const renderOptions = document.getElementById('renderOptions');
249 renderOptions.style.display = 'none';
250 downloadSection.style.display = 'none';
251 imagePreview.innerHTML = '';
252 thumbnailCanvas = null;
253 thumbnailMetadata = null;
274 event.preventDefault();
275 dropZone.classList.remove('drag-over');
276 files = Array.from(event.dataTransfer.files).filter(file => file.type.startsWith('image/'));
277 resetToStep1();
278});
289 progressBar.value = 0;
290
291 const image0 = await getImage(files[0]);
292 const cols = Math.ceil(Math.sqrt(files.length));
293 const rows = Math.ceil(files.length / cols);
294 const tHeight = parseInt(thumbHeight.value);
295 let tWidth = keepAspectRatio.checked
296 ? Math.floor(tHeight / image0.height * image0.width)
297 : parseInt(thumbWidth.value);
298
300 const canvasHeight = rows * tHeight;
301
302 image0.revoke();
303
304 thumbnailCanvas = new OffscreenCanvas(canvasWidth, canvasHeight);
310 const row = Math.floor(i / cols);
311
312 const img = await getImage(file);
313 ctx.drawImage(img, col * tWidth, row * tHeight, tWidth, tHeight);
314 img.revoke();
315
343 const blob = await thumbnailCanvas.convertToBlob({
344 type: outputFormat.value,
345 quality: outputFormat.value !== 'image/png' ? parseFloat(outputQuality.value) : undefined
346 });
347
351 downloadSection.style.display = 'flex';
352
353 // Display the generated image
354 const img = document.createElement('img');
355 img.src = url;
356 imagePreview.innerHTML = '';
357 imagePreview.appendChild(img);
358
359 progressBar.style.display = 'none';
375});
376
377function getImage(file) {
378 return new Promise((resolve) => {
379 const url = URL.createObjectURL(file);
380 const img = new Image();
381 img.revoke = () => URL.revokeObjectURL(url);
382 img.onload = () => resolve(img);

competentOlivePeacockmain.tsx7 matches

@awhitter•Updated 3 months ago
24 Category?: string;
25 Tags?: string | string[];
26 "Card Image"?: AirtableAttachment[];
27 "Intro Image"?: AirtableAttachment[];
28 "Body Image 1"?: AirtableAttachment[];
29 "Body Image 2"?: AirtableAttachment[];
30 "Body Image 3"?: AirtableAttachment[];
31 "Quote or Emphasized Text 1"?: string;
32 "Quote or Emphasized Text 2"?: string;
166 <p className="mb-2">{item.fields.ShortCardText}</p>
167 <p className="text-sm text-gray-600 mb-4">Read time: {item.fields.ReadTime}</p>
168 {item.fields["Card Image"] && item.fields["Card Image"][0] && (
169 <img
170 src={item.fields["Card Image"][0].url}
171 alt={item.fields.Title}
172 className="w-full h-48 object-cover rounded-md mb-4"

githubParsermain.tsx4 matches

@yawnxyz•Updated 3 months ago
16 <meta charset="UTF-8">
17 <meta name="viewport" content="width=device-width, initial-scale=1.0">
18 <link rel="icon" type="image/png" href="https://labspace.ai/ls2-circle.png" />
19 <title>GitHub Repository Parser</title>
20 <meta property="og:title" content="GitHub Repository Parser" />
21 <meta property="og:description" content="Parse and analyze GitHub repositories with ease." />
22 <meta property="og:image" content="https://yawnxyz-og.web.val.run/img2?link=https://gh.labspace.ai/&title=GitHub+Parser&subtitle=Parse+and+analyze+GitHub+repos&attachment=https://f2.phage.directory/blogalog/gh-parser.jpg" />
23 <meta property="og:url" content="https://gh.labspace.ai" />
24 <meta property="og:type" content="website" />
25 <meta name="twitter:card" content="summary_large_image" />
26 <meta name="twitter:title" content="GitHub Repository Parser" />
27 <meta name="twitter:description" content="Parse and analyze GitHub repositories with ease." />
28 <meta name="twitter:image" content="https://yawnxyz-og.web.val.run/img2?link=https://gh.labspace.ai/&title=GitHub+Parser&subtitle=Parse+and+analyze+GitHub+repos&attachment=https://f2.phage.directory/blogalog/gh-parser.jpg" />
29 <script src="https://cdn.tailwindcss.com"></script>
30 <script src="https://unpkg.com/dexie@3.2.2/dist/dexie.js"></script>

cerebras_codermain.tsx1 match

@Shashank_3•Updated 3 months ago
1165 <meta property="og:description" content="Turn your ideas into fully functional apps in less than a second – powered by Llama3.3-70b on Cerebras's super-fast wafer chips. Code is 100% open-source, hosted on Val Town."">
1166 <meta property="og:type" content="website">
1167 <meta property="og:image" content="https://stevekrouse-blob_admin.web.val.run/api/public/CerebrasCoderOG.jpg">
1168
1169

Imagetourl2 file matches

@dcm31•Updated 12 hours ago

thilenius-webcam1 file match

@stabbylambda•Updated 4 days ago
Image proxy for the latest from https://gliderport.thilenius.com
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