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=584&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 6021 results for "image"(733ms)

textToImageDallemain.tsx3 matches

@stevekrouse•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export const textToImageDalle = async (
4 openAIToken: string,
5 prompt: string,
17 };
18 } = await fetchJSON(
19 "https://api.openai.com/v1/images/generations",
20 {
21 method: "POST",
33 return json;
34};
35// Forked from @hootz.textToImageDalle

generateQRmain.tsx2 matches

@galligan•Updated 1 year ago
18 }
19 const { qrcode } = await import("https://deno.land/x/qrcode/mod.ts");
20 const base64Image = await qrcode(url);
21 res.send(
22 `<html><body><img src=${base64Image} height="100px" width="100px" /><p style="font-size:10px">QR Code generated using <a href="https://val.town">val.town</a></p><p style="font-size:10px">Built with &#128151; by <a href="https://twitter.com/Ramkarthik">Ramkarthik</a></p></body></html>`,
23 );
24}

cV3main.tsx3 matches

@vawogbemi•Updated 1 year ago
1export function cV3(name, image, address) {
2 return {
3 "name": name,
5 "description": "made on Tipstarter",
6 "seller_fee_basis_points": 0,
7 "image": image,
8 "external_url": null,
9 "collection": {
11 },
12 "properties": {
13 "category": "image",
14 "creators": [
15 {

TodayForAnnalisamain.tsx3 matches

@mttlws•Updated 1 year ago
9 <head>
10 <title>Today for Annalisa 🥹</title>
11 <link rel="icon" type="image/svg+xml" href="data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%3E%3C%2Fcircle%3E%3Cline%20x1%3D%2212%22%20y1%3D%2216%22%20x2%3D%2212%22%20y2%3D%2212%22%3E%3C%2Fline%3E%3Cline%20x1%3D%2212%22%20y1%3D%2212%22%20x2%3D%2216%22%20y2%3D%2212%22%3E%3C%2Fline%3E%3Cline%20x1%3D%2212%22%20y1%3D%2212%22%20x2%3D%2210%22%20y2%3D%2212%22%3E%3C%2Fline%3E%3C%2Fsvg%3E" />
12 <meta name="description" content="Today for Annalisa 🥹" />
13 <meta name="description" content="Today for Annalisa 🥹" />
17 <meta property="og:title" content="Today for Annalisa 🥹" />
18 <meta property="og:description" content="Today for Annalisa 🥹" />
19 <meta property="og:image" content="https://picsum.photos/1200/630" />
20 <meta property="og:url" content="https://mttlws-todayforannalisa.express.val.run" />
21 <meta property="og:type" content="website" />
22 <meta property="twitter:title" content="Today for Annalisa 🥹" />
23 <meta property="twitter:description" content="Today for Annalisa 🥹" />
24 <meta property="twitter:image" content="https://picsum.photos/1200/630" />
25 <style>
26 body {

tempImageValmain.tsx1 match

@liamdanielduffy•Updated 1 year ago
1export let tempImageVal = {
2 "test": "img",
3 "test2": "img2",

untitled_pinkSkunkmain.tsx1 match

@neoneffect•Updated 1 year ago
447 "https://www.itraveljerusalem.com/article/israel-egypt-taba-border-crossing",
448 "https://www.itraveljerusalem.com/article/israeli-currency",
449 "https://www.itraveljerusalem.com/article/israel-and-pilgrimage-maps",
450 "https://www.itraveljerusalem.com/article/israel-visas-consulates",
451 "https://www.itraveljerusalem.com/article/jerusalem-day",

aliasmain.tsx1 match

@mgruel•Updated 1 year ago
14 username: string;
15 bio: string;
16 profileImageUrl: string;
17};
18type ValResult = {

canvasTextmain.tsx6 matches

@panphora•Updated 1 year ago
3export let canvasText = (async (req: Request) => {
4 const query = new URL(req.url).searchParams;
5 const { loadImage, createCanvas } = await import(
6 "https://deno.land/x/canvas/mod.ts"
7 );
117 ctx.arc(184, 352 - 240, 8, 0, 2 * Math.PI);
118 ctx.fill();
119 // image
120 const { fetchRemote } = await import(
121 "https://deno.land/x/fetchbase64@1.0.0/mod.ts"
122 );
123 const imgBase64 = await fetchRemote(query.get("img"));
124 ctx.imageSmoothingEnabled = false;
125 const img = await loadImage(imgBase64);
126 ctx.drawImage(img, 156, 174, 100, 100);
127 // headline
128 ctx.fillStyle = "#ffffff";
293 return new Response(canvas.toBuffer(), {
294 headers: {
295 "Content-Type": "image/png",
296 },
297 });

elevenlabsTTSmain.tsx1 match

@ale_annini•Updated 1 year ago
3
4export const elevenlabsTTS = async (req, res) => {
5 // https://platform.openai.com/docs/api-reference/images/create
6 // https://ale_annini-elevenlabstts.express.val.run/?args=[%22{\%22text\%22:\%22it%20beautiful\%22}%22]
7 const payload = {

dighimapperMultipleMapsmain.tsx8 matches

@bert•Updated 1 year ago
3export const dighimapperMultipleMaps = (async () => {
4 const url =
5 "https://annotations.allmaps.org/maps?imageservicedomain=images.dighimapper.eu";
6 const reponse = await fetch(url);
7 const annotations = await reponse.json();
8 let imageIds = new Set();
9 let imageIdsMultipleMaps = new Set();
10 for (let annotation of annotations.items) {
11 const imageId = annotation.target.service[0]["@id"];
12 if (imageIds.has(imageId)) {
13 imageIdsMultipleMaps.add(imageId);
14 }
15 imageIds.add(imageId);
16 }
17 return [...imageIdsMultipleMaps];
18})();

brainrot_image_gen1 file match

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

modifyImage2 file matches

@stevekrouse•Updated 6 days ago
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