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/?q=fetch&page=1112&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 12930 results for "fetch"(1789ms)

amaranthTakinmain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
2import { form } from "https://esm.town/v/stevekrouse/date_me_form";
3import browse from "https://esm.town/v/stevekrouse/dateme_browse";
13app.get("/faq", faq);
14app.get("/rss.xml", c => dateMeRSS(c.req as unknown as Request));
15export default modifyFetchHandler(app.fetch, {
16 style: `@media (max-width: 500px) {
17 .github-fork-ribbon {

getColormain.tsx1 match

@stevekrouse•Updated 1 year ago
65
66const app = new Hono();
67export default app.fetch;
68app.get("/", async (c) => {
69 const url = c.req.query("url");

newValTownOpenAPImain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { blob } from "https://esm.town/v/std/blob?v=12";
2import { email } from "https://esm.town/v/std/email?v=9";
3import { fetchText } from "https://esm.town/v/stevekrouse/fetchText";
4
5export let newValTownOpenAPI = async () => {
6 const savedSpec = await blob.getJSON("vtOpenAPI");
7 let currentSpec = await fetchText(
8 "https://www.val.town/docs/openapi.yaml",
9 );

val_town_client_examplemain.tsx1 match

@pomdtr•Updated 1 year ago
8 params: {
9 query: {
10 query: "fetchJSON",
11 limit: 30,
12 offset: 60,

reply_to_slack_messagemain.tsx2 matches

@curtcox•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3async function post_response(body, f: SlackFunction, config: SlackConfig) {
4 // Note: `body.event` has information about the event like the sender and the message text
5 const text = await f(body);
6 const result = await fetchJSON("https://slack.com/api/chat.postMessage", {
7 headers: { "Authorization": `Bearer ${config.slackToken}` },
8 method: "POST",

val_town_clientmain.tsx1 match

@pomdtr•Updated 1 year ago
1import { paths } from "https://esm.town/v/pomdtr/openapi_schema";
2import createClient2 from "npm:openapi-fetch";
3
4export default function createClient(options?: {

ittyRouterExamplemain.tsx1 match

@vladimyr•Updated 1 year ago
4const router = AutoRouter();
5router.get("/", () => "Hi from itty-router!");
6export default denoServer(router.fetch);

honoExamplemain.tsx1 match

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

oakExamplemain.tsx1 match

@vladimyr•Updated 1 year ago
13app.use(router.routes());
14app.use(router.allowedMethods());
15export default denoServer(app.fetch);

pushplusmain.tsx1 match

@yieldray•Updated 1 year ago
18 timestamp?: number; // ms
19}) {
20 return fetch("http://www.pushplus.plus/send", {
21 method: "POST",
22 headers: { "Content-Type": "application/json" },

fetch-socials4 file matches

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

fetchRssForSubcurrent2 file matches

@ashryanio•Updated 2 days ago