You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Bsuccess?q=image&page=4&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 6327 results for "image"(1293ms)
31const host = Deno.env.get("PONDIVERSE_STORE_BASE_PATH");
32creation.uri = `https://${host}get-creation?id=${creation.id}`;
33creation.image = `https://${host}/get-creation-image?id=${creation.id}`;
3435return Response.json(creation);
9// - data (string)
10// - type (string)
11// - image (data url string)
12// - hidden (Defaults to true, but it may be present if the creation is being edited)
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
18let body;
19try {
26const data = body.data;
27const type = body.type;
28const image = body.image;
2930// Sanity checks
38}
3940if (image.length > 20 * 1024 * 1024) {
41return Response.json({ ok: false, error: "Thumbnail too large" });
42}
59);
6061await blob.set("pondiverse_image" + id.lastInsertRowid, image);
62return Response.json({ ok: true });
63}