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/image-url.jpg?q=fetch&page=695&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 9192 results for "fetch"(1432ms)

52});
53
54export default app.fetch;
55
64});
65
66export default app.fetch;
67
2import { blob } from "https://esm.town/v/std/blob";
3
4// Fetch all stories or initialize an empty array if no data exists yet
5export default async function main(req: Request): Promise<Response> {
6 let stories = await blob.getJSON("hackerNewsStories") || [];
39
40export default async function main(req: Request): Promise<Response> {
41 // Fetch existing comments
42 let comments: string[] = await blob.getJSON(COMMENTS_KEY) || [];
43
33
34export default async function main(req: Request): Promise<Response> {
35 // Fetch existing comments
36 let comments: string[] = await blob.getJSON(COMMENTS_KEY) || [];
37
33
34export default async function main(req: Request): Promise<Response> {
35 // Fetch existing comments
36 let comments: string[] = await blob.getJSON(COMMENTS_KEY) || [];
37
37
38export default async function main(req: Request): Promise<Response> {
39 // Fetch existing comments
40 let comments: string[] = await blob.getJSON(COMMENTS_KEY) || [];
41
36
37export default async function main(req: Request): Promise<Response> {
38 // Fetch existing comments
39 let comments: string[] = await blob.getJSON(COMMENTS_KEY) || [];
40
1// This code will create a simple comment box where users can submit a comment using an input field.
2// It will persist the comments using blob storage, and display all previous comments using a GET request to fetch comments.
3
4import { blob } from "https://esm.town/v/std/blob";
42});
43
44export default app.fetch;
45
61});
62
63export default app.fetch;
64

proxyFetch2 file matches

@vidar•Updated 1 day ago

TAC_FetchBasic2 file matches

@A7_OMC•Updated 1 day ago