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=375&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 7882 results for "fetch"(1283ms)

cerebras_codermain.tsx1 match

@optionsgpt•Updated 3 months ago
187
188 try {
189 const response = await fetch("/", {
190 method: "POST",
191 body: JSON.stringify({

aiEmailAssistantmain.tsx1 match

@simplescraper•Updated 3 months ago
143
144 // send the request to openai
145 const response = await fetch(openaiUrl, {
146 method: "POST",
147 body: JSON.stringify(body),

welcomingAmethystMoosemain.tsx1 match

@Saqib•Updated 3 months ago
29 setStatus(`Processing payment via ${method}...`);
30 try {
31 const response = await fetch("/process-payment", {
32 method: "POST",
33 headers: { "Content-Type": "application/json" },

paymentGatewayWebmain.tsx1 match

@Saqib•Updated 3 months ago
29 setStatus(`Processing payment via ${method}...`);
30 try {
31 const response = await fetch("/process-payment", {
32 method: "POST",
33 headers: { "Content-Type": "application/json" },

postHogAPICapturemain.tsx2 matches

@BunsDev•Updated 3 months ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function postHogAPICapture({ key, event, properties, distinct_id }: {
13 "distinct_id": distinct_id,
14 };
15 let result = await fetch("https://app.posthog.com/capture/", {
16 method: "POST",
17 headers: {

FetchBasicREADME.md2 matches

@BunsDev•Updated 3 months ago
1# Framer Fetch: Basic
2
3A basic example of an API endpoint to use with Framer Fetch.

pngMakerAppmain.tsx2 matches

@g•Updated 3 months ago
132app.get('/main.js', serve(js, 'text/javascript'));
133app.get('/polypng.mjs', async (c) => {
134 const res = await fetch('https://gist.githubusercontent.com/autowert66/e6371d2cf5fd365d57668f8399ec02ca/raw/polypng.mjs');
135 return new Response(res.body, { headers: { 'Content-Type': 'text/javascript' } });
136});
137
138export default app.fetch;

terrificIndigoAlbatrossmain.tsx1 match

@stevekrouse•Updated 3 months ago
187
188 try {
189 const response = await fetch("/", {
190 method: "POST",
191 body: JSON.stringify({

openaiproxymain.tsx2 matches

@charmaine•Updated 3 months ago
27 const authHeader = req.headers.get("Proxy-Authorization") || req.headers.get("Authorization");
28 const token = authHeader ? parseBearerString(authHeader) : undefined;
29 const meRes = await fetch(`${API_URL}/v1/me`, { headers: { Authorization: `Bearer ${token}` } });
30 if (!meRes.ok) {
31 return new Response("Unauthorized", { status: 401 });
63 });
64
65 const openAIRes = await fetch(url, {
66 method: req.method,
67 headers,

sweetPeachEarthwormmain.tsx1 match

@c0dergamer•Updated 3 months ago
199
200 try {
201 const response = await fetch("/", {
202 method: "POST",
203 body: JSON.stringify({

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago