You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/...?q=api&page=13&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 18993 results for "api"(2950ms)
170/** Retry a user message */
171const retryMessage = async (messageId: string) => {
172if (status !== "idle" || !config.anthropicApiKey) return;
173174const userText = onRetryFromMessage(messageId);
193/** Dispatch user input */
194const fireSend = async () => {
195if (!input.trim() || status !== "idle" || !config.anthropicApiKey) return;
196197const userText = input.trim();
255};
256257const canSend = input?.trim() && status === "idle" && config.anthropicApiKey;
258259/* ββ UI βββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
261<>
262<div className="chat-messages">
263{!config.anthropicApiKey && (
264<div className="message system">
265Please configure your Anthropic API key in settings to start chatting
266</div>
267)}
348}}
349onKeyDown={handleKeyDown}
350placeholder={config.anthropicApiKey
351? streaming
352? "Press Enter to stop streamingβ¦"
353: "Type your message or / for commandsβ¦"
354: "Configure API key in settings first"}
355className="chat-input"
356disabled={!config.anthropicApiKey || thinking}
357rows={1}
358/>
633const httpClient = new MCPClient({
634type: 'http',
635endpoint: 'https://api.example.com/mcp',
636headers: { 'Authorization': 'Bearer token' }
637});
640const sseClient = new MCPClient({
641type: 'sse',
642endpoint: 'https://api.example.com/mcp,https://api.example.com/mcp/stream',
643headers: { 'Authorization': 'Bearer token' }
644});
647const wsClient = new MCPClient({
648type: 'websocket',
649endpoint: 'wss://api.example.com/mcp'
650});
651