falVideoFetcher1 file match
Parallel-fetch1 file match
readwise-instapaper1 file match
Fetches my articles from Readwise. Syncs with/ Neon + Instapaper
fake-https1 file match
simple proxy to fetch http urls using https
You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Burl%7D?q=fetch&page=1&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 17204 results for "fetch"(785ms)
231}, [theme]);
232233// Function to fetch snippets from the API
234const fetchSnippets = async () => {
235if (!config.url || !config.token) {
236showNotification(
249if (response && response.CONTENT) {
250// The API returns the content encoded in Base64, so we decode it.
251const fetchedSnippets = Object.values(response.CONTENT).map(
252(snippet) => ({
253...snippet,
255}),
256);
257setSnippets(fetchedSnippets);
258showNotification(
259language.notification_snippets_loaded_success,
277// Load snippets on initial render and when config changes
278useEffect(() => {
279fetchSnippets();
280}, [api, config, currentLang]);
281355);
356}
357await fetchSnippets(); // Refresh snippets
358setSnippetToEdit(null);
359} catch (e) {
381"success",
382);
383await fetchSnippets(); // Refresh snippets
384setShowConfirmDelete(false);
385} catch (e) {
560);
561}
562await fetchSnippets(); // Refresh snippets
563onSuccess();
564} catch (e) {
325this.router.handle();
326},
327fetchAPI: async (endpoint, options = {}) => {
328const res = await fetch(new URL(endpoint, "${sourceUrl}"), options);
329if (!res.ok) throw new Error(\`API Error: \${res.status} on \${endpoint}\`);
330const contentType = res.headers.get("content-type");
362renderUI: {
363sidebar: async () => {
364const industriesList = await App.fetchAPI('/api/industries');
365let html = \`<div class="space-y-1"><h3 class="px-2 text-xs font-semibold text-slate-400 uppercase tracking-wider sidebar-text">Categories</h3>\`;
366industriesList.forEach(industry => {
445
446try {
447const promptRes = await App.fetchAPI('/api/prompt/dynamic', { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({ occupation_title: occupationName, task: taskName, company_context: App.state.companyContext }) });
448App.state.refinedPrompt = promptRes.refined_prompt;
449const [inputsRes, clarifyRes] = await Promise.all([
450App.fetchAPI('/api/inputs', { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({ refined_prompt: App.state.refinedPrompt }) }),
451App.fetchAPI('/api/clarify', { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({ refined_prompt: App.state.refinedPrompt }) })
452]);
453App.state.formFields = inputsRes.inputs;
462App.router.updateSidebarUI(industry, occupationName);
463const occupation = App.state.cache[\`occupations-\${industry}\`]?.find(o => o.name === occupationName) || { name: occupationName, description: '' };
464const tasks = await App.fetchAPI('/api/generate/tasks', { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({ occupation: occupation.name, company_context: App.state.companyContext }) }).then(data => data.generated_list);
465App.state.tasks = tasks;
466App.state.cache[\`tasks-\${occupationName}\`] = tasks;
472App.showScreen('tasks');
473App.router.updateSidebarUI(industry);
474const occupations = await App.fetchAPI('/api/generate/occupations', { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({ industry, company_context: App.state.companyContext }) }).then(data => data.generated_list);
475App.state.cache[\`occupations-\${industry}\`] = occupations;
476App.renderUI.occupations(occupations, industry);
521522try {
523const res = await this.fetchAPI('/api/execute-stream', {
524method: 'POST', headers: {'Content-Type': 'application/json'},
525body: JSON.stringify({ refined_prompt: this.state.refinedPrompt, user_inputs: userInputs, clarifications, company_context: this.state.companyContext }),
541formattingStatus.textContent = 'Formatting...';
542543const formatRes = await this.fetchAPI('/api/format-html', {
544method: 'POST', headers: {'Content-Type': 'application/json'},
545body: JSON.stringify({ raw_text: fullText })
749750// --- EXPORT THE VAL ---
751export default app.fetch;