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=325&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 8238 results for "fetch"(1187ms)

Qrmain.tsx1 match

@davincidreams•Updated 1 month ago
25 const handleScan = async (productCode: string) => {
26 try {
27 const response = await fetch(`/manual?code=${encodeURIComponent(productCode)}`);
28
29 if (!response.ok) {

chatGPTVoiceModeClonemain.tsx2 matches

@HTKhan18•Updated 1 month ago
43
44 try {
45 const response = await fetch('/chat', {
46 method: 'POST',
47 body: JSON.stringify({
107
108 try {
109 await fetch('/clear-conversation', { method: 'POST' });
110 setConversation([]);
111 } catch (error) {
dotcom

dotcomanalytics.tsx1 match

@jxnblk•Updated 1 month ago
19 };
20 // console.log(req.headers);
21 await fetch(API, {
22 method: "POST",
23 body: JSON.stringify(data),

create_a_toolmain.tsx7 matches

@ajax•Updated 1 month ago
174 console.debug("Creating new tool with name:", toolName);
175 const createToolStart = Date.now();
176 const toolResponse = await fetch(`${VALTOWN_URL}/vals`, {
177 method: "POST",
178 headers: {
252 console.debug("Manifesto config generated:", manifestoConfig);
253
254 // Fetch the original manifest
255 console.debug("Fetching original manifesto...");
256 const originalManifestoResponse = await fetch(`${VALTOWN_URL}/vals/513b3c1c-ffde-11ef-948c-569c3dd06744`, {
257 method: "GET",
258 headers: {
264 if (!originalManifestoResponse.ok) {
265 const errorText = await originalManifestoResponse.text();
266 console.error("Failed to fetch original manifesto:", originalManifestoResponse.status, errorText);
267 throw new Error(`Failed to fetch original manifesto. Status: ${originalManifestoResponse.status}`);
268 }
269
270 const originalManifestData = await originalManifestoResponse.json();
271 console.debug("Original manifesto fetched successfully:", originalManifestData);
272
273 const originalManifestoCode = originalManifestData.code;

generate_threejs_earth_htmlmain.tsx1 match

@ajax•Updated 1 month ago
28 // Load country borders and create clickable areas
29 const geoJsonUrl = 'path/to/countries.geojson'; // Replace with actual path
30 const response = await fetch(geoJsonUrl);
31 const geoJson = await response.json();
32 const geoJsonGeometry = new GeoJsonGeometry(geoJson, 1);

cerebras_coderindex1 match

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

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

vt2smallwebmain.ts1 match

@pomdtr•Updated 1 month ago
2
3export default {
4 fetch: handleRequest
5}
6

exampleProjectmain.ts1 match

@pomdtr•Updated 1 month ago
2
3export default {
4 fetch: handleRequest
5}
6

cerebras_coderindex1 match

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

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago