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=6&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 6326 results for "image"(1025ms)

placeholderKittenImages1 file match

@shawnbasquiat•Updated 8 months ago

resizeImageError1 file match

@shawnbasquiat•Updated 8 months ago

placeholderImages1 file match

@shawnbasquiat•Updated 8 months ago

genimage1 file match

@motyar•Updated 8 months ago

fluxImageGenerator1 file match

@isidentical•Updated 8 months ago

nasaImageDetails1 file match

@kcorey•Updated 8 months ago

WikiImage1 file match

@ampp•Updated 8 months ago

modifyImage2 file matches

@ilikescience•Updated 8 months ago

ogImage2 file matches

@moe•Updated 8 months ago

randomCardImage1 file match

@jamiedubs•Updated 10 months ago

testPondiversedeleteCreation.tsx1 match

@argmn•Updated 29 mins ago
40
41 // Also delete the blob!
42 blob.delete("pondiverse_image" + id);
43
44 return Response.json({ ok: true });

testPondiverseaddCreation.tsx10 matches

@argmn•Updated 30 mins ago
9 // - data (string)
10 // - type (string)
11 // - image (data url string)
12 // sanity checks:
13 // - title, not toooo long
14 // - data, hmm this needs to be long i guess.. maybe some crazy upper limit sanity check though
15 // - type, not too long
16 // - image, not toooo large a file size
17 let body;
18 try {
25 const data = body.data;
26 const type = body.type;
27 const image = body.image;
28
29 // Sanity checks
37 }
38
39 if (image.length > 20 * 1024 * 1024) {
40 return Response.json({ ok: false, error: "Thumbnail too large" });
41 }
57 );
58
59 // only creates blob if there is indeed an image and updates the image column to represent that
60 if (image) {
61 const imageName = "pondiverse_image" + id.lastInsertRowid;
62 const imageAddr = `${Deno.env.get("PONDIVERSE_STORE_BASE_PATH")}/images&id=${id.lastInsertRowid}`;
63 await blob.set(imageName, image);
64 await sqlite.execute(
65 `UPDATE ${TABLE_NAME} SET image = "${imageAddr}" WHERE id = ${id.lastInsertRowid}`,
66 );
67 }
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