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=346&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 5857 results for "fetch"(812ms)

cerebras_codermain.tsx1 match

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

CodeGeneratorAppmain.tsx1 match

@mrshorts•Updated 4 months ago
13 setIsLoading(true);
14 try {
15 const response = await fetch("/generate", {
16 method: "POST",
17 headers: { "Content-Type": "application/json" },

cerebras_codermain.tsx1 match

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

gemini_codermain.tsx1 match

@awhitter•Updated 4 months ago
125 setLoading(true);
126 try {
127 const res = await fetch("/api/generate", {
128 method: "POST",
129 body: JSON.stringify({ prompt }),

shorturlmain.tsx1 match

@cocodrilette•Updated 4 months ago
19 const handleGenerate = async () => {
20 try {
21 const response = await fetch('/generate', {
22 method: 'POST',
23 body: JSON.stringify({ longUrl }),

grammarCheckAppmain.tsx1 match

@mrshorts•Updated 4 months ago
11 setLoading(true);
12 try {
13 const response = await fetch('/grammar', {
14 method: 'POST',
15 body: JSON.stringify({ text })

peachcatmain.tsx1 match

@veer•Updated 4 months ago
166
167 try {
168 const response = await fetch("/", {
169 method: "POST",
170 body: JSON.stringify({

cerebras_codermain.tsx1 match

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

safeBlushRabbitmain.tsx5 matches

@semisemsem•Updated 4 months ago
114 }
115
116 const response = await fetch('/submit-vote', {
117 method: 'POST',
118 headers: { 'Content-Type': 'application/json' },
307
308 useEffect(() => {
309 async function fetchVotes() {
310 const response = await fetch('/get-votes');
311 const data = await response.json();
312 setVotes(data);
322 setLoading(false);
323 }
324 fetchVotes();
325 }, []);
326
327 const handleDeleteVote = async (id: number) => {
328 const response = await fetch('/delete-vote', {
329 method: 'POST',
330 headers: { 'Content-Type': 'application/json' },

reasoninghelpermain.tsx4 matches

@prashamtrivedi•Updated 4 months ago
76
77 try {
78 const response = await fetch("/api/generate-question", {
79 method: "POST",
80 headers: { "Content-Type": "application/json" },
106
107 try {
108 const response = await fetch("/api/generate-exam-questions", {
109 method: "POST",
110 headers: { "Content-Type": "application/json" },
143
144 try {
145 const response = await fetch("/api/get-feedback", {
146 method: "POST",
147 headers: { "Content-Type": "application/json" },
176
177 try {
178 const response = await fetch("/api/get-exam-feedback", {
179 method: "POST",
180 headers: { "Content-Type": "application/json" },

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

tweetFetcher2 file matches

@nbbaier•Updated 1 week ago