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=934&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 13380 results for "fetch"(3560ms)

cerebras_codermain.tsx1 match

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

cerebras_codermain.tsx1 match

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

birthdayAlertsAppmain.tsx7 matches

@abidiqrar•Updated 4 months ago
9
10 useEffect(() => {
11 fetchBirthdays();
12 }, []);
13
14 const fetchBirthdays = async () => {
15 const response = await fetch('/birthdays');
16 const data = await response.json();
17 setBirthdays(data);
20 const handleSubmit = async (e) => {
21 e.preventDefault();
22 await fetch('/birthdays', {
23 method: 'POST',
24 headers: { 'Content-Type': 'application/json' },
27 setName('');
28 setDate('');
29 fetchBirthdays();
30 };
31
32 const deleteBirthday = async (id) => {
33 await fetch(`/birthdays/${id}`, { method: 'DELETE' });
34 fetchBirthdays();
35 };
36
19
20 try {
21 const response = await fetch(url, options);
22 const data = await response.json();
23 console.log({ data });

proudMagentaTurtlemain.tsx1 match

@Murtaza•Updated 4 months ago
74 formData.append('size', size);
75
76 const response = await fetch('/crop', {
77 method: 'POST',
78 body: formData

dynamicLavenderBeetlemain.tsx1 match

@charmaine•Updated 4 months ago
16 : Math.floor((Date.now() - 2 * 24 * 60 * 60 * 1000) / 1000);
17
18 // Fetch and log tweets
19 const response = await socialDataSearch(`${query} since_time:${timeFrame}`);
20 console.log("Response from socialDataSearch:", response);

hopefulApricotSparrowmain.tsx1 match

@charmaine•Updated 4 months ago
16 : Math.floor((Date.now() - 2 * 24 * 60 * 60 * 1000) / 1000);
17
18 // Fetch and log tweets
19 const response = await socialDataSearch(`${query} since_time:${timeFrame}`);
20 console.log("Response from socialDataSearch:", response);

thankfulTurquoiseParrotmain.tsx2 matches

@tmcw•Updated 4 months ago
28
29 try {
30 // Fetch user data
31 const resp = await client.me.profile.retrieve();
32 const token = jwt.sign(resp, privateKeyPem, { algorithm: "RS256", expiresIn: "1h" });
142}
143
144export default app.fetch.bind(app);

valSessionmain.tsx2 matches

@tmcw•Updated 4 months ago
28
29 try {
30 // Fetch user data
31 const resp = await client.me.profile.retrieve();
32 const token = jwt.sign(resp, privateKeyPem, { algorithm: "RS256", expiresIn: "1h" });
142}
143
144export default app.fetch.bind(app);

gitHubSyncmain.tsx3 matches

@tmcw•Updated 4 months ago
82 if (!code) return c.text("No code provided", 400);
83
84 const tokenResponse = await fetch("https://github.com/login/oauth/access_token", {
85 method: "POST",
86 headers: {
97 const { access_token } = await tokenResponse.json();
98
99 const userResponse = await fetch("https://api.github.com/user", {
100 headers: {
101 "Authorization": `token ${access_token}`,
302}
303
304export default app.fetch;
305
306interface CommitOptions {

GithubPRFetcher

@andybak•Updated 1 day ago

proxiedfetch1 file match

@jayden•Updated 2 days ago