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=210&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 2449 results for "fetch"(481ms)

socialDataSearch_628836socialDataSearch2 matches

@charmaine•Updated 1 month ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export async function socialDataSearch(query: string): Promise<SocialDataResponse> {
4 const url = new URL("https://stevekrouse-socialdataproxy.web.val.run/twitter/search");
5 url.searchParams.set("query", query);
6 return await fetchJSON(url.toString(), {
7 bearer: Deno.env.get("valtown"),
8 });

cerebras_coderindex1 match

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

@Miraj•Updated 1 month ago
181
182 try {
183 const response = await fetch("/", {
184 method: "POST",
185 body: JSON.stringify({
50 setIsLoading(true);
51 try {
52 const response = await fetch('/analyze', {
53 method: 'POST',
54 headers: {

MEDIANALIZE_PROhealthcare.tsx1 match

@UndiscoverableERA•Updated 1 month ago
68
69 try {
70 const response = await fetch(import.meta.url, {
71 method: "POST",
72 headers: {

HTTP101GETrequestFormGuide1 match

@willthereader•Updated 1 month ago
113const app = new Hono();
114app.get("/", HTTP_Guide);
115export default app.fetch;
116
117/*<h4>What is the blank element?</h4>

project_updates_webhookApp.tsx5 matches

@shouser•Updated 1 month ago
8 const [notification, setNotification] = React.useState({ show: false, message: "", type: "" });
9
10 const fetchWebhooks = async () => {
11 setLoading(true);
12 // Commented out for now as per original code
13 // try {
14 // const response = await fetch("/getWebhooks");
15 // const data = await response.json();
16 // setWebhooks(data);
17 // } catch (error) {
18 // console.error("Failed to fetch webhooks", error);
19 // showNotification("Failed to load webhooks", "error");
20 // }
38
39 const handleWebhookSubmit = () => {
40 fetchWebhooks();
41 showNotification("Webhook registered successfully!");
42 };
43
44 React.useEffect(() => {
45 fetchWebhooks();
46 }, []);
47

project_updates_webhookWebhookForm.tsx1 match

@shouser•Updated 1 month ago
30
31 try {
32 const response = await fetch("/submit-webhook", {
33 method: "POST",
34 headers: { "Content-Type": "application/json" },

PDF2Vectorconverter4 matches

@dcm31•Updated 1 month ago
256
257 // Send to server
258 fetch('/errors', {
259 method: 'POST',
260 headers: { 'Content-Type': 'application/json' },
415 // Store SVG on server
416 try {
417 const response = await fetch('/store-svg', {
418 method: 'POST',
419 headers: { 'Content-Type': 'application/json' },
473
474 // Log detailed error to server
475 fetch('/errors', {
476 method: 'POST',
477 headers: { 'Content-Type': 'application/json' },
726});
727
728export default app.fetch;

PDF2Vectorlog-api.js1 match

@dcm31•Updated 1 month ago
195});
196
197export default app.fetch;
198

fetchPaginatedData2 file matches

@nbbaier•Updated 5 days ago

tweetFetcher2 file matches

@nbbaier•Updated 1 week ago