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=611&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"(2019ms)

TodoAppREADME.md1 match

@stevekrouse•Updated 1 year ago
3This Todo App is server rendered *and* client-hydrated React. This architecture is a lightweight alternative to NextJS, RemixJS, or other React metaframeworks with no compile or build step. The data is saved server-side in [Val Town SQLite](https://docs.val.town/std/sqlite/).
4
5![demo](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/3bbc3a39-9017-4a95-797b-2f205aa57f00/public)
6
7## SSR React Mini Framework

scoreAndCombineArticlesmain.tsx1 match

@iakovos•Updated 1 year ago
33 title: string;
34 description: string;
35 image: string | null;
36 pubDate: string;
37 type: string;

saveToTanaREADME.md1 match

@nbbaier•Updated 1 year ago
51
52
53![Screenshot 2023-10-27 at 4.13.22 PM.png](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/25085f77-a961-4a6e-6dd2-bcdfb9164f00/public)
54
55

todaysNasaMailmain.tsx4 matches

@wallek•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email";
2import { nasaImageDetails } from "https://esm.town/v/wallek/nasaImageDetails";
3
4export const todaysNasaMail = async () => {
5 const { html, nasaAPOD } = await nasaImageDetails();
6 console.log({ html, nasaAPOD });
7 const mailMeTodaysNasaImage = await email({
8 html: "<a href=\"https://wallek-nasaImage.web.val.run\">Weblink</a><br/><br/><br/>" + html,
9 subject: `Daily NASA – ${nasaAPOD.title}`,
10 });

fetchAndParseFeedsmain.tsx3 matches

@iakovos•Updated 1 year ago
29 const imgTag = document?.querySelector("img");
30 const imgSrc = imgTag?.getAttribute("src");
31 const image = imgSrc || mediaThumbnail || mediaContent || null;
32 const link = getLink(item);
33 const { _text, _cdata } = item.title ?? {};
36 const description = paragraph || item.description?._text
37 || item.description?._cdata || "";
38 return { title, description, image, pubDate, link };
39 }) ?? [];
40
49 title: string;
50 description: string;
51 image: string | null;
52 pubDate: string;
53 link: string;

gifEndpointmain.tsx1 match

@tmcw•Updated 1 year ago
2
3export let gifEndpoint = (req, res) => {
4 res.set("Content-Type", "image/gif");
5 res.send(
6 Buffer.from("R0lGODdhAQABAPAAAP8AAAAAACwAAAAAAQABAAACAkQBADs=", "base64"),

imageUrlToBase64main.tsx1 match

@andreterron•Updated 1 year ago
1import { Buffer } from "node:buffer";
2
3export async function imageUrlToBase64(res: Response) {
4 // From https://stackoverflow.com/a/60321567
5 const buffer = Buffer.from(await res.arrayBuffer());

renderFeedsForEmailmain.tsx3 matches

@iakovos•Updated 1 year ago
18 width:100% !important
19 }
20 .image-container {
21 height:68px !important;
22 width:110px !important;
27 }
28 }
29 .image-container {
30 background-color:#E0E0E0;
31 border-radius:4px;
33 width:128px;
34 }
35 .image-container img {
36 border-radius: inherit;
37 display: block;

qrmain.tsx3 matches

@stevekrouse•Updated 1 year ago
4 if (req.path.startsWith("/qr")) {
5 const { qrcode } = await import("https://deno.land/x/qrcode/mod.ts");
6 const base64Image = await qrcode(req.query.data);
7 res.set("content-type", "image/gif");
8 res.send(
9 Buffer.from(base64Image.replace("data:image/gif;base64,", ""), "base64"),
10 );
11 }

canvasTextmain.tsx1 match

@tmcw•Updated 1 year ago
13 return new Response(canvas.toBuffer(), {
14 headers: {
15 "Content-Type": "image/png",
16 },
17 });

image-inpainting1 file match

@themichaellai•Updated 10 hours ago

brainrot_image_gen1 file match

@dcm31•Updated 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