You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$1?q=api&page=55&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"(4472ms)
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});
34const handleDelete = async () => {
35try {
36const response = await fetch(`/api/recipes/${recipe.id}`, {
37method: 'DELETE'
38});