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/$%7Bart_info.art.src%7D?q=image&page=609&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 6288 results for "image"(2229ms)

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

generateRAdioDjRssmain.tsx2 matches

@pettanUpdated 1 year ago
8) => {
9 const rssItems = previousDjs.map((dj) => {
10 const djImgSrc = `https://r-a-d.io/api/dj-image/${encodeURIComponent(
11 dj.djimage
12 )}`;
13 const djMessage =

usermain.tsx1 match

@neverstewUpdated 1 year ago
8 username: string;
9 bio: string;
10 profileImageUrl: string;
11}> =>
12 fetchJSON(`https://api.val.town/v1/users/${id}`, {

activitypubmain.tsx2 matches

@tmcwUpdated 1 year ago
51 followers: `https://${DOMAIN}/u/bot/followers`,
52 icon: {
53 type: "Image",
54 mediaType: "image/jpeg",
55 url: "https://macwright.com/graphics/about.jpg",
56 },

brainrot_image_gen1 file match

@dcm31Updated 1 week ago
Generate images for Italian Brainrot characters using FAL AI

modifyImage2 file matches

@stevekrouseUpdated 1 week ago
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