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=335&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 8234 results for "fetch"(749ms)

githubactivitysummarizerREADME.md1 match

@michaelwschultz•Updated 2 months ago
1# GitHub Activity Summarizer
2
3This val.town script fetches a user's recent GitHub activity and generates a summarized narrative overview using OpenAI's GPT model.
4
5## Features

imfLeaderboardmain.tsx6 matches

@nulo•Updated 2 months ago
10
11 useEffect(() => {
12 fetchData();
13 }, []);
14
15 const fetchData = async () => {
16 try {
17 const response = await fetch("/api/imf-data");
18 if (!response.ok) {
19 throw new Error("¡Uy, no se pudo traer los datos, che!");
104 }
105
106 const { fetch } = await import("https://esm.town/v/std/fetch");
107
108 // If no valid cache, fetch and process the data
109 const imfResponse = await fetch("https://www.imf.org/external/np/fin/tad/balmov2.aspx?tsvflag=Y&type=TOTAL", {});
110 const arrayBuffer = await imfResponse.arrayBuffer();
111

cerebras_coderindex1 match

@Guru1996•Updated 2 months ago
5async function servePublicFile(path: string): Promise<Response> {
6 const url = new URL("./public/" + path, import.meta.url);
7 const text = await (await fetch(url, {
8 headers: {
9 "User-Agent": "", // to transpile TS to JS

cerebras_coderindex1 match

@Guru1996•Updated 2 months ago
181
182 try {
183 const response = await fetch("/", {
184 method: "POST",
185 body: JSON.stringify({

social_dataindex.ts1 match

@charmaine•Updated 2 months ago
21 const url = new URL(`${this.baseURL}/twitter/search`);
22 url.searchParams.set("query", query);
23 const resp = await fetch(url, {
24 headers: {
25 Authorization: `Bearer ${this.bearerToken}`,

social_dataindex.ts1 match

@charmaine•Updated 2 months ago
101});
102
103export default app.fetch;

social_dataindex.ts1 match

@stevekrouse•Updated 2 months ago
21 const url = new URL(`${this.baseURL}/twitter/search`);
22 url.searchParams.set("query", query);
23 const resp = await fetch(url, {
24 headers: {
25 Authorization: `Bearer ${this.bearerToken}`,

cerebras_coderindex1 match

@jazib•Updated 2 months ago
5async function servePublicFile(path: string): Promise<Response> {
6 const url = new URL("./public/" + path, import.meta.url);
7 const text = await (await fetch(url, {
8 headers: {
9 "User-Agent": "", // to transpile TS to JS

cerebras_coderindex1 match

@jazib•Updated 2 months ago
181
182 try {
183 const response = await fetch("/", {
184 method: "POST",
185 body: JSON.stringify({

cerebras_coderindex1 match

@admariner•Updated 2 months ago
5async function servePublicFile(path: string): Promise<Response> {
6 const url = new URL("./public/" + path, import.meta.url);
7 const text = await (await fetch(url, {
8 headers: {
9 "User-Agent": "", // to transpile TS to JS

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago