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=197&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 2746 results for "fetch"(380ms)

openTownieMadeThis2index.ts1 match

@charmaine•Updated 1 month ago
16
17// This is the entry point for HTTP vals
18export default app.fetch;

openTownieMadeThis3index.ts1 match

@charmaine•Updated 1 month ago
16
17// This is the entry point for HTTP vals
18export default app.fetch;

openTownieMadeThis4index.ts2 matches

@charmaine•Updated 1 month ago
21});
22
23// HTTP vals expect an exported "fetch handler"
24// This is how you "run the server" in Val Town with Hono
25export default app.fetch;

MiniAppStarterindex.ts2 matches

@andrewcarneal•Updated 1 month ago
47});
48
49// HTTP vals expect an exported "fetch handler"
50// This is how you "run the server" in Val Town with Hono
51export default app.fetch;

testmar24index.ts2 matches

@charmaine•Updated 1 month ago
33
34// Export the Hono app for Val Town
35export default app.fetch;
36
37// Error handler to expose full error details
42
43// Export the Hono app for Val Town
44export default app.fetch;

MiniAppStarterindex.ts2 matches

@xppaicyber•Updated 1 month ago
47});
48
49// HTTP vals expect an exported "fetch handler"
50// This is how you "run the server" in Val Town with Hono
51export default app.fetch;

MiniAppStarterfarcaster.ts1 match

@xppaicyber•Updated 1 month ago
84
85async function sendFarcasterNotification(payload: any) {
86 return await fetch("https://api.warpcast.com/v1/frame-notifications", {
87 method: "POST",
88 headers: { "Content-Type": "application/json" },

cerebras_coderindex1 match

@jackyoustra•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

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

stevekrouse_dot_comindex.tsx1 match

@shouser•Updated 1 month ago
24 if (url.pathname !== "/") {
25 const githubPagesUrl = `https://stevekrouse.github.io${url.pathname}${url.search}`;
26 const response = await fetch(
27 new Request(githubPagesUrl, {
28 method: request.method,

fetchPaginatedData2 file matches

@nbbaier•Updated 6 days ago

tweetFetcher2 file matches

@nbbaier•Updated 1 week ago