You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$2?q=image&page=8&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 8420 results for "image"(1567ms)
5<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6<title>Glancer!</title>
7<link rel="icon" href="/frontend/favicon.svg" type="image/svg+xml" />
8<script src="https://cdn.tailwindcss.com"></script>
9<link
178179- **Redirects:** Use `return new Response(null, { status: 302, headers: { Location: "/place/to/redirect" }})` instead of `Response.redirect` which is broken
180- **Images:** Avoid external images or base64 images. Use emojis, unicode symbols, or icon fonts/libraries instead
181- **AI Image:** To inline generate an AI image use: `<img src="https://maxm-imggenurl.web.val.run/the-description-of-your-image" />`
182- **Storage:** DO NOT use the Deno KV module for storage
183- **Browser APIs:** DO NOT use the `alert()`, `prompt()`, or `confirm()` methods