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=8&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 6769 results for "image"(714ms)

jamesWebbImageProxy1 file match

@maxm•Updated 11 months ago

uploadImage2 file matches

@qqyule•Updated 11 months ago

asciiImageExample2 file matches

@maxm•Updated 11 months ago

imageToAscii1 file match

@maxm•Updated 11 months ago

imageDownSizer2 file matches

@yawnxyz•Updated 11 months ago

aiImageExample2 file matches

@yawnxyz•Updated 11 months ago

gpt4o_images2 file matches

@jdan•Updated 11 months ago

falImageHandler1 file match

@isidentical•Updated 11 months ago

falImageGen1 file match

@isidentical•Updated 11 months ago

blobImages2 file matches

@jdan•Updated 11 months ago

ExperimentalMain.tsx15 matches

@Get•Updated 1 hour ago
681 const output: CntOut = { content: genContent };
682 if (p.cType === "promo_post" || p.cType === "ad_copy") {
683 output.suggestions = "Consider pairing with a relevant image or video. Test different calls-to-action (CTAs).";
684 } else if (p.cType === "blog_idea") {
685 output.suggestions = "Research keywords for the chosen idea. Create a detailed outline before writing.";
768 }, Tone: ${
769 p.bTone || "Professional"
770 }. INSTR: 1. Gen 2-3 diff concepts (icon, wordmark, abstract/combo). 2. Format each (MD): ### Concept Title \\n#### Description: \\n- Visuals, symbolism, fonts (sans/serif), colors. \\n#### AI Image Generation Prompt: \\n- Detailed prompt for AI (DALL-E, etc). Incl: type(vector logo), subj(BN/initials), style(minimalist, flat), elements, colors, bg(white). Ex: "/imagine prompt: vector logo for '${p.bName}', minimalist flat design [Symbol], clean sans-serif, blue (#005C99), gray (#CCCCCC), isolated white bg --style raw --ar 1:1" 3. Separate concepts w/ '---'. 4. (Opt) If simple, attempt basic SVG: \\\`\\\`\\\`svg ... \\\`\\\`\\\`. 5. Output ONLY concepts. No intro/outro.`;
771 const userP =
772 `Generate 2-3 distinct logo concepts for "${p.bName}" based on the system prompt. Provide descriptions and AI prompts.`;
782 sections.forEach(sec => {
783 const titleM = sec.match(/### (.*?)\n/);
784 const descM = sec.match(/#### Description:\n([\s\S]*?)(?=\n#### AI Image Generation Prompt:|$)/i);
785 const promptM = sec.match(/#### AI Image Generation Prompt:\n([\s\S]*?)(?=\n\`\`\`svg|$)/i);
786 if (titleM && descM && promptM) {
787 concepts.push(`Title: ${titleM[1].trim()}\n\nDescription:\n${descM[1].trim()}`);
893 }
894}
895async function runSimAgent(task: TskIn<SimIn>, logFn: LogFn): Promise<TskOut<SimOut>> {
896 const { mid, tid, p } = task;
897 let paramDesc = "N/A";
900 } catch (e) {
901 paramDesc = "[Serialization fail]";
902 logFn("WARN", "SimAgent", `Failed serialize specParams tid=${tid}`, { err: (e as Error).message }, mid, tid);
903 }
904 logFn(
905 "INFO",
906 "SimAgent",
907 `Starting sim task tid=${tid}`,
908 { simType: p.simType, paramsP: paramDesc.substring(0, 100) },
919 const simContent = await callOpenAI(sysP, userP, mid, tid, logFn);
920 if (!simContent) {
921 logFn("WARN", "SimAgent", `LLM no content for sim tid=${tid}.`, undefined, mid, tid);
922 return { mid, cid: tid, p: { simResult: "" }, e: "AI failed sim." };
923 }
929 simResult = simContent.substring(0, splitIndex).trim();
930 analysis = simContent.substring(splitIndex).replace(/^## Analysis\s*[\r\n]+/mi, "").trim();
931 logFn("DEBUG", "SimAgent", `Analysis section found tid=${tid}`, { analysisLen: analysis.length }, mid, tid);
932 } else {
933 simResult = simContent.trim();
934 logFn("DEBUG", "SimAgent", `No analysis section found tid=${tid}`, undefined, mid, tid);
935 }
936 if (!simResult && analysis) {
937 logFn("WARN", "SimAgent", `Sim result empty, analysis found tid=${tid}.`, undefined, mid, tid);
938 simResult = "(Simulation produced analysis but no primary result)";
939 } else if (!simResult && !analysis) {
940 logFn("WARN", "SimAgent", `Sim result & analysis empty tid=${tid}.`, undefined, mid, tid);
941 simResult = "(Simulation produced no output)";
942 }
944 logFn(
945 "INFO",
946 "SimAgent",
947 `Sim task OK tid=${tid}.`,
948 { resLen: output.simResult.length, hasAnalysis: !!output.analysis },
952 return { mid, cid: tid, p: output };
953 } catch (err: any) {
954 logFn("ERROR", "SimAgent", `Sim task fail tid=${tid}.`, { err: err.message }, mid, tid);
955 return { mid, cid: tid, p: { simResult: "" }, e: `Simulation run failed: ${err.message}` };
956 }
1016 break;
1017 case "run_simulation":
1018 taskOutput = await runSimAgent(taskInput as TskIn<SimIn>, agentLog);
1019 break;
1020 case "meta_prompt":

testindex.ts1 match

@ofird•Updated 1 hour ago
17 .hero-pattern {
18 background-color: #f9fafb;
19 background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23bae6fd' fill-opacity='0.4'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
20 }
21 </style>
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