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/image-url.jpg?q=fetch&page=1093&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 12878 results for "fetch"(7019ms)

freeformServermain.tsx1 match

@pomdtr•Updated 1 year ago
31});
32
33export default app.fetch;

tanLadybugmain.tsx5 matches

@stevekrouse•Updated 1 year ago
30 event.preventDefault();
31 const formData = new FormData(form);
32 const response = await fetch('/', {
33 method: 'POST',
34 body: formData,
43 event.preventDefault();
44 const formData = new FormData(form);
45 const response = await fetch('/', {
46 method: 'POST',
47 body: formData,
135 event.preventDefault();
136 const formData = new FormData(form);
137 const response = await fetch('/', {
138 method: 'POST',
139 body: formData,
148 event.preventDefault();
149 const formData = new FormData(form);
150 const response = await fetch('/', {
151 method: 'POST',
152 body: formData,
219});
220
221export default valTownBadge(app.fetch, import.meta.url);

smsmain.tsx1 match

@pomdtr•Updated 1 year ago
26});
27
28export default app.fetch;

honoExamplemain.tsx1 match

@camdenclark•Updated 1 year ago
4app.get("/", (c) => c.text("Hello from Hono!"));
5app.get("/yeah", (c) => c.text("Routing!"));
6export default app.fetch;

remindersmain.tsx4 matches

@koch•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2import { fetch } from "https://esm.town/v/std/fetch";
3
4export async function reminders(interval: Interval) {
14 const comingUp = [];
15 // Parsed markwhen document
16 const response = await fetch("https://markwhen.com/rob.json");
17 const mw = await response.json();
18 // Alternatively, fetch a plaintext markwhen document from somewhere and parse it
19 /*
20 const response = await fetch("https://raw.githubusercontent.com/kochrt/kochrt.github.io/master/resume.mw")
21 const { parse } = await import("@markwhen/parser")
22 const mw = parse(await response.text())

nighthawksChatmain.tsx5 matches

@yawnxyz•Updated 1 year ago
151 this.prompt = ''; // Clear the input field
152 this.generatedText = ''; // Reset generatedText
153 const response = await fetch('/', {
154 method: 'POST',
155 headers: { 'Content-Type': 'application/json' },
173 console.log('Creating New Character:', charObj)
174
175 const response = await fetch('/', {
176 method: 'POST',
177 headers: { 'Content-Type': 'application/json' },
192 char = JSON.parse(event.target.innerText);
193 console.log('Updating Character:', char)
194 const response = await fetch('/', {
195 method: 'POST',
196 headers: { 'Content-Type': 'application/json' },
214 async loadCharacter(charId) {
215 this.generatedText = 'Loading character...'; // Inform user about character loading
216 const response = await fetch('/', {
217 method: 'POST',
218 headers: { 'Content-Type': 'application/json' },
282
283
284export default app.fetch;

limeFerretmain.tsx1 match

@todepond•Updated 1 year ago
9app.get("/", async (c) => c.html(await sqlite_admin_tables()));
10app.get("/:table", async (c) => c.html(await sqlite_admin_table(c.req.param("table"))));
11export default basicAuth(app.fetch);

booksmain.tsx2 matches

@laidlaw•Updated 1 year ago
8
9function esmTown(url) {
10 return fetch(url, {
11 headers: {
12 "User-Agent":
17
18const app = new Hono();
19export default app.fetch;
20
21app.get("/", async (c) =>
142const app = new Hono();
143app.get("/", Time_Blindness_Loud_Calendar_via_iOS_shortcuts);
144export default app.fetch;

oldBringing_My_OCD_Onlinemain.tsx1 match

@willthereader•Updated 1 year ago
56const app = new Hono();
57app.get("/", Bringing_My_OCD_Online);
58export default app.fetch;

fetch-socials4 file matches

@welson•Updated 2 days ago
fetch and archive my social posts

fetchRssForSubcurrent2 file matches

@ashryanio•Updated 2 days ago