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=api&page=93&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=api

Returns an array of strings in format "username" or "username/projectName"

Found 17903 results for "api"(2493ms)

HAPIPropertyForm.tsx1 match

@dIgitalfulusโ€ขUpdated 3 days ago
62 }
63
64 const response = await fetch('/api/properties', {
65 method: 'POST',
66 headers: {

GlancerpollEnabledStatus.ts1 match

@lightweightโ€ขUpdated 3 days ago
7 const pinger = setInterval(async () => {
8 // check the boolean to see if a Glancer has enabled the link to start a cobrowsing session
9 const resp = await fetch("/api/cobrowse/" + window.__DEMO_ID__, {
10 method: "GET",
11 headers: {

Glancerindex.html1 match

@lightweightโ€ขUpdated 3 days ago
9 <script src="https://cdn.tailwindcss.com"></script>
10 <link
11 href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap"
12 rel="stylesheet"
13 />

Jobpostingindex.ts3 matches

@faithyzโ€ขUpdated 3 days ago
90}
91
92// API routes
93app.route("/api/jobs", jobsRouter);
94app.route("/api/chat", chatRouter);
95
96// Serve static files

JobpostingChat.tsx2 matches

@faithyzโ€ขUpdated 3 days ago
41 const fetchMessages = async () => {
42 try {
43 const response = await fetch(`/api/chat/${jobId}`);
44 if (response.ok) {
45 const messagesData = await response.json();
73
74 try {
75 const response = await fetch('/api/chat', {
76 method: 'POST',
77 headers: {

Createtypes.ts2 matches

@Omosola_1โ€ขUpdated 3 days ago
197export type ApplicationStatus = 'pending' | 'approved' | 'rejected' | 'under_review';
198
199// API Response types
200export interface ApiResponse<T> {
201 success: boolean;
202 data?: T;

HAPIApp.tsx1 match

@dIgitalfulusโ€ขUpdated 3 days ago
32 }
33
34 const response = await fetch(`/api/properties?${params}`);
35 const result = await response.json();
36

Towniequeries.tsx5 matches

@valdottownโ€ขUpdated 3 days ago
24 user_id = ?
25 AND timestamp > ?
26 AND our_api_token = 1
27 `,
28 [userId, new Date().getTime() - 24 * 60 * 60 * 1000],
113 branch_id,
114 model,
115 our_api_token,
116 num_images,
117}: {
120 branch_id: string;
121 model: string;
122 our_api_token: boolean;
123 num_images: number;
124}) {
132 branch_id,
133 model,
134 our_api_token,
135 num_images
136 ) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
143 branch_id,
144 model,
145 our_api_token ? 1 : 0,
146 num_images,
147 ],

CreateREADME.md2 matches

@Omosola_1โ€ขUpdated 3 days ago
32โ”‚ โ”‚ โ”œโ”€โ”€ users.ts # User profile endpoints
33โ”‚ โ”‚ โ””โ”€โ”€ static.ts # Static file serving
34โ”‚ โ””โ”€โ”€ index.ts # Main API server
35โ”œโ”€โ”€ frontend/
36โ”‚ โ”œโ”€โ”€ components/
61## Technology Stack
62
63- **Backend**: Hono.js API framework
64- **Database**: SQLite for data storage
65- **Frontend**: React with TypeScript

JobpostingJobList.tsx1 match

@faithyzโ€ขUpdated 3 days ago
34
35 try {
36 const response = await fetch('/api/jobs', {
37 method: 'POST',
38 headers: {

dailyQuoteAPI

@Soukyโ€ขUpdated 1 day ago

HTTP

@Ncharityโ€ขUpdated 1 day ago
Daily Quote API
apiry
Kapil01