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=199&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 13197 results for "fetch"(2014ms)

SchoolBankStudentForm.tsx1 match

@Maruel•Updated 3 days ago
74 const method = isEditing ? 'PUT' : 'POST';
75
76 const response = await fetch(url, {
77 method,
78 headers: {

SchoolBankStudentList.tsx2 matches

@Maruel•Updated 3 days ago
20 const loadStudents = async () => {
21 try {
22 const response = await fetch('/api/students');
23 const result: ApiResponse<Student[]> = await response.json();
24
39
40 try {
41 const response = await fetch(`/api/students/${studentId}`, {
42 method: 'DELETE',
43 });

SchoolBankDashboard.tsx1 match

@Maruel•Updated 3 days ago
18 const loadDashboardData = async () => {
19 try {
20 const response = await fetch('/api/messages/dashboard');
21 const result: ApiResponse<DashboardStats> = await response.json();
22

SchoolBankLogin.tsx1 match

@Maruel•Updated 3 days ago
21
22 try {
23 const response = await fetch('/api/auth/login', {
24 method: 'POST',
25 headers: {

SchoolBankApp.tsx2 matches

@Maruel•Updated 3 days ago
32 const checkAuth = async () => {
33 try {
34 const response = await fetch('/api/auth/check');
35 const result: ApiResponse<User> = await response.json();
36
52 const handleLogout = async () => {
53 try {
54 await fetch('/api/auth/logout', { method: 'POST' });
55 setState(prev => ({
56 ...prev,

SchoolBankmessages.ts2 matches

@Maruel•Updated 3 days ago
25 return c.json<ApiResponse>({
26 success: false,
27 error: 'Failed to fetch messages'
28 }, 500);
29 }
126 return c.json<ApiResponse>({
127 success: false,
128 error: 'Failed to fetch dashboard data'
129 }, 500);
130 }

ai_comments_to_tasksindex.tsx1 match

@arthrod•Updated 3 days ago
279
280 try {
281 const response = await fetch("/api/analyze", {
282 method: "POST",
283 headers: {

SchoolBankstudents.ts2 matches

@Maruel•Updated 3 days ago
34 return c.json<ApiResponse>({
35 success: false,
36 error: 'Failed to fetch students'
37 }, 500);
38 }
80 return c.json<ApiResponse>({
81 success: false,
82 error: 'Failed to fetch student'
83 }, 500);
84 }

ai_comments_to_tasksindex.ts1 match

@arthrod•Updated 3 days ago
420});
421
422export default app.fetch;

task_managerindex.ts1 match

@flumadi•Updated 3 days ago
35});
36
37export default app.fetch;

GithubPRFetcher

@andybak•Updated 1 hour ago

proxiedfetch1 file match

@jayden•Updated 21 hours ago