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=1144&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 13310 results for "fetch"(6570ms)

emojiGuessrmain.tsx2 matches

@jdan•Updated 1 year ago
7
8function esmTown(url) {
9 return fetch(url, {
10 headers: {
11 "User-Agent":
16
17const app = new Hono();
18export default app.fetch;
19
20app.get("/", async (c) =>

honoExamplemain.tsx1 match

@willthereader•Updated 1 year ago
74 ));
75app.get("/yeah", (c) => c.html("Routing!"));
76export default app.fetch;

reppmain.tsx3 matches

@maxm•Updated 1 year ago
11blob.setJSON;
12
13const fetch = async (req: Request): Promise<Response> => {
14 let repp = new Repp([{
15 code: "",
165}
166
167export default fetch;
168// https://stackoverflow.com/a/67394423/1333724
169// var __EVAL = async (s) => eval(`(async () => (void (__EVAL = ${__EVAL.toString()}); ${s}))()`);
173// // evaluate("ten + cube(3)");
174// evaluate(`
175// let resp = await fetch('https://www.google.com');
176// console.log(resp)
177// let x = 10

umbrellaRemindermain.tsx2 matches

@habosa•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3import { nominatimSearch } from "https://esm.town/v/stevekrouse/nominatimSearch";
4import { weatherGovGrid } from "https://esm.town/v/stevekrouse/weatherGovGrid";
14 lon,
15 });
16 let { properties: { periods } } = await fetchJSON(
17 grid.forecastHourly,
18 );

pipedreammain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=44";
2import { google } from "npm:googleapis";
3
4export async function getAccessToken(accountId: string, bearer = Deno.env.get("pipedream")) {
5 const response = await fetchJSON(
6 `https://api.pipedream.com/v1/accounts/${accountId}?include_credentials=1`,
7 { bearer },

MapUsermain.tsx1 match

@iamseeley•Updated 1 year ago
22 });
23
24 fetch(`https://iamseeley-Map.web.val.run?city=${encodeURIComponent(city)}`)
25 .then(response => response.json())
26 .then(mapData => {

honoExamplemain.tsx1 match

@maxm•Updated 1 year ago
4app.get("/", (c) => c.text("Hello from Hono!"));
5app.get("/yeah", (c) => c.text("Routing!"));
6export default app.fetch;

staticChessmain.tsx2 matches

@avkv•Updated 1 year ago
10
11 constructor() {}
12 async fetch(req: Request): Promise<Response> {
13 if (new URL(req.url).pathname === "/robots.txt") {
14 return new Response("User-agent: *\nDisallow: /");
231const sc = new StaticChess();
232
233export default sc.fetch.bind(sc);

decorator_routermain.tsx1 match

@yieldray•Updated 1 year ago
10export const registered: Readonly<typeof _registered> = _registered;
11
12export const handler = (req: Request) => app.fetch(req);
13
14export interface Context {

staticChessV2main.tsx2 matches

@maxm•Updated 1 year ago
10
11 constructor() {}
12 async fetch(req: Request): Promise<Response> {
13 if (new URL(req.url).pathname === "/robots.txt") {
14 return new Response("User-agent: *\nDisallow: /");
224const sc = new StaticChess();
225
226export default sc.fetch.bind(sc);

GithubPRFetcher

@andybak•Updated 1 day ago

proxiedfetch1 file match

@jayden•Updated 2 days ago