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/image-url.jpg%20%22Image%20title%22?q=image&page=546&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 7039 results for "image"(1169ms)

cerebras_codermain.tsx1 match

@kedarkolluri•Updated 4 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

falDemoAppmain.tsx23 matches

@mda1125•Updated 4 months ago
7function App() {
8 const [prompt, setPrompt] = useState("");
9 const [imageUrl, setImageUrl] = useState("");
10 const [loading, setLoading] = useState(false);
11 const [imageSize, setImageSize] = useState("1152x2048");
12
13 const imageSizeOptions = [
14 { value: "1536x1024", label: "Landscape 4:3" },
15 { value: "1024x1024", label: "Square 1:1" },
17 ];
18
19 const generateImage = async (e?: React.FormEvent) => {
20 e?.preventDefault();
21 setLoading(true);
25 });
26
27 const [width, height] = imageSize.split('x').map(Number);
28
29 const result = await fal.run("fal-ai/flux/schnell", {
33 height,
34 num_inference_steps: 4,
35 num_images: 1,
36 enable_safety_checker: true,
37 sync_mode: true,
39 });
40
41 if (result.data && result.data.images && result.data.images.length > 0) {
42 setImageUrl(result.data.images[0].url);
43 } else {
44 console.error("No images returned", result);
45 alert("No image could be generated. Please try again.");
46 }
47 } catch (error) {
48 console.error("Error generating image:", error);
49 alert(`Image generation failed: ${error.message}`);
50 } finally {
51 setLoading(false);
56 <div className="min-h-screen bg-black text-white py-12 px-4 sm:px-6 lg:px-8">
57 <div className="max-w-3xl mx-auto">
58 <h1 className="text-4xl font-bold text-center mb-8">Fal AI Image Generator</h1>
59 <div className="bg-gray-900 rounded-lg p-6 mb-8 shadow-lg">
60 <form className="flex flex-col sm:flex-row gap-4" onSubmit={generateImage}>
61 <input
62 type="text"
63 value={prompt}
64 onChange={(e) => setPrompt(e.target.value)}
65 placeholder="Enter your image prompt"
66 className="flex-grow px-4 py-2 bg-gray-800 border border-gray-700 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent"
67 />
68 <select
69 value={imageSize}
70 onChange={(e) => setImageSize(e.target.value)}
71 className="px-4 py-2 bg-gray-800 border border-gray-700 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent"
72 >
73 {imageSizeOptions.map((option) => (
74 <option key={option.value} value={option.value}>
75 {option.label}
78 </select>
79 <button
80 onClick={generateImage}
81 disabled={loading || !prompt}
82 className={`px-6 py-2 rounded-md text-white font-medium transition-colors duration-200 ${
108 )
109 : (
110 "Generate Image"
111 )}
112 </button>
113 </form>
114 </div>
115 {imageUrl && (
116 <div className="bg-gray-900 rounded-lg overflow-hidden shadow-lg">
117 <img src={imageUrl} alt="Generated image" className="w-full h-auto" />
118 </div>
119 )}
146 <meta charset="UTF-8">
147 <meta name="viewport" content="width=device-width, initial-scale=1.0">
148 <title>Fal AI Image Generator</title>
149 <script src="https://cdn.tailwindcss.com"></script>
150 <style>

swiftEmeraldAphidmain.tsx1 match

@fame144•Updated 4 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

sqliteExplorerAppREADME.md1 match

@danyx23•Updated 4 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

brilliantScarletGorillamain.tsx1 match

@Johner•Updated 4 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

intelligentCyanGibbonmain.tsx1 match

@Johner•Updated 4 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

password_authREADME.md1 match

@vandermaasc•Updated 4 months ago
3Protect your vals behind a password. Use session cookies to persist authentication.
4
5![6ed0648ae8813e958dbe79468572cb52f578239c0fae55857a13660beebdc5fd.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/36c1dc4f-4e19-457b-ad89-0bf139754e00/public)
6
7## Usage

cerebras_codermain.tsx32 matches

@toowired•Updated 4 months ago
8 const [tackleBox, setTackleBox] = useState([]);
9 const [recommendation, setRecommendation] = useState("");
10 const [lureImageUrl, setLureImageUrl] = useState("");
11
12 useEffect(() => {
159 const lureName = event.target.elements["lure-name"].value;
160 const lureDescription = event.target.elements["lure-description"].value;
161 const lureImage = event.target.elements["lure-image"].files[0];
162 const lureImageUrlInput = event.target.elements["lure-image-url"].value;
163
164 let imageUrl = "";
165 if (lureImage) {
166 const formData = new FormData();
167 formData.append("image", lureImage);
168 try {
169 const response = await fetch("/api/uploadImage", {
170 method: "POST",
171 body: formData,
173 if (response.ok) {
174 const data = await response.json();
175 imageUrl = data.url;
176 }
177 } catch (error) {
178 console.error("Error uploading image:", error);
179 }
180 } else if (lureImageUrlInput) {
181 imageUrl = lureImageUrlInput;
182 }
183
184 const newLure = { name: lureName, description: lureDescription, image: imageUrl };
185
186 try {
195 setTackleBox([...tackleBox, newLure]);
196 event.target.reset();
197 setLureImageUrl("");
198 }
199 } catch (error) {
302 </div>
303 <div className="mb-4">
304 <label className="block text-gray-700" htmlFor="lure-image">Upload Lure/Fly Image (Optional)</label>
305 <input className="w-full p-2 border border-gray-300 rounded" id="lure-image" name="lure-image" type="file" accept="image/*" />
306 </div>
307 <div className="mb-4">
308 <label className="block text-gray-700" htmlFor="lure-image-url">Or Enter Image URL</label>
309 <input
310 className="w-full p-2 border border-gray-300 rounded"
311 id="lure-image-url"
312 name="lure-image-url"
313 type="url"
314 placeholder="https://example.com/image.jpg"
315 value={lureImageUrl}
316 onChange={(e) => setLureImageUrl(e.target.value)}
317 />
318 </div>
319 {lureImageUrl && (
320 <div className="mb-4">
321 <img src={lureImageUrl} alt="Lure preview" className="max-w-full h-auto" />
322 </div>
323 )}
330 {tackleBox.map((lure, index) => (
331 <div key={index} className="border p-4 rounded">
332 {lure.image && <img src={lure.image} alt={lure.name} className="w-full h-40 object-cover mb-2 rounded" />}
333 <h3 className="text-lg font-bold">{lure.name}</h3>
334 <p className="text-gray-700">{lure.description}</p>
377 });
378 }
379 } else if (url.pathname === "/api/uploadImage") {
380 if (req.method === "POST") {
381 const formData = await req.formData();
382 const image = formData.get("image") as File;
383 if (image) {
384 const imageBuffer = await image.arrayBuffer();
385 const imageKey = `${key}_image_${Date.now()}_${image.name}`;
386 await blob.set(imageKey, imageBuffer);
387 const imageUrl = `https://val.town/v1/blob/${imageKey}`;
388 return new Response(JSON.stringify({ url: imageUrl }), {
389 headers: { "Content-Type": "application/json" },
390 });

idealJadeGerbilmain.tsx1 match

@Johner•Updated 4 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

tolerantCyanCrawdadmain.tsx1 match

@Johner•Updated 4 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 9 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