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%20%22Image%20title%22?q=fetch&page=760&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 8435 results for "fetch"(907ms)

githubStarredmain.tsx2 matches

@potherca•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// GitHub starred repos
4export let githubStarred = fetchJSON("https://api.github.com/users/potherca/starred")
5 .then((repos) => repos.map((repo) => repo.html_url));

testcase1main.tsx2 matches

@charles2•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export let testcase1 = fetchJSON('https://api.val.town/eval/@stevekrouse.example1')
4

buildReactDomMinifiedmain.tsx2 matches

@liamdanielduffy•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2import { REACT_DOM_MINIFIED } from "https://esm.town/v/liamdanielduffy/REACT_DOM_MINIFIED";
3let { REACT_DOM_MINIFIED_PT4 } = await import("https://esm.town/v/liamdanielduffy/REACT_DOM_MINIFIED_PT4");
7
8export async function buildReactDomMinified() {
9 const res = await fetch(
10 "https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js",
11 );

buildReactMinifiedmain.tsx2 matches

@liamdanielduffy•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3let { REACT_MINIFIED } = await import("https://esm.town/v/liamdanielduffy/REACT_MINIFIED");
4
5export async function buildReactMinified() {
6 let res = await fetch(
7 "https://unpkg.com/react@18/umd/react.production.min.js",
8 );

githubGistsmain.tsx2 matches

@rodrigotellovaltown•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// GitHub gists
4export let githubGists = fetchJSON(
5 "https://api.github.com/users/stevekrouse/gists"
6);

githubFollowersmain.tsx2 matches

@maxmix•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// GitHub followers
4export let githubFollowers = fetchJSON(
5 "https://api.github.com/users/stevekrouse/followers"
6);

queryExamplemain.tsx2 matches

@neverstew•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2import { query } from "https://esm.town/v/neverstew/query";
3
4export const queryExample = fetch("https://jsonplaceholder.typicode.com/todos")
5 .then((r) => r.json())
6 .then((data) =>

migratemain.tsx2 matches

@neverstew•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2import { turso as turso2 } from "https://esm.town/v/neverstew/turso";
3import { createMigration } from "https://esm.town/v/neverstew/createMigration";
55 version.code,
56 );
57 await fetch(`https://val.town/v1/eval/${innerFn}`, {
58 headers: {
59 Authorization: `Bearer ${token}`,

SearchValTownmain.tsx2 matches

@pomdtr•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function SearchValTown(query: string) {
8 encodeURIComponent(input)
9 }`;
10 const res = await fetch(searchURL);
11 const payload = await res.json();
12 return payload.result.data;

nasaAPODmain.tsx2 matches

@ritz•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// Returns NASA's Astronomy Picture of the Day (APOD)
4export const nasaAPOD = fetchJSON("cutt.ly/T7ksirK");
5// Forked from @iBrokeit.nasaAPOD

fetchPaginatedData2 file matches

@nbbaier•Updated 2 weeks ago

FetchBasic1 file match

@fredmoon•Updated 2 weeks ago