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/$%7Bart_info.art.src%7D?q=fetch&page=1031&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=fetch

Returns an array of strings in format "username" or "username/projectName"

Found 13403 results for "fetch"(1534ms)

vttThumbMakermain.tsx1 match

@g•Updated 7 months ago
18app.get('*', r404);
19
20export default app.fetch;
21
22function html() {

seamlessBlushSwallowmain.tsx1 match

@stevekrouse•Updated 7 months ago
66
67 try {
68 const response = await fetch("/", {
69 method: "POST",
70 body: JSON.stringify({ prompt, currentCode: code }),

welcomingPinkAlligatormain.tsx1 match

@stevekrouse•Updated 7 months ago
85
86 try {
87 const response = await fetch("/", {
88 method: "POST",
89 body: JSON.stringify({ prompt, currentCode: code, errorMessage: shaderErrorMessage }),

welcomingPinkAlligatormain.tsx1 match

@stevekrouse•Updated 7 months ago
85
86 try {
87 const response = await fetch("/", {
88 method: "POST",
89 body: JSON.stringify({ prompt, currentCode: code, errorMessage: shaderErrorMessage }),

bsky_rss_pollmain.tsx2 matches

@stevekrouse•Updated 7 months ago
1import { rss_to_bsky } from "https://esm.town/v/jordan/rss_to_bsky";
2import { blob } from "https://esm.town/v/std/blob";
3import { fetch } from "https://esm.town/v/std/fetch";
4
5export async function bsky_rss_poll() {
6 const { parseFeed } = await import("https://deno.land/x/rss/mod.ts");
7 const res = await fetch("https://v8.dev/blog.atom")
8 .then(res => res.text())
9 .then(res => parseFeed(res));

slackScoutmain.tsx8 matches

@charlypoly•Updated 7 months ago
20 for (const topic of KEYWORDS) {
21 const results = await Promise.allSettled([
22 fetchHackerNewsResults(topic),
23 fetchTwitterResults(topic),
24 fetchRedditResults(topic),
25 ]);
26
49}
50
51// Fetch Hacker news, Twitter, and Reddit results
52async function fetchHackerNewsResults(topic: string): Promise<Website[]> {
53 return hackerNewsSearch({
54 query: topic,
58}
59
60async function fetchTwitterResults(topic: string): Promise<Website[]> {
61 return twitterSearch({
62 query: topic,
67}
68
69async function fetchRedditResults(topic: string): Promise<Website[]> {
70 return redditSearch({ query: topic });
71}
84 }
85
86 const response = await fetch(slackWebhookUrl, {
87 method: "POST",
88 headers: { "Content-Type": "application/json" },

openaimain.tsx1 match

@std•Updated 7 months ago
12 * @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
13 * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
14 * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
15 * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
16 * @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.

reqEvaltownmain.tsx1 match

@vawogbemi•Updated 7 months ago
32 const url = new URL("." + pathname, "http://localhost:" + port);
33 url.search = search;
34 const resp = await fetch(url, {
35 method: req.method,
36 headers: req.headers,

valtowntownmain.tsx1 match

@vawogbemi•Updated 7 months ago
174});
175
176export default app.fetch.bind(app);
177
178const css = `

blob_adminmain.tsx2 matches

@pkf•Updated 7 months ago
1/** @jsxImportSource https://esm.sh/hono@4.0.8/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import view_route from "https://esm.town/v/pomdtr/blob_admin_blob";
5import create_route from "https://esm.town/v/pomdtr/blob_admin_create";
154
155// Update the export statement
156export default modifyFetchHandler(app.fetch);

GithubPRFetcher

@andybak•Updated 2 days ago

proxiedfetch1 file match

@jayden•Updated 2 days ago