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=287&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 2903 results for "image"(332ms)

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

pixelmain.tsx1 match

@stevekrouse•Updated 1 year ago
40 pixelData.push(data);
41 res.set("Cache-Control", "no-cache, no-store, must-revalidate, max-age=0");
42 await randomGenerator(req, res); // res.set("Content-Type", "image/svg+xml");
43 // res.redirect("http://delian.io/transparent_pixel.png");
44 // return data;

sparklineEx2main.tsx1 match

@stevekrouse•Updated 1 year ago
2
3export let sparklineEx2 = function (req, res) {
4 res.set("content-type", "image/svg+xml");
5 res.end(sparklineSVG({
6 strokeWidth: 4,

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"));

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"

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}];

retroVisitCounterREADME.md1 match

@maxm•Updated 1 year ago
5How special!
6
7Want a retro visitor counter for your myspace page or geocities website? Fork this val and add the image link to your website:
8
9```

nyChargingStationsREADME.md1 match

@tmcw•Updated 1 year ago
1# NYC Charging Stations Data Analysis
2
3![CleanShot 2023-09-21 at 12.07.43@2x.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/646cccab-ca23-486d-d084-8a805e73ac00/public)
4
5https://tmcw-nychargingstations.web.val.run/

dsnyEventsFeedREADME.md1 match

@tmcw•Updated 1 year ago
1# DSNY Events Feed
2
3![CleanShot 2023-09-21 at 11.14.30@2x.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/cfee7c3d-ed4d-482f-4eb3-a84159998900/public)
4
5This turns the [DSNY's SAFE Disposal Events](https://www.nyc.gov/assets/dsny/site/services/harmful-products/safe-disposal) feed in JSON into an iCal file that you can subscribe to from your calendar:

smileyPNGREADME.md1 match

@maxm•Updated 1 year ago
3This tiny smiley face is rendered by this val: ![](https://maxm-smileypng.web.val.run/-.png)
4
5The image response is cached by the CDN, so make sure to change the image name if you make code changes. Any name with a `.png` extension will work: https://maxm-smileypng.web.val.run/-.png

brainrot_image_gen1 file match

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

modifyImage2 file matches

@stevekrouse•Updated 3 days ago