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=69&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 8289 results for "image"(1910ms)

untitled-7748telegram-image-bot.ts19 matches

@Rajparbat01•Updated 1 week ago
1// Telegram Bot that uses OpenAI's DALL-E to generate images
2import { OpenAI } from "https://esm.town/v/std/openai";
3
91}
92
93// Function to generate an image using OpenAI's DALL-E
94async function generateImage(prompt: string) {
95 try {
96 const response = await openai.images.generate({
97 model: "dall-e-3",
98 prompt: prompt,
103 return response.data[0].url;
104 } catch (error) {
105 console.error("Error generating image:", error);
106 throw error;
107 }
114
115 if (!text) {
116 return sendTelegramMessage(chatId, "Please send a text message with a description of the image you want to generate.");
117 }
118
122 return sendTelegramMessage(
123 chatId,
124 "đź‘‹ Welcome to the Image Generation Bot!\n\n" +
125 "I can generate images based on your descriptions using OpenAI's DALL-E model.\n\n" +
126 "Simply send me a description of the image you want to create, and I'll generate it for you.\n\n" +
127 "For example: *A serene lake surrounded by mountains at sunset*"
128 );
130 return sendTelegramMessage(
131 chatId,
132 "🤖 *Image Generation Bot Help*\n\n" +
133 "To generate an image, simply send me a description of what you want to see.\n\n" +
134 "Available commands:\n" +
135 "• /start - Start the bot and get a welcome message\n" +
145 }
146
147 // Process image generation request
148 try {
149 // Send a message to indicate that the bot is generating the image
150 await sendTelegramMessage(chatId, "🎨 Generating your image... This may take a moment.");
151
152 // Generate the image
153 const imageUrl = await generateImage(text);
154
155 // Send the generated image back to the user
156 return sendTelegramPhoto(chatId, imageUrl, `Here's your generated image based on: "${text}"`);
157 } catch (error) {
158 console.error("Error processing message:", error);
159 return sendTelegramMessage(
160 chatId,
161 "Sorry, there was an error generating your image. Please try again with a different description."
162 );
163 }

untitled-7748main.tsx1 match

@Rajparbat01•Updated 1 week ago
1I need a fully functional, user-friendly, and editable mobile app for my tiffin service business named "Kusum’s Kitchen," operating in DLF2 Newtown, Kolkata. The app should be developed for both Android and iOS platforms using a framework like Flutter or React Native to ensure cross-platform compatibility. The app should be interactive, professional, and easy to navigate for customers, including features like an editable menu tab, a customer feedback section, and a UPI payment gateway. Below are the detailed requirements:App Overview:App Name: Kusum’s KitchenPurpose: To allow customers to browse the menu, place orders for tiffin meals (veg and non-veg thalis), subscribe to monthly plans, make payments via UPI, provide feedback, and contact the business.Target Audience: Residents of DLF2 Newtown, Kolkata, including IT professionals, families, and students who need daily tiffin services.Key Features and Requirements:Home Screen:Display the business name "Kusum’s Kitchen" with a logo placeholder (a simple placeholder image of a thali can be used if a logo isn’t provided).A welcoming banner with a tagline: "Authentic Bengali Tiffin Service in DLF2 Newtown!"Quick navigation buttons for: Menu, Subscription Plans, Order Now, Feedback, and Contact Us.A rotating banner showcasing USPs: "Authentic Bengali Dishes," "Eco-Friendly Packaging," "Free Dessert with Every Order," and "No Repeat Menu."Menu Tab (Editable):An editable menu section where I can add, update, or remove dishes in the future.Categories: Breakfast, Lunch, Dinner.Subcategories: Veg Thali (₹120), Non-Veg Thali (₹150).Example dishes to include initially:Veg Thali: Rice, Dal, Aloo Posto, Mixed Veg Sabji, Roti, Free Dessert/Papad.Non-Veg Thali: Rice, Dal, Shorshe Ilish, Veg Sabji, Roti, Free Dessert/Papad.Each dish should have a name, price, description, and an image placeholder (use generic thali images if specific images aren’t provided).Admin access (via a simple login: username "admin," password "kusum123") to edit the menu (add/remove dishes, update prices, descriptions, etc.).Customers can view the daily menu with a "Today’s Special" section (e.g., "Aloo Posto Thali" on Monday).Order Placement:Interactive ordering system where customers can select a thali (Veg/Non-Veg), choose a time slot (e.g., Lunch: 12:30 PM, Dinner: 7:30 PM), and specify quantity.Option to customize orders (e.g., "Low-Oil," "No Onion/Garlic").Cart functionality to review selected items before checkout.Order summary showing total price, delivery address, and estimated delivery time.Subscription Plans:Section for subscription plans with pricing:Weekly Veg Plan: ₹770 (7 meals, ~₹110/meal).Monthly Veg Plan: ₹3,300 (30 meals, ~₹110/meal, includes 2 free meals).Weekly Non-Veg Plan: ₹980 (7 meals, ~₹140/meal).Monthly Non-Veg Plan: ₹4,200 (30 meals, ~₹140/meal, includes 2 free meals).Option to subscribe directly from the app with a confirmation message (e.g., “You’ve subscribed to the Monthly Veg Plan!”).Display benefits: "No Delivery Fees," "2 Free Meals with Monthly Plan."Payment Gateway (UPI):Integrate a UPI payment gateway (e.g., Razorpay or Paytm API) for seamless payments.Support popular UPI apps like Google Pay, PhonePe, and Paytm.After selecting items or a subscription plan, customers should be redirected to a payment page to enter their UPI ID or scan a QR code.Payment confirmation with a success message (e.g., “Payment Successful! Your order will be delivered by 12:30 PM.”).Customer Feedback Section:A dedicated feedback tab where customers can rate their experience (1–5 stars) and leave comments.Fields: Order ID (auto-filled if possible), Rating, Comments.Display recent feedback on the app (e.g., “5 Stars: Loved the Shorshe Ilish!”) with an option for me to respond as admin (e.g., “Thank you for your feedback!”).Feedback data should be stored in a simple database (e.g., SQLite or Firebase) for future reference.Contact Information:A Contact Us section with the following details:Contact Number: 7278221303Email ID: rajparbat92@gmail.comAddress: Plot-1, Sunrise Tower, DLF 2 Road, Kolkata 700156Interactive options: Click-to-call button for the contact number, click-to-email button for the email ID, and a Google Maps link for the address.Social media link: Instagram handle @kusumskitchen_kolkata (clickable to open Instagram).User-Friendly Features:User login/registration (via phone number or email) to save order history and subscription details.Order tracking: Simple status updates (e.g., “Order Confirmed,” “Preparing,” “Out for Delivery”).Push notifications for daily menu updates, order confirmations, and delivery updates (e.g., “Today’s Special: Aloo Posto Thali!”).Dark/light theme toggle for better accessibility.Multilingual support: English and Bengali (e.g., menu and labels in both languages).Admin Features (Editable/Modifiable):Admin dashboard (accessible via admin login) to:Edit the menu (add/remove dishes, update prices).View and respond to customer feedback.View order history and subscription details.Update contact information if needed.Use a simple backend (e.g., Firebase or Node.js with MongoDB) to store and manage data (menu, orders, feedback).Design and Usability:Vibrant color scheme: Orange, green, and white (to reflect the vibrancy of Bengali cuisine).Professional and clean layout with high-quality placeholder images of thalis (e.g., rice, dal, sabji, roti, Shorshe Ilish).Intuitive navigation with a bottom navigation bar (Home, Menu, Orders, Feedback, Contact).Interactive buttons (e.g., “Add to Cart,” “Subscribe Now”) with hover/click effects.Responsive design for various screen sizes (phones and tablets).Additional Features:Loyalty Program: Display “Earn 1 Free Meal After 10 Orders!” with a progress tracker (e.g., “You’ve ordered 5 meals – 5 more to go!”).Daily Notifications: Send daily menu updates via push notifications (e.g., “Today’s Menu: Veg Thali with Aloo Posto!”).Order History: A tab for users to view past orders and reorder with one click.

todo-appindex.html1 match

@stevekrouse•Updated 1 week ago
13 body {
14 background-color: #f5f5f5;
15 background-image: url('https://maxm-imggenurl.web.val.run/parchment-paper-texture-subtle-background-harry-potter-style');
16 background-size: cover;
17 background-attachment: fixed;
Hubspot-Research

Hubspot-Research.cursorrules2 matches

@charmaine•Updated 1 week ago
178
179- **Redirects:** Use `return new Response(null, { status: 302, headers: { Location: "/place/to/redirect" }})` instead of `Response.redirect` which is broken
180- **Images:** Avoid external images or base64 images. Use emojis, unicode symbols, or icon fonts/libraries instead
181- **AI Image:** To inline generate an AI image use: `<img src="https://maxm-imggenurl.web.val.run/the-description-of-your-image" />`
182- **Storage:** DO NOT use the Deno KV module for storage
183- **Browser APIs:** DO NOT use the `alert()`, `prompt()`, or `confirm()` methods

blogHead.tsx6 matches

@valdottown•Updated 1 week ago
12}) {
13 const description = post?.description ?? SITE_DESCRIPTION;
14 const ogImage = new URL("/og-image.png", BLOG_URL);
15 ogImage.searchParams.append("title", title);
16
17 return (
19 <meta charSet="UTF-8" />
20 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
21 <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
22
23 <title>{title === "Val Town Blog" ? title : `${title} | Val Town Blog`}</title>
33 <meta property="og:description" content={description} />
34
35 <meta property="og:image" content={ogImage} />
36
37 {/* Twitter */}
38 <meta property="twitter:card" content="summary_large_image" />
39 <meta property="twitter:url" content={BLOG_URL} />
40 <meta property="twitter:title" content={title} />
41 <meta property="twitter:description" content={description} />
42
43 <meta property="twitter:image" content={ogImage} />
44
45 {

nightwatchmain.tsx1 match

@join•Updated 1 week ago
140Chaotic Energy: Things go wrong. Plans derail. The multiverse is a messy place.
141Dark Humor & Witty Cynicism: Laugh in the face of cosmic annihilation. Or at least make a sarcastic comment about it.
142Vivid (and sometimes gross) Imagery: Don't shy away from the squishy, pulsating, or just plain weird details of alien worlds.
143RETURN EXACTLY ONE JSON OBJECT. Seriously, just the JSON. No chit-chat, no "Oh, here's your JSON, broh!" Just the cold, hard, interdimensional data. Do NOT include any extra text, dialogue, explanations, or markdown formatting around the JSON itself.
144The JSON object MUST contain the following keys in THIS SPECIFIC ORDER:

usmain.ts2 matches

@join•Updated 1 week ago
259 }, Services: ${p.serviceDescription || "N/A"}. Audience: ${p.targetAudience || "N/A"}. Tone: ${
260 p.brandTone || "Insightful"
261 }. Task: Create a persona. Output JSON: { "personaFullName": "string", "archetype": "string", "demographicsSummary": "string", "psychographicsAndValues": "string", "keyGoalsList": ["string"], "keyPainPointsList": ["string"], "motivationsAndTriggers": "string", "wateringHolesAndInfluences": "string", "dayInLifeNarrative": "string (150-250 words)", "aiArtPrompt": "string (image gen prompt)"}`,
262 user:
263 `Persona Data: Name Attempt: ${p.personaNameAttempt}, Demographics: ${p.personaDemographics}, Psychographics: ${p.personaPsychographics}, Goals/Needs: ${p.personaGoalsNeeds}, Pain Points: ${p.personaPainPoints}, Watering Holes: ${
855 return `<!DOCTYPE html><html lang="en">
856<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1.0"><title>Guided AI Process</title><script src="https://cdn.tailwindcss.com"></script><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
857<style>body{font-family:'Inter',sans-serif;background-color:#f3f4f6;color:#1f2937;display:flex;flex-direction:column;align-items:center;padding:2rem 1rem;min-height:100vh}#grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;padding:1rem;max-width:900px;width:100%}.grid-item{background:#fff;border-radius:.75rem;box-shadow:0 4px 6px rgba(0,0,0,.07);cursor:pointer;padding:1.5rem;transition:transform .2s ease,box-shadow .2s ease;border-left:5px solid transparent;display:flex;flex-direction:column;justify-content:space-between;min-height:180px}.grid-item:hover{transform:translateY(-4px);box-shadow:0 10px 15px rgba(0,0,0,.1)}.grid-item h3{font-size:1.2rem;font-weight:700;margin-bottom:.5rem}.grid-item p{font-size:.9rem;color:#6b7280;line-height:1.5;flex-grow:1}.grid-item.border-blue-500{border-left-color:#3b82f6}.grid-item.border-blue-500 h3{color:#3b82f6}.grid-item.border-green-500{border-left-color:#22c55e}.grid-item.border-green-500 h3{color:#22c55e}.grid-item.border-purple-500{border-left-color:#a855f7}.grid-item.border-purple-500 h3{color:#a855f7}.grid-item.border-yellow-500{border-left-color:#f59e0b}.grid-item.border-yellow-500 h3{color:#f59e0b}#wizard-container{display:none;width:100%;max-width:768px;background:#fff;border-radius:.75rem;box-shadow:0 10px 25px rgba(0,0,0,.1);margin-top:1rem;overflow:hidden}#wizard-header{padding:1.25rem 1.75rem;background-color:#4a5568;color:#fff}#wizard-process-title{font-size:1.6rem;font-weight:700;text-align:center}#wizard-progress{font-size:.85rem;text-align:center;margin-top:.35rem;opacity:.85}#wizard-step-content{padding:1.75rem;min-height:280px}#wizard-navigation{padding:1.25rem 1.75rem;background-color:#f7fafc;border-top:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center}.fL{display:block;margin-bottom:.75rem;font-weight:600;color:#374151}.fc{display:block;width:100%;padding:.6rem .85rem;font-size:.95rem;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.3rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-family:inherit;margin-bottom:1.25rem;min-height:42px}.fc:focus{color:#495057;background:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}textarea.fc{min-height:100px}select.fc{height:42px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;padding-right:2.25rem}.aB{display:inline-block;font-weight:500;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:1px solid transparent;padding:.6rem 1.2rem;font-size:.95rem;line-height:1.5;border-radius:.3rem;transition:all .15s ease-in-out;cursor:pointer;font-family:inherit}.aB-primary{background:#2563eb;color:#fff;border-color:#2563eb}.aB-primary:hover{background:#1d4ed8;border-color:#1d4ed8}.aB-secondary{background:#6b7280;color:#fff;border-color:#6b7280}.aB-secondary:hover{background:#4b5563;border-color:#4b5563}.aB-warning{background:#f59e0b;color:#fff;border-color:#f59e0b}.aB-warning:hover{background:#d97706;border-color:#d97706}.aB:disabled{background:#cbd5e1;border-color:#cbd5e1;color:#94a3b8;cursor:not-allowed;opacity:.8}.eM{color:#dc2626;font-size:.9rem;margin-top:.25rem;border:1px solid #fecaca;background:#fee2e2;padding:.85rem;border-radius:.3rem;margin-bottom:1rem}.lI{text-align:center;padding:2.5rem;color:#4338ca;font-weight:600;font-size:1.1rem}.rO{margin-top:1rem;background:#f9fafb;padding:1.25rem;border-radius:.5rem;border:1px solid #e5e7eb;font-size:.95rem;line-height:1.6}.rO h3{font-size:1.3rem;font-weight:600;margin-bottom:1rem;color:#1e293b}.rO h4{font-size:1.1rem;font-weight:600;margin-top:1.25rem;margin-bottom:.6rem;color:#334155}.rO p{margin-bottom:.75rem}.rO ul{list-style:disc;margin-left:1.5rem;padding-left:.5rem;margin-bottom:.75rem}.rO pre{white-space:pre-wrap;word-wrap:break-word;background:#e5e7eb;padding:.85rem;border-radius:.3rem;max-height:350px;overflow-y:auto;font-size:.85rem;line-height:1.5;color:#1f2937}.status-message{padding:1rem;text-align:center;font-style:italic;color:#4b5563}
858</style></head><body><div id="grid"></div>
859<div id="wizard-container"><div id="wizard-header"><h2 id="wizard-process-title"></h2><div id="wizard-progress">Step 0 of 0</div></div><div id="wizard-step-content"></div><div id="wizard-navigation"><button id="wizard-cancel-btn" class="aB aB-secondary">Process List</button><div><button id="wizard-prev-btn" class="aB aB-warning" style="margin-right:.5rem;display:none">Previous</button><button id="wizard-next-btn" class="aB aB-primary">Next</button></div></div></div>

clouds2moi.md1 match

@dcm31•Updated 1 week ago
2title: "clouds2"
3description: ""
4imageUrl: "https://chatgpt.com/backend-api/public_content/enc/eyJpZCI6Im1fNjgyZTAyNTM5MTc0ODE5MTkxYTQyZDgwNjVkMTc4Yjk6ZmlsZV8wMDAwMDAwMDE0Yzg2MWY5OGViZTBmNWFkMTEzMzcxNSIsInRzIjoiNDg1NTEyIiwicCI6InB5aSIsInNpZyI6IjUwZDZkZmEwMDA4MjU2NDkxY2NjMGMzZTc4ZWZlYjU4NjBjZGRlNDFiOTdmODc4MWNhNGRlZWRlNmRmNTk0NzQiLCJ2IjoiMCIsImdpem1vX2lkIjpudWxsfQ=="
5url: "https://dcm31--9dde729c278311f0b46e569c3dd06744.web.val.run"
6author: "dcm31"

bragreelgetTitle.tsx3 matches

@yawnxyz•Updated 1 week ago
258 headers: {
259 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
260 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
261 'Accept-Language': 'en-US,en;q=0.5'
262 }
314 headers: {
315 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
316 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
317 'Accept-Language': 'en-US,en;q=0.5',
318 'Referer': googleSearchUrl,
359 headers: {
360 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
361 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
362 'Accept-Language': 'en-US,en;q=0.5',
363 'Referer': 'https://www.google.com/',

bragreelfavicon.tsx5 matches

@yawnxyz•Updated 1 week ago
33 success: true,
34 faviconUrl: googleFaviconUrl,
35 contentType: "image/png", // Google Favicon API returns PNG
36 source: "google_api",
37 };
50 if (faviconResponse.ok) {
51 // Get the content type
52 const contentType = faviconResponse.headers.get("content-type") || "image/x-icon";
53 console.log(`Found favicon directly at ${faviconUrl} with content type: ${contentType}`);
54
88 }
89
90 // 3. Any image with "favicon" in the name or path
91 if (!match) {
92 const anyFaviconRegex = /href=[\"']([^\"']*favicon[^\"']*)[\"']/i;
112
113 if (faviconResponse.ok) {
114 const contentType = faviconResponse.headers.get("content-type") || "image/x-icon";
115 console.log(`Successfully fetched favicon from ${extractedFaviconUrl} with content type: ${contentType}`);
116
140 success: true,
141 faviconUrl: googleFaviconUrl,
142 contentType: "image/png",
143 source: "google_api_fallback",
144 };
placeholdji

placeholdji2 file matches

@jjg•Updated 8 hours ago
Placeholder image service with emojis 🖼️

image_proxy

@oops•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