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?q=fetch&page=196&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 13732 results for "fetch"(3276ms)

MaseWakwaapsubscribers.ts2 matches

@MaseWakwa•Updated 1 week ago
58 return c.json(stats);
59 } catch (error) {
60 console.error("Error fetching subscriber stats:", error);
61 return c.json({ error: "Failed to fetch stats" }, 500);
62 }
63});

MaseWakwaapreleases.ts2 matches

@MaseWakwa•Updated 1 week ago
12 return c.json(releases);
13 } catch (error) {
14 console.error("Error fetching releases:", error);
15 return c.json({ error: "Failed to fetch releases" }, 500);
16 }
17});

my-first-valPollDetail.tsx1 match

@ikeali•Updated 1 week ago
35 };
36
37 const response = await fetch('/api/votes', {
38 method: 'POST',
39 headers: {

my-first-valLogin.tsx1 match

@ikeali•Updated 1 week ago
80 };
81
82 const response = await fetch(endpoint, {
83 method: 'POST',
84 headers: {

my-first-valApp.tsx4 matches

@ikeali•Updated 1 week ago
30 const checkAuth = async () => {
31 try {
32 const response = await fetch('/api/auth/me');
33 const data: ApiResponse<User> = await response.json();
34
49 const loadPolls = async () => {
50 try {
51 const response = await fetch('/api/polls');
52 const data: ApiResponse<Poll[]> = await response.json();
53
71 const handleLogout = async () => {
72 try {
73 await fetch('/api/auth/logout', { method: 'POST' });
74 setUser(null);
75 setPolls([]);
112 const loadPollDetails = async (pollId: number) => {
113 try {
114 const response = await fetch(`/api/polls/${pollId}`);
115 const data: ApiResponse<Poll> = await response.json();
116

DERICKindex.ts2 matches

@deebons•Updated 1 week ago
52app.get("/health", c => c.json({ status: "ok" }));
53
54// Export the fetch handler for Val Town
55export default app.fetch;

DERICKChatroom.tsx1 match

@deebons•Updated 1 week ago
83 };
84
85 const response = await fetch('/api/chat/messages', {
86 method: 'POST',
87 headers: {

DERICKJobForm.tsx1 match

@deebons•Updated 1 week ago
33 };
34
35 const response = await fetch('/api/jobs', {
36 method: 'POST',
37 headers: {

untitled-7041index.ts1 match

@centurygenius•Updated 1 week ago
42
43// This is the entry point for HTTP vals
44export default app.fetch;

untitled-1496index.ts1 match

@ikeali•Updated 1 week ago
44
45// This is the entry point for HTTP vals
46export default app.fetch;

FetchBasic2 file matches

@ther•Updated 2 days ago

GithubPRFetcher

@andybak•Updated 5 days ago