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/?q=fetch&page=220&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 2444 results for "fetch"(479ms)

PrimeCoderindex1 match

@primedark•Updated 1 month ago
181
182 try {
183 const response = await fetch("/", {
184 method: "POST",
185 body: JSON.stringify({

PrimeCoderindex1 match

@primedark•Updated 1 month ago
5async function servePublicFile(path: string): Promise<Response> {
6 const url = new URL("./public/" + path, import.meta.url);
7 const text = await (await fetch(url, {
8 headers: {
9 "User-Agent": "", // to transpile TS to JS

statusmonitor2 matches

@AIchirag•Updated 1 month ago
15 const start = performance.now();
16 try {
17 res = await fetch(url);
18 end = performance.now();
19 status = res.status;
25 } catch (e) {
26 end = performance.now();
27 reason = `couldn't fetch: ${e}`;
28 ok = false;
29 }

RecipeCollectorRC-Upload1 match

@hunterparks•Updated 1 month ago
6app.get('', async (c) => c.text(await parseRecipe('https://www.thespruceeats.com/potato-and-green-bean-salad-3059769')));
7
8export default app.fetch;

cerebras_coderindex1 match

@ariska138•Updated 1 month ago
5async function servePublicFile(path: string): Promise<Response> {
6 const url = new URL("./public/" + path, import.meta.url);
7 const text = await (await fetch(url, {
8 headers: {
9 "User-Agent": "", // to transpile TS to JS

cerebras_coderindex1 match

@ariska138•Updated 1 month ago
181
182 try {
183 const response = await fetch("/", {
184 method: "POST",
185 body: JSON.stringify({

tsEvaltsEval1 match

@charmaine•Updated 1 month ago
52});
53
54export default app.fetch.bind(app);

tsEvalindexPage2 matches

@charmaine•Updated 1 month ago
7
8 if (url.pathname === "/worker.ts") {
9 const js = await (await fetch("https://esm.town/v/maxm/codemirrorTs/worker")).text();
10 return new Response(js, {
11 headers: {
43console.log("loading sdk")
44const vt = new ValTown();
45console.log("Fetching me")
46const me = await vt.me.profile.retrieve();
47console.log(me)

cerebras_coderindex1 match

@jaballadares•Updated 1 month ago
5async function servePublicFile(path: string): Promise<Response> {
6 const url = new URL("./public/" + path, import.meta.url);
7 const text = await (await fetch(url, {
8 headers: {
9 "User-Agent": "", // to transpile TS to JS

cerebras_coderindex1 match

@jaballadares•Updated 1 month ago
181
182 try {
183 const response = await fetch("/", {
184 method: "POST",
185 body: JSON.stringify({

fetchPaginatedData2 file matches

@nbbaier•Updated 5 days ago

tweetFetcher2 file matches

@nbbaier•Updated 1 week ago