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=586&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"(789ms)

npmExamplemain.tsx2 matches

@phelan•Updated 1 year ago
2
3export let npmExample = (async () => {
4 const ip = await import("npm:image-pixels"); // The Lodash library exported as ES modules.
5 const image = await fetch(
6 "https://upload.wikimedia.org/wikipedia/commons/c/ca/1x1.png"
7 ).then((r) => console.log(r));

untitled_scarletMinnowmain.tsx1 match

@stevekrouse•Updated 1 year ago
2
3export let untitled_scarletMinnow = async () =>
4 png(await import("npm:emoji-image/images/poop.png"));

TodayForTylermain.tsx3 matches

@mttlws•Updated 1 year ago
9 <head>
10 <title>Today for Tyler 🥹</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 Tyler 🥹" />
13 <meta name="description" content="Today for Tyler 🥹" />
17 <meta property="og:title" content="Today for Tyler 🥹" />
18 <meta property="og:description" content="Today for Tyler 🥹" />
19 <meta property="og:image" content="https://picsum.photos/1200/630" />
20 <meta property="og:url" content="https://mttlws-todayfortyler.express.val.run" />
21 <meta property="og:type" content="website" />
22 <meta property="twitter:title" content="Today for Tyler 🥹" />
23 <meta property="twitter:description" content="Today for Tyler 🥹" />
24 <meta property="twitter:image" content="https://picsum.photos/1200/630" />
25 <style>
26 body {

upscaleThisUrlmain.tsx7 matches

@liamdanielduffy•Updated 1 year ago
6 const url = "https://api.replicate.com/v1/predictions";
7 const jobId = req.body.jobId;
8 const imageUrl = req.body.imageUrl;
9 if (!jobId && !imageUrl) {
10 res.status(400).json({
11 error:
12 "You must pass either a jobId or an imageUrl. You did not pass either.",
13 });
14 }
15 if (jobId && imageUrl) {
16 res.status(400).json({
17 error:
18 "You must pass either a jobId or an imageUrl. You cannot pass both.",
19 });
20 }
21 if (imageUrl) {
22 const body = {
23 version:
24 "660d922d33153019e8c263a3bba265de882e7f4f70396546b6c9c8f9d47a021a",
25 input: {
26 image: imageUrl,
27 },
28 };

kbrmain.tsx2 matches

@bert•Updated 1 year ago
4 const baseUrl = "https://viewerd.kbr.be/display";
5 const itemId = "B/9/9/1/2/4/2/1/0000-00-00_00";
6 const imageId = "BE-KBR00_B-19912421_0000-00-00_00_0001";
7 const fetchText = (url) => fetch(url).then((response) => response.text());
8 const url = `${baseUrl}/${itemId}/${imageId}.txt`;
9 const dimensions = await fetchText(url);
10 return dimensions.split("x").map((c) => Number(c));

extractRandomCardImagemain.tsx5 matches

@fab1an•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const extractRandomCardImage = async () => {
4 try {
5 const response = await fetch(
8 const data = await response.json();
9 if (data.success && data.cards && data.cards.length > 0) {
10 const cardImage = data.cards[0].image;
11 return { data: cardImage };
12 } else {
13 throw new Error("No cards found in the response.");
14 }
15 } catch (error) {
16 console.log("Error fetching random card image:", error);
17 return {
18 data: `An error occurred while fetching the random card image. ${error}`,
19 };
20 }

verifyJWTmain.tsx1 match

@zzz•Updated 1 year ago
61 }
62 type CustomJwt = {
63 profile_image_url?: string;
64 } & jose.JWTPayload;
65 const publicKey = await jose.importJWK(LocalWellKnownKeys?.[0], "RS256");

svgAnimationmain.tsx1 match

@stevekrouse•Updated 1 year ago
1export function svgAnimation(req: express.Request, res: express.Response) {
2 res.set("content-type", "image/svg+xml");
3 res.end(`<svg
4 viewBox="0 0 10 10"

boundsmain.tsx1 match

@ingenieroariel•Updated 1 year ago
16 <title>Mobile tutorial - Leaflet</title>
17
18 <link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" />
19
20 <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin=""/>

pixelDatamain.tsx37 matches

@stevekrouse•Updated 1 year ago
14 "path": "/track/asdf/asdf/asdf/asdf",
15 "ip": "66.102.8.35",
16 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
17}, {
18 "query": {},
19 "path": "/track/asdf/asdf/asdf/asdf",
20 "ip": "66.102.8.33",
21 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
22}, {
23 "query": {},
24 "path": "/track/asdf/asdf/asdf/asdf",
25 "ip": "66.102.8.34",
26 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
27}, {
28 "query": {},
34 "path": "/track/1690486721905",
35 "ip": "66.102.8.34",
36 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
37}, {
38 "query": {},
64 },
65 "ip": "66.102.8.34",
66 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
67}, {
68 "query": {},
78 },
79 "ip": "66.102.8.33",
80 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
81}, {
82 "query": {},
92 },
93 "ip": "66.102.8.33",
94 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
95}, {
96 "query": {},
106 },
107 "ip": "66.102.8.35",
108 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
109}, {
110 "query": {},
116 },
117 "ip": "66.102.8.33",
118 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
119}, {
120 "query": {},
126 },
127 "ip": "66.249.83.73",
128 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
129}, {
130 "query": {},
136 },
137 "ip": "66.102.8.34",
138 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
139}, {
140 "query": {},
158 },
159 "ip": "66.102.8.33",
160 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
161}, {
162 "query": {
164 },
165 "ip": "66.102.8.35",
166 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
167}, {
168 "query": {
378 },
379 "ip": "66.102.8.34",
380 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
381}, {
382 "query": {
384 },
385 "ip": "66.102.8.32",
386 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
387}, {
388 "query": {},
389 "ip": "66.102.8.39",
390 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
391}, {
392 "query": {},
393 "ip": "66.102.8.34",
394 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
395}, {
396 "query": {},
400 "query": {},
401 "ip": "66.102.8.35",
402 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
403}, {
404 "query": {},
408 "query": {},
409 "ip": "66.102.8.33",
410 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
411}, {
412 "query": {},
416 "query": {},
417 "ip": "66.102.8.34",
418 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
419}, {
420 "query": {},
490 },
491 "ip": "66.102.8.32",
492 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
493}, {
494 "query": {
496 },
497 "ip": "66.102.8.34",
498 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
499}, {
500 "query": {},
552 },
553 "ip": "66.102.8.34",
554 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
555}, {
556 "query": {
558 },
559 "ip": "66.249.83.68",
560 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
561}, {
562 "query": {},
568 },
569 "ip": "66.249.83.197",
570 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
571}, {
572 "query": {},
578 },
579 "ip": "66.249.83.199",
580 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
581}, {
582 "query": {
584 },
585 "ip": "66.102.8.35",
586 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
587}, {
588 "query": {},
594 },
595 "ip": "66.102.8.34",
596 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
597}, {
598 "query": {},
608 },
609 "ip": "66.102.8.33",
610 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
611}, {
612 "query": {},
622 },
623 "ip": "66.102.8.35",
624 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
625}, {
626 "query": {},
647 "path": "/track",
648 "ip": "66.249.83.3",
649 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
650}, {
651 "query": {},
657 "path": "/track/1690486721905",
658 "ip": "66.102.8.32",
659 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
660}, {
661 "query": {
664 "path": "/track",
665 "ip": "66.249.83.68",
666 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
667}, {
668 "query": {},
674 "path": "/track/1690486721905",
675 "ip": "66.249.83.110",
676 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
677}, {
678 "query": {},
684 "path": "/track/asdf/asdf/asdf/asdf",
685 "ip": "66.102.8.32",
686 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
687}, {
688 "query": {},
694 "path": "/track/1690486721905",
695 "ip": "66.102.8.32",
696 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
697}, {
698 "query": {},
699 "path": "/track/1695743407261",
700 "ip": "66.102.8.34",
701 "userAgent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)"
702}];

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