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=image&page=308&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 6023 results for "image"(1777ms)

blob_adminindex2 matches

@stevekrouseUpdated 2 months ago
61 const { ValTown } = await import("npm:@valtown/sdk");
62 const vt = new ValTown();
63 const { email: authorEmail, profileImageUrl, username } = await vt.me.profile.retrieve();
64 // const authorEmail = me.email;
65
129
130 c.set("email", email);
131 c.set("profile", { profileImageUrl, username });
132 await next();
133};

blob_adminREADME.md1 match

@stevekrouseUpdated 2 months ago
3This is a lightweight Blob Admin interface to view and debug your Blob data.
4
5![Screenshot 2024-11-22 at 15.43.43@2x.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/d075a4ee-93ec-4cdd-4823-7c8aee593f00/public)
6
7To use this, fork it to your account.

ptcWebsiteDemomain.tsx1 match

@SherazjaffriUpdated 2 months ago
173 <title>PTC Network</title>
174 <meta name="viewport" content="width=device-width, initial-scale=1">
175 <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>💰</text></svg>">
176 </head>
177 <body style="margin:0">

websitesSeoAnalyzermain.tsx2 matches

@mdalam7294Updated 2 months ago
47 <p>🔗 Meta Description: {seoResults.metaDescriptionLength} characters</p>
48 <p>🏷️ Headings: {seoResults.headingsCount} found</p>
49 <p>🖼️ Images without Alt Text: {seoResults.imagesWithoutAlt}</p>
50 <a
51 href={import.meta.url.replace("esm.town", "val.town")}
81 metaDescriptionLength: doc.querySelector('meta[name="description"]')?.getAttribute('content')?.length || 0,
82 headingsCount: doc.querySelectorAll('h1, h2, h3').length,
83 imagesWithoutAlt: Array.from(doc.images).filter(img => !img.alt).length
84 };
85

jovialTurquoiseVicunaREADME.md1 match

@riiiUpdated 2 months ago
3Feel free to mess around with this val and make it your own :). Just click on "Fork" in the top right.
4
5You can change the phrases that show up as you click no, you can change the firstImg and secondImg, maybe even add more images. And you can also change the colors and any of the text on the screen!
6
7Have fun with it and hopefully your crush says yes hehe.

brightEmeraldQuokkaREADME.md1 match

@riiiUpdated 2 months ago
3Feel free to mess around with this val and make it your own :). Just click on "Fork" in the top right.
4
5You can change the phrases that show up as you click no, you can change the firstImg and secondImg, maybe even add more images. And you can also change the colors and any of the text on the screen!
6
7Have fun with it and hopefully your crush says yes hehe.

imageToWebPConvertermain.tsx16 matches

@AIWBUpdated 2 months ago
4
5function App() {
6 const [imageUrl, setImageUrl] = useState(null);
7 const [webpUrl, setWebpUrl] = useState(null);
8 const [originalSize, setOriginalSize] = useState(null);
15 const reader = new FileReader();
16 reader.onload = (e) => {
17 setImageUrl(e.target.result);
18 setOriginalSize(formatSize(file.size));
19 };
23
24 const convertToWebP = () => {
25 if (!imageUrl) return;
26
27 const img = new Image();
28 img.onload = () => {
29 const canvas = document.createElement('canvas');
31 canvas.height = img.height;
32 const ctx = canvas.getContext('2d');
33 ctx.drawImage(img, 0, 0);
34
35 canvas.toBlob((blob) => {
37 setWebpUrl(url);
38 setWebpSize(formatSize(blob.size));
39 }, 'image/webp');
40 };
41 img.src = imageUrl;
42 };
43
44 const deleteImages = () => {
45 setImageUrl(null);
46 setWebpUrl(null);
47 setOriginalSize(null);
62 return (
63 <div className="container">
64 <h1>Image to WebP Converter</h1>
65 <input
66 type="file"
67 accept="image/*"
68 onChange={handleFileChange}
69 ref={fileInputRef}
70 />
71 {imageUrl && (
72 <div>
73 <img src={imageUrl} alt="Original" className="preview" />
74 <p>Original Size: {originalSize}</p>
75 <button onClick={convertToWebP}>Convert to WebP</button>
83 </div>
84 )}
85 {(imageUrl || webpUrl) && (
86 <button onClick={deleteImages} className="delete-btn">Delete Images</button>
87 )}
88 <p className="footer">
106 <meta charset="UTF-8">
107 <meta name="viewport" content="width=device-width, initial-scale=1.0">
108 <title>Image to WebP Converter</title>
109 <style>${css}</style>
110 </head>

parseImportMetaproject.test1 match

@stdUpdated 2 months ago
169 {
170 headers: {
171 "content-type": "image/svg+xml;charset=UTF-8",
172 },
173 },

b5338dba_f0ab_11ef_a041_e6cdfca9ef9fmain.tsx2 matches

@camUpdated 2 months ago
28 src="https://maxm-imggenurl.web.val.run/profile-picture"
29 alt="Profile"
30 className="profile-image"
31 />
32 <h1>Your Name</h1>
103}
104
105.profile-image {
106 width: 120px;
107 height: 120px;

poe_botmain.tsx1 match

@jeffreyyoungUpdated 2 months ago
114 introduction_message?: string;
115 expand_text_attachments?: boolean;
116 enable_image_comprehension?: boolean;
117 enforce_author_role_alternation?: boolean;
118 enable_multi_bot_chat_prompting?: boolean;

brainrot_image_gen1 file match

@dcm31Updated 6 days ago
Generate images for Italian Brainrot characters using FAL AI

modifyImage2 file matches

@stevekrouseUpdated 1 week ago
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