You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/?q=api&page=19&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 18991 results for "api"(4329ms)
92Â <!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Honeydew</title>
93Â <style>Â
94Â @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Inter:wght@400&display=swap');Â
95Â @keyframes spin{to{transform:rotate(360deg)}}
96@keyframes slide-in-bounce {
477Â <script>Â
478Â (function() {
479Â const API_URL = '${sourceUrl}';Â
480Â const STORE_KEYS = { projects: 'honeydew_projects_v1', tasks: 'honeydew_tasks_v1', theme: 'honeydew_theme_v1' };Â
481Â let projects = [], tasks = [], activeView = 'today', conversationHistory = [];Â
682683Â Â try {Â
684Â Â Â const res = await fetch(\`\${API_URL}?action=chat\`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ messages: conversationHistory.slice(0, -1), tasks, projects }) });Â
685Â Â Â const data = await res.json();Â
686Â Â Â if (!res.ok || data.error) throw new Error(data.error || 'Server error');Â
786Â Â toggleLoading(btn, true);Â
787Â Â try {Â
788Â Â Â const res = await fetch(\`\${API_URL}?action=synthesizeProject\`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ goal }) });Â
789Â Â Â const data = await res.json();Â
790Â Â Â if (!res.ok || data.error) throw new Error(data.error || "Server error");Â
804Â Â toggleLoading(btn, true);Â
805Â Â try {Â
806Â Â Â const res = await fetch(\`\${API_URL}?action=dailyRebalance\`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ tasks: todayTasks }) });Â
807Â Â Â const data = await res.json();Â
808Â Â Â if (!res.ok || data.error) throw new Error(data.error || "Server error");Â
1034}
1035} catch (error) {
1036console.error("AI API Error:", error);
1037return new Response(
1038JSON.stringify({ error: error.message || "An unknown error occurred with the AI service." }),
34const anthropic = new Anthropic({
5apiKey: Deno.env.get("ANTHROPIC_API_KEY"),
6});
7