You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$1?q=api&page=21&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 18926 results for "api"(1259ms)
97switch (parseMode) {
98case 'url':
99endpoint = '/api/parse/url';
100requestData = { type: 'url', content: parseInput };
101break;
102case 'text':
103endpoint = '/api/parse/text';
104requestData = { type: 'url', content: parseInput }; // Note: backend expects 'url' type for text parsing
105break;
110
111if (uploadedFile.type.startsWith('image/')) {
112endpoint = '/api/parse/image';
113requestData = { type: 'image', content: parseInput };
114} else if (uploadedFile.type === 'application/pdf') {
115endpoint = '/api/parse/pdf';
116requestData = { type: 'pdf', content: parseInput };
117} else {
198};
199200const url = isEditing ? `/api/recipes/${recipe.id}` : '/api/recipes';
201const method = isEditing ? 'PUT' : 'POST';
202
15await runMigrations();
1617// API routes
18app.route('/api/recipes', recipesRoutes);
19app.route('/api/parse', parseRoutes);
2021// Health check endpoint
22app.get('/api/health', (c) => {
23return c.json({ status: 'ok', timestamp: new Date().toISOString() });
24});
2526// Test delete endpoint
27app.get('/api/test-delete', async (c) => {
28try {
29const { createRecipe, deleteRecipe, getAllRecipes } = await import('./database/queries.ts');