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/$%7Bsuccess?q=image&page=92&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 6877 results for "image"(1056ms)

moiPosterImprovedQuickEditor.tsx15 matches

@dcm31•Updated 1 week ago
23 title: string;
24 description: string;
25 imageUrl?: string;
26 tags: string[];
27 author?: string;
50 title: '',
51 description: '',
52 imageUrl: '',
53 tags: [],
54 author: username || '',
71 title: '',
72 description: '',
73 imageUrl: '',
74 url: '',
75 tags: [],
94 title: parsed.title || '',
95 description: parsed.description || '',
96 imageUrl: parsed.imageUrl || '',
97 url: parsed.url || '',
98 tags: parsed.tags || ['val-town'],
115 title: '',
116 description: '',
117 imageUrl: '',
118 url: '',
119 tags: ['val-town'],
236 frontmatter += `description: "${data.description}"\n`;
237
238 if (data.imageUrl) {
239 frontmatter += `imageUrl: "${data.imageUrl}"\n`;
240 }
241
312 <div>
313 <label className="block text-sm font-medium text-gray-700 mb-1">
314 Image URL <span className="text-gray-400 text-xs">(Optional)</span>
315 </label>
316 <input
317 type="text"
318 value={metadata.imageUrl || ''}
319 onChange={(e) => updateField('imageUrl', e.target.value)}
320 className="w-full p-2 border rounded-md"
321 placeholder="https://example.com/image.png"
322 disabled={disabled}
323 />
453 title: string;
454 description: string;
455 imageUrl?: string;
456 url?: string;
457 author?: string;
466 title: '',
467 description: '',
468 imageUrl: undefined,
469 url: undefined,
470 author: undefined,
519 result.description = value;
520 break;
521 case 'imageUrl':
522 result.imageUrl = value;
523 break;
524 case 'url':

MLSpointsPerMillionmoi.md1 match

@dcm31•Updated 1 week ago
2title: "MLSpointsPerMillion"
3description: "A undefined val"
4imageUrl: "https://chatgpt.com/backend-api/public_content/enc/eyJpZCI6Im1fNjgxM2VkOWNjZWVjODE5MTg4ZmJlYjJmNmJkNDE5NzU6ZmlsZV8wMDAwMDAwMDFmMWM2MjMwYjc0YTk0Y2I1NWFiNGY2ZCIsInRzIjoiNDg1MDM3IiwicCI6InB5aSIsInNpZyI6IjRjYTc5NGVhZTBkMDA0NmVlNzBhYjM4ZDE2NmU3MThjMTA0ZTk3ZWY2OTE1YjA0ZThlZjk4NGEyMjg4ODBkNjIiLCJ2IjoiMCIsImdpem1vX2lkIjpudWxsfQ=="
5url: "https://dcm31--2458b00826d511f0961b569c3dd06744.web.val.run"
6author: "dcm31"

FixItWandgenerate.ts16 matches

@wolf•Updated 2 weeks ago
9 *
10 * @param {Object} params - The parameters for generating the work order email
11 * @param {string} [params.imageB64] - Base64 of the image of the issue (optional)
12 * @param {string} [params.audioB64] - Base64 of the audio recording describing the issue (optional)
13 * @param {string} params.fromName - Name of the sender
16export async function generateWorkorderEmail(
17 {
18 imageB64,
19 audioB64,
20 fromName,
21 }: {
22 imageB64?: string;
23 audioB64?: string;
24 fromName: string;
25 },
26): Promise<{ body: string; subject: string }> {
27 // Validate that at least one of image or audio is provided
28 if (!imageB64 && !audioB64) {
29 throw new Error("At least one of image or audio must be provided");
30 }
31
92orders. Generate a work order email based on the provided ${
93 audioB64 ? "issue description" : ""
94 }${audioB64 && imageB64 ? " and " : ""}${imageB64 ? "image" : ""}.
95Include relevant details and if useful recommended actions. Be
96relatively brief. Be very down to the point. Don't make assumptions. Say what
98NOT INCLUDE A SUBJECT, OR ANY OTHER PLACEHOLDERS. Just give the body and the
99intro You want to get stuff done!. ${
100 imageB64 ? "Mention the attached image." : ""
101 } Be a bit
102forceful. Don't say it is "urgent" unless you think it is urgent. Do not sound
113 // Build the user content array
114 const userContent: Array<
115 { type: string; text?: string; image_url?: { url: string } }
116 > = [];
117
123 transcription
124 ? `this issue description: ${transcription}`
125 : "the image provided"
126 }${locationInfo ? "\n\nLocation information: " + locationInfo : ""}`,
127 });
129 userContent.push({
130 type: "text",
131 text: "Please generate a work order email based on the image provided.",
132 });
133 }
134
135 // Add image if provided
136 if (imageB64) {
137 userContent.push({
138 type: "image_url",
139 image_url: {
140 url: imageB64,
141 },
142 });

MiniAppStarterindex.tsx3 matches

@jhonceth•Updated 2 weeks ago
5import * as db from "./db.ts";
6import { embedMetadata, handleFarcasterEndpoints, name } from "./farcaster.ts";
7import { handleImageEndpoints } from "./image.tsx";
8
9const app = new Hono();
10
11handleImageEndpoints(app);
12handleFarcasterEndpoints(app);
13
44 <meta name="fc:frame" content={JSON.stringify(embedMetadata(baseUrl, path))} />
45 <link rel="icon" href={baseUrl + "/icon"} />
46 <meta property="og:image" content={baseUrl + "/image"} />
47 </head>
48 <body class="bg-white text-black dark:bg-black dark:text-white">

MiniAppStarterimage.tsx12 matches

@jhonceth•Updated 2 weeks ago
5import satori from "npm:satori";
6
7export function handleImageEndpoints(app: Hono) {
8 const headers = {
9 "Content-Type": "image/png",
10 "cache-control": "public, max-age=86400",
11 };
12 app.get("/image", async (c) => {
13 return c.body(await homeImage(), 200, headers);
14 });
15 app.get("/icon", async (c) => {
16 return c.body(await iconImage(), 200, headers);
17 });
18}
19
20export async function homeImage() {
21 return await ogImage(
22 <div tw="w-full h-full flex justify-start items-end text-[100px] bg-black text-white p-[50px]">
23 <div tw="flex flex-col items-start gap-[10px]">
31}
32
33export async function iconImage() {
34 return await ogImage(
35 <div tw="w-full h-full flex justify-center items-center text-[100px] bg-black text-white p-[50px]">
36 <img tw="w-[350px] h-[350px]" src={base64Icon(SquareDashed)} />
45//////////
46
47export async function ogImage(body, options = {}) {
48 const svg = await satori(
49 body,
57 if (code === "emoji") {
58 const unicode = segment.codePointAt(0).toString(16).toUpperCase();
59 return `data:image/svg+xml;base64,` + btoa(await loadEmoji(unicode));
60 }
61 return "";
94 const base64 = Buffer.from(svg).toString("base64");
95 // console.log('getIconDataUrl', name, svg, base64)
96 return `data:image/svg+xml;base64,${base64}`;
97};

MiniAppStarterfarcaster.ts4 matches

@jhonceth•Updated 2 weeks ago
5export const name = "Mini App Starter";
6// export const iconUrl = "https://imgur.com/TrJLlwp.png";
7// export const ogImageUrl = "https://imgur.com/xKVOVUE.png";
8
9export function embedMetadata(baseUrl: string, path: string = "/") {
10 return {
11 version: "next",
12 imageUrl: baseUrl + "/image",
13 button: {
14 title: name,
17 name: name,
18 url: baseUrl + path,
19 splashImageUrl: baseUrl + "/icon",
20 splashBackgroundColor: "#111111",
21 },
55 "iconUrl": baseUrl + "/icon",
56 "homeUrl": baseUrl,
57 "splashImageUrl": baseUrl + "/icon",
58 "splashBackgroundColor": "#111111",
59 "primaryCategory": "developer-tools",

WillpersonalWebsiteHTTP1011 match

@willthereader•Updated 2 weeks ago
48
49<h2>Credit</h2>
50<div><div><p>I copied image <a class="text-blue-500 hover:underline" href="https://medium.com/@prabathshalitha21/11-http-headers-http-status-codes-eb34449599fb/">11. HTTP Headers
51& HTTP Status Codes</a> which was written by <a class="text-blue-500 hover:underline" href="https://medium.com/@prabathshalitha21?source=post_page---byline--eb34449599fb---------------------------------------">Prabath Shalitha</a></p></div></div>
52
how-to

how-toREADME.md3 matches

@jxnblk•Updated 2 weeks ago
14- [Hono JSX Starter][]: Render Hono with JSX
15- [Hono Client Starter][]: Render Hono with JSX on the server and hydrate on the client
16- [SVG Starter][]: Render an SVG image response
17- [SVG PNG Starter][]: Render an SVG as a PNG image response
18- [Preact Starter][]: Render Preact on the server
19- [Preact Client Starter][]: Render Preact on the server and hydrate the app on the client
46
47<!--
48- README card image
49
50- [x] React Starter

OpenTownie_jacksonuseChatLogic.ts4 matches

@stevekrouse•Updated 2 weeks ago
9 bearerToken: string;
10 selectedFiles: string[];
11 images: (string | null)[];
12 soundEnabled: boolean;
13}
19 bearerToken,
20 selectedFiles,
21 images,
22 soundEnabled,
23}: UseChatLogicProps) {
43 anthropicApiKey,
44 selectedFiles,
45 images: images
46 .filter((img): img is string => {
47 const isValid = typeof img === "string" && img.startsWith("data:");
48 if (!isValid && img !== null) {
49 console.warn("Invalid image format:", img?.substring(0, 50) + "...");
50 }
51 return isValid;

OpenTownie_jacksonTODOs.md2 matches

@stevekrouse•Updated 2 weeks ago
29 - [x] File write as a code embed
30 - [x] str_replace as a diff view
31- [x] make image drop area invisible and bigger
32- [x] Give it all the code (except maybe .txt files) as initial context (like cursor sonnet max)
33- [x] I seem to have lost the delete file tool and instructions, try to find them back in history or re-create?
55- [x] Create branch
56- [x] URL input + pathname
57- [x] Image upload controls
58- [x] Preview refresh button
59- [x] Audio controls

thilenius-webcam1 file match

@stabbylambda•Updated 3 days ago
Image proxy for the latest from https://gliderport.thilenius.com

image-gen

@armadillomike•Updated 6 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