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=656&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 7895 results for "fetch"(2000ms)

readmeGPTmain.tsx3 matches

@nbbaier•Updated 1 year ago
1import { type WriterOptions } from "https://esm.town/v/nbbaier/WriterOptions";
2import { fetch } from "https://esm.town/v/std/fetch?v=4";
3import OpenAI, { type ClientOptions } from "npm:openai";
4
32 private async getVal(username: string, valName: string) {
33 try {
34 const res = await fetch(`https://api.val.town/v1/alias/${username}/${valName}`, {
35 method: "GET",
36 headers: {
72 private async updateReadme(id: string, readme: string) {
73 try {
74 const res = await fetch(`https://api.val.town/v1/vals/${id}`, {
75 method: "PUT",
76 headers: {

retrievalPracticemain.tsx1 match

@petermillspaugh•Updated 1 year ago
151 fillBlank: FILL_BLANK,
152 quiz: QUIZ,
153 fetchHtml: (email: string, lesson: number) =>
154 generateLessonHtml({
155 email,

sendDailyLessonsmain.tsx1 match

@petermillspaugh•Updated 1 year ago
43 replyTo: "pete@petemillspaugh.com",
44 subject: `Lesson ${nextLesson + 1}: ${lessons[nextLesson].title}`,
45 html: lessons[nextLesson].fetchHtml(emailAddress, nextLesson),
46 });
47 }

sendLessonmain.tsx1 match

@petermillspaugh•Updated 1 year ago
26 replyTo: "pete@petemillspaugh.com",
27 subject: `Lesson ${lesson + 1}: ${lessons[lesson].title}`,
28 html: lessons[lesson].fetchHtml(emailAddress, lesson),
29 });
30}

learningAboutLearningmain.tsx1 match

@petermillspaugh•Updated 1 year ago
61 fillBlank: FILL_BLANK,
62 quiz: QUIZ,
63 fetchHtml: (email: string, lesson: number) =>
64 generateLessonHtml({
65 email,

yourBrainmain.tsx1 match

@petermillspaugh•Updated 1 year ago
82 fillBlank: FILL_BLANK,
83 quiz: QUIZ,
84 fetchHtml: (email: string, lesson: number) =>
85 generateLessonHtml({
86 email,

growthMindsetmain.tsx1 match

@petermillspaugh•Updated 1 year ago
31 fillBlank: FILL_BLANK,
32 quiz: QUIZ,
33 fetchHtml: (email: string, lesson: number) =>
34 generateLessonHtml({
35 email,

generationmain.tsx1 match

@petermillspaugh•Updated 1 year ago
61 fillBlank: FILL_BLANK,
62 quiz: QUIZ,
63 fetchHtml: (email: string, lesson: number) =>
64 generateLessonHtml({
65 email,

elaborationAndReflectionmain.tsx1 match

@petermillspaugh•Updated 1 year ago
42 fillBlank: FILL_BLANK,
43 quiz: QUIZ,
44 fetchHtml: (email: string, lesson: number) =>
45 generateLessonHtml({
46 email,

variedPracticemain.tsx1 match

@petermillspaugh•Updated 1 year ago
52 fillBlank: FILL_BLANK,
53 quiz: QUIZ,
54 fetchHtml: (email: string, lesson: number) =>
55 generateLessonHtml({
56 email,

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago