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=13&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"(349ms)

fetchJSON1 file match

@mridula•Updated 1 year ago

fetchHTML2 file matches

@stevekrouse•Updated 1 year ago

proxyFetch32 file matches

@alp•Updated 1 year ago

notionWordCounterFetchDays1 file match

@andreterron•Updated 1 year ago

fetchTweet1 file match

@dpetrouk•Updated 1 year ago

fetchHTML2 file matches

@beneskildsen•Updated 1 year ago

proxyFetch72 file matches

@alp•Updated 1 year ago

proxyFetch1 file match

@dpetrouk•Updated 1 year ago

refresher_fetcher2 file matches

@u•Updated 1 year ago

fetchValTownAPI2 file matches

@pomdtr•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() {