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/$1?q=fetch&page=9&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 11102 results for "fetch"(1361ms)

moduleFetch1 file match

@easrng•Updated 1 year ago

fetchReadable1 file match

@hvlck•Updated 1 year ago

testFetchCommentsVal2 file matches

@willthereader•Updated 1 year ago

fetchConfirmationHtml2 file matches

@petermillspaugh•Updated 1 year ago

fetchPinatsPosts1 file match

@stevedylandev•Updated 1 year ago

fetchVerificationEmailHtml2 file matches

@petermillspaugh•Updated 1 year ago

fetchText2 file matches

@stevekrouse•Updated 1 year ago

fetchTextWithCaching2 file matches

@iakovos•Updated 1 year ago

fetchAndParseFeeds2 file matches

@iakovos•Updated 1 year ago

fetchWeatherPrediction1 file match

@jamiedubs•Updated 1 year ago

townie-testingserveFile.md1 match

@chadparker•Updated 1 hour ago
71
72 // Inject initial data to avoid extra round-trips
73 const initialData = await fetchInitialData();
74 const dataScript = `<script>
75 window.__INITIAL_DATA__ = ${JSON.stringify(initialData)};

personalShopperindex.ts7 matches

@bgschiller•Updated 2 hours ago
304async function logout(): Promise<void> {
305 try {
306 await fetch("/auth/logout", { method: "POST" });
307 window.location.reload();
308 } catch (error) {
318
319 try {
320 const response = await fetch("/api/user/location", {
321 method: "PUT",
322 headers: { "Content-Type": "application/json" },
349
350 try {
351 const response = await fetch(
352 `/api/locations/search?zipCode=${
353 encodeURIComponent(
428): Promise<void> {
429 try {
430 const response = await fetch("/api/user/location", {
431 method: "PUT",
432 headers: { "Content-Type": "application/json" },
482 if (userData && userData.preferredLocationId) {
483 try {
484 const response = await fetch(
485 `/api/locations/${userData.preferredLocationId}`,
486 );
502async function loadGuidanceCount(): Promise<void> {
503 try {
504 const response = await fetch("/api/guidance");
505 const guidance = await response.json();
506 document.getElementById("guidance-count")!.textContent = guidance.length.toString();
512async function loadSelectionsCount(): Promise<void> {
513 try {
514 const response = await fetch("/api/selections");
515 const selections = await response.json();
516 document.getElementById("selections-count")!.textContent = selections.length.toString();