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=613&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 6332 results for "image"(2426ms)

hootsuiteNasamain.tsx4 matches

@stevekrouseUpdated 1 year ago
2
3export async function hootsuiteNasa(req: express.Request, res: express.Response) {
4 const NASA_ROOT = "https://images-api.nasa.gov";
5 const alphaNumericSpaces = new RegExp("^[a-zA-Z0-9\\s-_]+$");
6 const acceptableRedirectUri = new RegExp(
13 res.send('{"data":[],"metadata":{"cursor":{}}}');
14 }
15 var uri = NASA_ROOT + "/search?q=" + query + "&media_type=image";
16 if (req.query.cursor) {
17 uri = decodeURIComponent(req.query.cursor);
24 "id": results.collection.items[i].data[0].nasa_id,
25 "name": results.collection.items[i].data[0].title,
26 "mediaType": "Image",
27 "mimeType": "image/jpeg",
28 "original": {
29 "url": results.collection.items[i].links[0].href,

resumemain.tsx1 match

@ajaxUpdated 1 year ago
7 "name": "Thomas Davis",
8 "label": "Web Developer",
9 "image": "https://avatars0.githubusercontent.com/u/416209?s=460&u=38f220a2c9c658141804f881c334c594eb1642ac&v=4",
10 "summary": "I'm a full stack web developer who can build apps from the ground up. I've worked mostly at startups so I am used to wearing many hats. I am a very product focussed developer who priotizes user feedback first and foremost. I'm generally very flexible when investigating new roles. ",
11 "website": "https://lordajax.com",

kbrImagemain.tsx1 match

@bertUpdated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const kbrImage = async () => {
4 const url =
5 "https://viewerd.kbr.be/display/B/9/9/1/2/4/2/1/0000-00-00_00/zoomtiles/BE-KBR00_B-19912421_0000-00-00_00_0001/5-43-7.jpg";

nasaImagemain.tsx4 matches

@wallekUpdated 1 year ago
1import { nasaImageDetails } from "https://esm.town/v/wallek/nasaImageDetails";
2
3// View at https://wallek-nasaImage.web.val.run
4export async function nasaImage() {
5 const { html } = await nasaImageDetails();
6 return new Response(html, {
7 headers: { "Content-Type": "text/html" },

fourchan_threadsmain.tsx1 match

@nukeopUpdated 1 year ago
7 content: thread.com,
8 replies: thread.replies,
9 images: thread.images,
10 }));
11};

nftmain.tsx2 matches

@vawogbemiUpdated 1 year ago
1export function nft(name, description, image) {
2 return {
3 "name": name,
4 "symbol": "Tipstarter",
5 "description": description,
6 "image": image,
7 "external_url": "",
8 "attributes": [],

GenerateQRmain.tsx2 matches

@ramkarthikUpdated 1 year ago
10 }
11 const { qrcode } = await import("https://deno.land/x/qrcode/mod.ts");
12 const base64Image = await qrcode(url);
13 res.send(
14 `<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>`,
15 );
16}

charmain.tsx1 match

@speepoUpdated 1 year ago
72 }
73 form.charsheet ul li {
74 list-style-image: none;
75 display: block;
76 }

checkBPPRequirementmain.tsx5 matches

@lbb00Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function checkBPPRequirement(imageUrl, minWidth, minHeight) {
4 try {
5 const response = await fetch(imageUrl);
6 const buffer = await response.arrayBuffer();
7 const totalPixels = minWidth * minHeight;
14 console.log(`Actual Bytes: ${actualBytes} bytes`);
15 if (actualBytes >= minBytes) {
16 console.log("👏 Image meets BPP requirement.");
17 return true;
18 }
19 else {
20 console.log("🙁 Image does not meet BPP requirement.");
21 return false;
22 }
23 }
24 catch (error) {
25 console.error("❌ Error fetching image:", error.message);
26 }
27}

embedBirdSoundmain.tsx2 matches

@crsvenUpdated 1 year ago
1export let embedBirdSound = async (req, res) => {
2 const [title, file, image] = req.query.args.split(",");
3 res.send(
4 `<div style="text-align: center;"><h3 style="font-size: 5rem; margin: 5rem auto;">${title}</h3><img style="display: block; width: 50vw; margin: 0 auto;" src="${image}" /><audio controls src="${file}" style="width: 50vw; margin: 0 auto 5rem;"></audio></div>`
5 );
6};

image-inpainting1 file match

@themichaellaiUpdated 10 hours ago

brainrot_image_gen1 file match

@dcm31Updated 1 week ago
Generate images for Italian Brainrot characters using FAL AI
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