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=262&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 2775 results for "image"(332ms)

ikeaSecondChanceOffersmain.tsx3 matches

@stevekrouse•Updated 2 months ago
22 description: string;
23 price: number;
24 heroImage?: string;
25 images: string[];
26 currency: string;
27 priority: number;
63 <div style="display: flex; border: 1px solid #ddd; margin-bottom: 10px; padding: 10px;">
64 <div style="width: 30%; padding-right: 10px;">
65 <img src="${item.heroImage}" style="max-width: 100%; max-height: 250px; object-fit: contain;" />
66 </div>
67 <div style="width: 70%;">

ikeaSecondChanceOffersREADME.md1 match

@stevekrouse•Updated 2 months ago
61. **Poll** the IKEA API for second-chance offers (based on store IDs).
72. **Compare** against a stored last-known item ID in blob storage (so you don’t see old items).
83. **Email** any new offers found (with images, prices, store names).
94. **Update** blob storage with the new item ID.
10

tldraw_computer_examplemain.tsx3 matches

@charmaine•Updated 2 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 = {

cleverSilverGerbilREADME.md1 match

@charmaine•Updated 2 months ago
21
22**Example inside Framer, with Fetch:**
23![Screenshot 2025-02-06 at 6.37.22 PM.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/44decce0-ba11-4f32-0ab0-c940bccda100/public)
24
25

cleverSilverGerbilmain.tsx1 match

@charmaine•Updated 2 months ago
23 const trackName = track.name;
24 const artist = track.artist["#text"];
25 const artwork = track.image ? track.image[track.image.length - 1]["#text"] : null;
26
27 return Response.json({ trackName, artist, artwork });

ListeningToLastFMmain.tsx1 match

@charmaine•Updated 2 months ago
23 const trackName = track.name;
24 const artist = track.artist["#text"];
25 const artwork = track.image ? track.image[track.image.length - 1]["#text"] : null;
26
27 return Response.json({ trackName, artist, artwork });

LlmDashboardllm-base-provider1 match

@prashamtrivedi•Updated 2 months ago
9export interface ModelCapabilities {
10 textToText: boolean;
11 imageGeneration: boolean;
12 multimodal: boolean;
13 reasoning: boolean;

LlmDashboardllm-provider-gemini13 matches

@prashamtrivedi•Updated 2 months ago
14 candidate_count?: number;
15 // For multimodal inputs
16 image_base64?: string;
17}
18
31 capabilities: {
32 textToText: true,
33 imageGeneration: false,
34 multimodal: false,
35 reasoning: true,
59 capabilities: {
60 textToText: true,
61 imageGeneration: false,
62 multimodal: true,
63 reasoning: true,
94 const content: Record<string, unknown> = { text: msg.content };
95
96 // Handle multimodal content if image is provided in provider params
97 if (msg.role === "user" && this.currentImageBase64) {
98 content.inlineData = {
99 mimeType: "image/jpeg",
100 data: this.currentImageBase64,
101 };
102 }
106 }
107
108 // Store current image for multimodal requests
109 private currentImageBase64: string | null = null;
110
111 async complete(
119 }
120
121 // Store image for multimodal processing if provided
122 this.currentImageBase64 = config?.providerParams?.image_base64 || null;
123
124 // Note: This is a placeholder as Val Town doesn't have a native Google AI client
147 const result = await response.json();
148
149 // Clear stored image after request
150 this.currentImageBase64 = null;
151
152 // Approximate token count based on characters

LlmDashboardllm-provider-anthropic2 matches

@prashamtrivedi•Updated 2 months ago
26 capabilities: {
27 textToText: true,
28 imageGeneration: false,
29 multimodal: true,
30 reasoning: true,
54 capabilities: {
55 textToText: true,
56 imageGeneration: false,
57 multimodal: true,
58 reasoning: true,

LlmDashboardllm-provider-openai2 matches

@prashamtrivedi•Updated 2 months ago
51 capabilities: {
52 textToText: true,
53 imageGeneration: false,
54 multimodal: false,
55 reasoning: true,
80 capabilities: {
81 textToText: true,
82 imageGeneration: false,
83 multimodal: true,
84 reasoning: true,

brainrot_image_gen1 file match

@dcm31•Updated 2 days ago
Generate images for Italian Brainrot characters using FAL AI

modifyImage2 file matches

@stevekrouse•Updated 2 days ago