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=58&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 6560 results for "image"(524ms)

puddlemain.tsx1 match

@iliazeusUpdated 1 week ago
48 title: z.string().max(100),
49 text: z.string().max(20 * 1024).optional(),
50 image: z.string().url().startsWith("data:").max(200 * 1024).optional(),
51 audio: z.string().url().startsWith("data:").max(200 * 1024).optional(),
52 video: z.string().url().startsWith("data:").max(200 * 1024).optional(),

pondiversegetCreations2 matches

@todepondUpdated 1 week ago
13 for (const row of res.rows) {
14 console.log("delete", row.id);
15 blob.delete("pondiverse_image" + row.id);
16 }
17
54 // for (let creation of response.rows) {
55 // creation.url = `https://pondiverse.val.run/get-creation?id=${creation.id}`;
56 // creation.image = `https://pondiverse.val.run/get-creation-image?id=${creation.id}`;
57 // }
58

pondiversegetCreation1 match

@todepondUpdated 1 week ago
14 // This makes forking harder sorry
15 // creation.uri = `https://pondiverse.val.run/get-creation?id=${creation.id}`;
16 // creation.image = `https://pondiverse.val.run/get-creation-image?id=${creation.id}`;
17 return Response.json(creation);
18}

pondiversegetCreation1 match

@iliazeusUpdated 1 week ago
13
14 creation.uri = `https://pondiverse.val.run/get-creation?id=${creation.id}`;
15 creation.image = `https://pondiverse.val.run/get-creation-image?id=${creation.id}`;
16 return Response.json(creation);
17}

pondiversegetCreations2 matches

@iliazeusUpdated 1 week ago
13 for (const row of res.rows) {
14 console.log("delete", row.id);
15 blob.delete("pondiverse_image" + row.id);
16 }
17
46 for (let creation of response.rows) {
47 creation.uri = `https://pondiverse.val.run/get-creation?id=${creation.id}`;
48 creation.image = `https://pondiverse.val.run/get-creation-image?id=${creation.id}`;
49 }
50

pondiverseupdateTable1 match

@iliazeusUpdated 1 week ago
9 data TEXT,
10 type TEXT,
11 image TEXT,
12 time DATETIME NOT NULL
13 )`,

pondiversemain3 matches

@iliazeusUpdated 1 week ago
1import addCreation from "./addCreation";
2import getCreation from "./getCreation";
3import getCreationImage from "./getCreationImage";
4import getCreations from "./getCreations";
5import updateTable from "./updateTable";
13 case "/get-creation":
14 return getCreation(req);
15 case "/get-creation-image":
16 return getCreationImage(req);
17 case "/get-creations":
18 return getCreations(req);

pondiversegetCreationImage1 match

@iliazeusUpdated 1 week ago
9 let response;
10 try {
11 response = await blob.get("pondiverse_image" + id);
12 } catch (e) {
13 return new Response(null, { status: 404 });

pondiverseaddCreation5 matches

@iliazeusUpdated 1 week ago
9 // - data (string)
10 // - type (string)
11 // - image (data url string)
12
13 // sanity checks:
15 // - data, hmm this needs to be long i guess.. maybe some crazy upper limit sanity check though
16 // - type, not too long
17 // - image, not toooo large a file size
18 let body;
19 try {
26 const data = body.data;
27 const type = body.type;
28 const image = body.image;
29
30 // Sanity checks
38 }
39
40 if (image.length > 20 * 1024 * 1024) {
41 return Response.json({ ok: false, error: "Thumbnail too large" });
42 }
57 );
58
59 await blob.set("pondiverse_image" + id.lastInsertRowid, image);
60 return Response.json({ ok: true });
61}
45 user: {
46 username: string;
47 profileImageUrl: string | null;
48 };
49 project: any;
51 return (
52 <div className="card">
53 {project.imageUrl
54 ? <img src={project.imageUrl} className="card-image" />
55 : user.profileImageUrl
56 ? (
57 <div className="card-image">
58 <img
59 src={user.profileImageUrl}
60 width="48"
61 height="48"
64 </div>
65 )
66 : <div className="card-image placeholder" />}
67 <div className="card-body">
68 <div className="username">{user.username}</div>

image-gen

@armadillomikeUpdated 1 day ago

gpt-image-test1 file match

@CaptainJackUpdated 2 days ago
测试 gpt image 的不同 api 能否满足图片生成要求
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