You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/...?q=api&page=44&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 19785 results for "api"(2676ms)
88const recaptchaSecretKey = Deno.env.get("RECAPTCHA_SECRET_KEY");
89if (recaptchaSecretKey && recaptchaResponse) {
90const verifyUrl = `https://www.google.com/recaptcha/api/siteverify`;
91const verifyData = new URLSearchParams({
92secret: recaptchaSecretKey,
183additionalScripts = `
184<!-- Google reCAPTCHA script -->
185<script src="https://www.google.com/recaptcha/api.js" async defer></script>
186<script type="text/javascript">
187// Form validation function to check if captcha is completed
2930// Health check endpoint
31app.get('/api/health', async (c) => {
32try {
33await initializeDatabase();
3940// Test endpoint for debugging delete operations
41app.get('/api/test-delete', async (c) => {
42await initializeDatabase();
43return c.json({ message: 'Delete test endpoint - check logs for database operations' });
44});
4546// Mount API routes
47app.route('/api/recipes', recipesApp);
48app.route('/api/parse', parseApp);
49app.route('/api/shopping-lists', shoppingListsApp);
5051// Serve static files