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=474&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 6397 results for "image"(1726ms)

dynamicLavenderBeetleREADME.md3 matches

@charmaineUpdated 3 months ago
11## Example
12This 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.
13<img src="https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/85912106-f625-443e-5321-6e2699453200/public" width="500"/>
14To see exactly how we use this template at Val Town: https://www.val.town/v/stevekrouse/twitterAlert
15
20### 1. Fork this Val
21To use this template, fork this val on the top right corner of this page.
22![Screenshot 2025-01-10 at 1.22.10 PM.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/c4ae349d-7e28-4378-8646-21c8958e1f00/public)
23
24### 2. View Source Code
25<em>The `CODE` box shows you the the full source code of this val, you may need to scroll down to see it.</em>
26![image.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/6a4dabb4-3b27-4cea-fce3-95a1a1c3cd00/public)
27
28### 3. Customize Query

hopefulApricotSparrowREADME.md3 matches

@charmaineUpdated 3 months ago
11## Example
12This 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.
13<img src="https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/85912106-f625-443e-5321-6e2699453200/public" width="500"/>
14To see exactly how we use this template at Val Town: https://www.val.town/v/stevekrouse/twitterAlert
15
20### 1. Fork this Val
21To use this template, fork this val on the top right corner of this page.
22![Screenshot 2025-01-10 at 1.22.10 PM.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/c4ae349d-7e28-4378-8646-21c8958e1f00/public)
23
24### 2. View Source Code
25<em>The `CODE` box shows you the the full source code of this val, you may need to scroll down to see it.</em>
26![image.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/6a4dabb4-3b27-4cea-fce3-95a1a1c3cd00/public)
27
28### 3. Customize Query

widemain.tsx1 match

@tmcwUpdated 3 months ago
133 transform: scaleX(1);
134 transform-origin: center;
135 background-image: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
136 background-clip: text;
137 background-size: 300% 300%;

thankfulTurquoiseParrotmain.tsx1 match

@tmcwUpdated 3 months ago
111// bio: "🕳️",
112// username: "maxm",
113// profileImageUrl: "...",
114// url: "https://www.val.town/u/maxm",
115// tier: "pro",

valSessionmain.tsx1 match

@tmcwUpdated 3 months ago
111// bio: "🕳️",
112// username: "maxm",
113// profileImageUrl: "...",
114// url: "https://www.val.town/u/maxm",
115// tier: "pro",

tldraw_computer_examplemain.tsx3 matches

@tmcwUpdated 3 months ago
16};
17
18type ImageData = {
19 type: "image";
20 text: string;
21 name?: string | undefined;
48};
49
50export type Data = BooleanData | TextData | ImageData | SpeechData | WebsiteData | FileData;
51
52type DataComponentRequestBody = {

cerebras_codermain.tsx1 match

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

textToSixImageGeneratormain.tsx30 matches

@NanduUpdated 3 months ago
5function App() {
6 const [prompt, setPrompt] = useState("");
7 const [images, setImages] = useState<string[]>([]);
8 const [isLoading, setIsLoading] = useState(false);
9 const [error, setError] = useState<string | null>(null);
10
11 const generateImages = async (e: React.FormEvent) => {
12 e.preventDefault();
13 if (!prompt.trim()) {
17
18 setIsLoading(true);
19 setImages([]);
20 setError(null);
21
22 try {
23 // Create variations by adding unique modifiers to each image generation
24 const variations = [
25 "artistic style",
31 ];
32
33 const imagePromises = variations.map(variation =>
34 fetch(`https://maxm-imggenurl.web.val.run/${encodeURIComponent(`${prompt} - ${variation}`)}`)
35 .then(res => {
36 if (!res.ok) throw new Error('Image generation failed');
37 return res.url;
38 })
39 );
40
41 const generatedImages = await Promise.all(imagePromises);
42 setImages(generatedImages);
43 } catch (error) {
44 console.error("Image generation failed", error);
45 setError(error instanceof Error ? error.message : "Failed to generate images");
46 } finally {
47 setIsLoading(false);
49 };
50
51 const downloadImage = (imageUrl: string, index: number) => {
52 const link = document.createElement('a');
53 link.href = imageUrl;
54 link.download = `generated-image-${index + 1}.jpg`;
55 link.click();
56 };
58 return (
59 <div style={styles.container}>
60 <h1 style={styles.title}>🖼️ Text to 6 Unique Images Generator</h1>
61 <form onSubmit={generateImages} style={styles.form}>
62 <input
63 type="text"
64 value={prompt}
65 onChange={(e) => setPrompt(e.target.value)}
66 placeholder="Describe the image variations you want to create"
67 style={styles.input}
68 />
72 style={styles.button}
73 >
74 {isLoading ? "Generating..." : "Generate 6 Unique Images"}
75 </button>
76 </form>
82 )}
83
84 {isLoading && <p style={styles.loading}>⏳ Generating unique images...</p>}
85
86 <div style={styles.imageGrid}>
87 {images.map((imageUrl, index) => (
88 <div key={index} style={styles.imageContainer}>
89 <img
90 src={imageUrl}
91 alt={`Generated unique image ${index + 1}`}
92 style={styles.image}
93 />
94 <button
95 onClick={() => downloadImage(imageUrl, index)}
96 style={styles.downloadButton}
97 >
103
104 <p style={styles.description}>
105 Each image is a unique interpretation of your prompt
106 </p>
107
169 fontSize: '1.2rem',
170 },
171 imageGrid: {
172 display: 'grid',
173 gridTemplateColumns: 'repeat(auto-fit, minmax(200px, 1fr))',
174 gap: '15px',
175 },
176 imageContainer: {
177 position: 'relative',
178 display: 'flex',
180 alignItems: 'center',
181 },
182 image: {
183 width: '100%',
184 height: '250px',
214 <html>
215 <head>
216 <title>6 Unique Images Generator</title>
217 <meta name="viewport" content="width=device-width, initial-scale=1">
218 <style>

mediainfoREADME.md1 match

@jamiedubsUpdated 3 months ago
1Fetches details about media files (images, video, audio, etc) using [Mediainfo.js](https://mediainfo.js.org/). e.g. codecs used, duration, file sizes, ID3 tags, etc. Check out https://jamiedubs-mediainfo.web.val.run/ for a little interactive example
2
3Beta! API response not 100% stable, I might move things around still. Especially this `summary` field idea

twitterAlertREADME.md2 matches

@charmaineUpdated 3 months ago
11## Example
12This example tracks mentions of "valtown" 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.
13<img src="https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/85912106-f625-443e-5321-6e2699453200/public" width="500"/>
14
15---
19### 1. Fork this Val
20To use this template, fork this val on the top right corner of this page.
21![Screenshot 2025-01-10 at 1.22.10 PM.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/c4ae349d-7e28-4378-8646-21c8958e1f00/public)
22
23### 2. Customize Query

image-inpainting1 file match

@themichaellaiUpdated 1 day ago

brainrot_image_gen1 file match

@dcm31Updated 1 week ago
Generate images for Italian Brainrot characters using FAL AI
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