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/$%7Bart_info.art.src%7D?q=fetch&page=12&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 8065 results for "fetch"(624ms)

fetchProxy1 file match

@ridge•Updated 1 year ago

fetchBlob1 file match

@crsven•Updated 1 year ago

fetchJavascriptWeeklyIssues2 file matches

@Timmy•Updated 1 year ago

fetchRssParser2 file matches

@shellphon•Updated 1 year ago

fetchXML1 file match

@_•Updated 1 year ago

fetchGiphy1 file match

@simply_say_m•Updated 1 year ago

proxyFetch102 file matches

@alp•Updated 1 year ago

fetchImageAsBase642 file matches

@liamdanielduffy•Updated 1 year ago

fetchAndParseXML2 file matches

@mgruel•Updated 1 year ago

fetchJSON1 file match

@U9G•Updated 1 year ago

FeedPondmain.js4 matches

@elouan•Updated 1 hour ago
2import { cleanupOldAggregatedEntries } from "./cleanup"; // For manual trigger
3import { initializeAggregatorDB } from "./db"; // Make sure DB is initialized
4import { fetchAndStoreNewCreations } from "./fetchAndStore"; // For manual trigger
5import { serveFrontend } from "./frontend";
6import { generateRSSFeed } from "./generateRSS";
15 console.log(`[${new Date().toISOString()}] Request: ${req.method} ${path}`);
16
17 // Add CORS headers - useful if you ever want to fetch feed via JS
18 const corsHeaders = {
19 "Access-Control-Allow-Origin": "*",
49 case "/_update":
50 console.log("Manual update triggered.");
51 const fetchRes = await fetchAndStoreNewCreations();
52 const cleanupRes = await cleanupOldAggregatedEntries();
53 response = Response.json({ ok: true, fetch: fetchRes, cleanup: cleanupRes }, { headers: corsHeaders });
54 break;
55

FeedPonddb.js1 match

@elouan•Updated 1 hour ago
3// Use a distinct table name for this aggregator instance
4export const AGGREGATOR_TABLE_NAME = "pondiverse_rss_aggregator_v2"; // Incremented version
5export const UPSTREAM_PONDIVERSE_URL = "https://pondiverse.com"; // URL for linking, not fetching
6
7export async function initializeAggregatorDB() {