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/$2?q=fetch&page=1108&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 13190 results for "fetch"(4859ms)

sqliteExplorerAppmain.tsx4 matches

@burcs•Updated 11 months ago
1/** @jsxImportSource https://esm.sh/hono@latest/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import { iframeHandler } from "https://esm.town/v/nbbaier/iframeHandler";
5import { resetStyle } from "https://esm.town/v/nbbaier/resetStyle";
16import { verifyToken } from "https://esm.town/v/pomdtr/verifyToken";
17import { ResultSet, sqlite } from "https://esm.town/v/std/sqlite";
18import { reloadOnSaveFetchMiddleware } from "https://esm.town/v/stevekrouse/reloadOnSave";
19import { Hono } from "npm:hono";
20import type { FC } from "npm:hono/jsx";
175});
176
177export const handler = app.fetch;
178export default iframeHandler(modifyFetchHandler(passwordAuth(handler, { verifyPassword: verifyToken })));

libsqlstudiomain.tsx1 match

@stevekrouse•Updated 11 months ago
4const app = createApp();
5
6export default lastlogin(app.fetch, {
7 verifyEmail: (email) => email === "steve@val.town",
8});

wikiOGmain.tsx2 matches

@stevekrouse•Updated 11 months ago
8
9 try {
10 const response = await fetch(apiUrl);
11 const data = await response.json();
12
20 };
21 } catch (error) {
22 console.error("Error fetching Wikipedia data:", error);
23 return null;
24 }

WebComponentExamplemain.tsx3 matches

@matthiasraimann•Updated 11 months ago
93
94 async handleSubmit(attend) {
95 return fetch('http://localhost:8080/events/register', {
96 method: 'POST',
97 body: JSON.stringify({
111
112 async updateAttendancy(attend) {
113 return fetch('http://localhost:8080/events/register', {
114 method: 'PUT',
115 body: JSON.stringify({
127
128 async getInitData() {
129 return fetch("http://localhost:8080/events/participants?" +
130 new URLSearchParams(
131 [

ownedGamesToSqlitemain.tsx1 match

@alvi•Updated 11 months ago
17
18 try {
19 const response = await fetch(url, options);
20 const data = await response.json();
21 console.log({ data });

ownedGamesToSqliteREADME.md1 match

@alvi•Updated 11 months ago
3I wanted to log this data so I can analyse which days do I game the most ? which periods do I log the most hours in my confort game (Dead By Daylight) ? And so on. I think the data viz possibilities are super interesting, just like when Valve releases the "Steam in review" at the end of the year
4
5This val fetches your recent playtime history from valve's API and stores it in a database every day !
6
7The project uses multiple vals to work:

libsqlstudiomain.tsx1 match

@sqlite•Updated 11 months ago
4const app = createApp();
5
6export default app.fetch

sqliteExplorerAppmain.tsx4 matches

@rchasman•Updated 11 months ago
1/** @jsxImportSource https://esm.sh/hono@latest/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import { iframeHandler } from "https://esm.town/v/nbbaier/iframeHandler";
5import { resetStyle } from "https://esm.town/v/nbbaier/resetStyle";
16import { verifyToken } from "https://esm.town/v/pomdtr/verifyToken";
17import { ResultSet, sqlite } from "https://esm.town/v/std/sqlite";
18import { reloadOnSaveFetchMiddleware } from "https://esm.town/v/stevekrouse/reloadOnSave";
19import { Hono } from "npm:hono";
20import type { FC } from "npm:hono/jsx";
175});
176
177export const handler = app.fetch;
178export default iframeHandler(modifyFetchHandler(passwordAuth(handler, { verifyPassword: verifyToken })));

libsqlstudiomain.tsx1 match

@iamseeley•Updated 11 months ago
7});
8
9export default lastlogin(app.fetch, {
10 verifyEmail: (email) => email == Deno.env.get("email"),
11});

blob_adminmain.tsx2 matches

@vhmartinezm•Updated 11 months ago
1/** @jsxImportSource https://esm.sh/hono@4.0.8/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import view_route from "https://esm.town/v/pomdtr/blob_admin_blob";
5import create_route from "https://esm.town/v/pomdtr/blob_admin_create";
133});
134
135export default modifyFetchHandler(passwordAuth(app.fetch));

proxiedfetch1 file match

@jayden•Updated 14 hours ago

fetch-socials4 file matches

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