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/$%7Bart_info.art.src%7D?q=image&page=46&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 7899 results for "image"(1245ms)

bedtime-story-timestories.ts6 matches

@dthyressonโ€ขUpdated 4 days ago
1import { Hono } from "https://esm.sh/hono@3.11.7";
2import { saveStory, getAllStories, getStoryById, deleteStory } from "../database/queries.ts";
3import { generateStory, generateImagePrompt } from "../services/storyGenerator.ts";
4import { StoryOptions, Story } from "../../shared/types.ts";
5
14 const { title, content, animalName } = await generateStory(options);
15
16 // Generate image prompt
17 const imagePrompt = generateImagePrompt(options, animalName, title);
18
19 // Create image URL using Val Town's AI image generation
20 const imageUrl = `https://maxm-imggenurl.web.val.run/${encodeURIComponent(imagePrompt)}`;
21
22 // Create the story object
32 style: options.style,
33 styleEmoji: options.styleEmoji,
34 imageUrl,
35 createdAt: new Date().toISOString()
36 };

bedtime-story-timestoryGenerator.ts1 match

@dthyressonโ€ขUpdated 4 days ago
55}
56
57export function generateImagePrompt(options: StoryOptions, animalName: string, title: string): string {
58 const { animal, color, activity, style } = options;
59

bedtime-story-timequeries.ts4 matches

@dthyressonโ€ขUpdated 4 days ago
9 title, content, animal, animal_emoji, animal_name,
10 color, activity, activity_emoji, style, style_emoji,
11 image_url, created_at
12 ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
13 RETURNING id`,
23 story.style,
24 story.styleEmoji,
25 story.imageUrl,
26 story.createdAt,
27 ]
38 animal_name as animalName, color, activity,
39 activity_emoji as activityEmoji, style, style_emoji as styleEmoji,
40 image_url as imageUrl, created_at as createdAt
41 FROM ${STORIES_TABLE}
42 ORDER BY created_at DESC
53 animal_name as animalName, color, activity,
54 activity_emoji as activityEmoji, style, style_emoji as styleEmoji,
55 image_url as imageUrl, created_at as createdAt
56 FROM ${STORIES_TABLE}
57 WHERE id = ?`,

bedtime-story-timemigrations.ts1 match

@dthyressonโ€ขUpdated 4 days ago
19 style TEXT NOT NULL,
20 style_emoji TEXT NOT NULL,
21 image_url TEXT NOT NULL,
22 created_at TEXT NOT NULL
23 )

bedtime-story-timetypes.ts1 match

@dthyressonโ€ขUpdated 4 days ago
13 style: string;
14 styleEmoji: string;
15 imageUrl: string;
16 createdAt: string;
17}

SEA-ICE-GROUPblog.html1 match

@devthom_studiosโ€ขUpdated 4 days ago
244 postEl.innerHTML = `
245 <a href="/blog/${post.id}" class="block">
246 <img src="${post.image}" alt="${post.title}" class="w-full h-48 object-cover">
247 <div class="p-6">
248 <h3 class="text-xl font-semibold mb-2">${post.title}</h3>

SEA-ICE-GROUPindex.html11 matches

@devthom_studiosโ€ขUpdated 4 days ago
53 </div>
54 </div>
55 <div class="absolute inset-0 bg-cover bg-center opacity-20" style="background-image: url('https://maxm-imggenurl.web.val.run/aerial-view-of-arctic-sea-ice-with-cracks-and-leads-scientific-photography')"></div>
56 </section>
57
473 projectEl.className = 'overflow-hidden rounded-lg shadow transition-transform hover:scale-105';
474
475 // Use placeholder image if project image is not available
476 const imageUrl = project.image || 'https://maxm-imggenurl.web.val.run/sea-ice-research-' + project.id;
477
478 projectEl.innerHTML = `
479 <a href="/research/${project.id}" class="block">
480 <div class="h-48 bg-cover bg-center" style="background-image: url('${imageUrl}')"></div>
481 <div class="bg-white p-6">
482 <h3 class="text-xl font-semibold mb-3">${project.title}</h3>
510 memberEl.className = 'overflow-hidden rounded-lg shadow transition-transform hover:scale-105';
511
512 // Use placeholder image if member image is not available
513 const imageUrl = member.image || 'https://maxm-imggenurl.web.val.run/portrait-of-scientist-' + member.id;
514
515 memberEl.innerHTML = `
516 <a href="/team/${member.id}" class="block">
517 <div class="h-64 bg-cover bg-center" style="background-image: url('${imageUrl}')"></div>
518 <div class="bg-white p-4">
519 <h3 class="text-lg font-semibold">${member.name}</h3>
585 });
586
587 // Use image if available
588 const imageHtml = item.image ?
589 `<div class="mb-4">
590 <img src="${item.image}" alt="${item.title}" class="w-full h-48 object-cover rounded">
591 </div>` : '';
592
593 newsEl.innerHTML = `
594 ${imageHtml}
595 <h3 class="text-xl font-semibold mb-2">${item.title}</h3>
596 <p class="text-gray-600 mb-4">${formattedDate}</p>

SEA-ICE-GROUPREADME.md3 matches

@devthom_studiosโ€ขUpdated 4 days ago
5In a production environment, this would include:
6
7- Images of team members
8- Research project images
9- Logos and icons
10- Other static media files
11
12For this demo, we're using AI-generated placeholder images via the URL pattern:
13`https://maxm-imggenurl.web.val.run/[description]`

SEA-ICE-GROUPutils.ts2 matches

@devthom_studiosโ€ขUpdated 4 days ago
7 title: string;
8 bio: string;
9 image?: string;
10}
11
26 title: string;
27 description: string;
28 image?: string;
29}
30

SEA-ICE-GROUPREADME.md1 match

@devthom_studiosโ€ขUpdated 4 days ago
11โ”œโ”€โ”€ frontend/
12โ”‚ โ”œโ”€โ”€ components/ # Reusable UI components
13โ”‚ โ”œโ”€โ”€ assets/ # Images and other static assets
14โ”‚ โ”œโ”€โ”€ index.html # Main HTML template
15โ”‚ โ”œโ”€โ”€ style.css # Custom styles

image_proxy

@oopsโ€ขUpdated 23 hours ago

ImageExplorer10 file matches

@carmiโ€ขUpdated 5 days 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