Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/...?q=api&page=60&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"(2428ms)

myApi1 file match

@curranβ€’Updated 1 year ago

myApi2 file matches

@acmuβ€’Updated 1 year ago

myApi1 file match

@nikβ€’Updated 1 year ago

myApi1 file match

@oevlβ€’Updated 1 year ago

myApi1 file match

@henniβ€’Updated 1 year ago

myApi1 file match

@jbeimlerβ€’Updated 1 year ago

myApi1 file match

@rheberβ€’Updated 1 year ago

myApi1 file match

@lazeebeeβ€’Updated 1 year ago

myApi1 file match

@claytonβ€’Updated 1 year ago

myApi1 file match

@burgerβ€’Updated 1 year ago

ChatStreamingChat.tsx8 matches

@c15rβ€’Updated 1 hour ago
170 /** Retry a user message */
171 const retryMessage = async (messageId: string) => {
172 if (status !== "idle" || !config.anthropicApiKey) return;
173
174 const userText = onRetryFromMessage(messageId);
193 /** Dispatch user input */
194 const fireSend = async () => {
195 if (!input.trim() || status !== "idle" || !config.anthropicApiKey) return;
196
197 const userText = input.trim();
255 };
256
257 const canSend = input?.trim() && status === "idle" && config.anthropicApiKey;
258
259 /* ── UI ─────────────────────────────────────────────────────── */
261 <>
262 <div className="chat-messages">
263 {!config.anthropicApiKey && (
264 <div className="message system">
265 Please configure your Anthropic API key in settings to start chatting
266 </div>
267 )}
348 }}
349 onKeyDown={handleKeyDown}
350 placeholder={config.anthropicApiKey
351 ? streaming
352 ? "Press Enter to stop streaming…"
353 : "Type your message or / for commands…"
354 : "Configure API key in settings first"}
355 className="chat-input"
356 disabled={!config.anthropicApiKey || thinking}
357 rows={1}
358 />

ChatMCPClient.ts3 matches

@c15rβ€’Updated 1 hour ago
633const httpClient = new MCPClient({
634 type: 'http',
635 endpoint: 'https://api.example.com/mcp',
636 headers: { 'Authorization': 'Bearer token' }
637});
640const sseClient = new MCPClient({
641 type: 'sse',
642 endpoint: 'https://api.example.com/mcp,https://api.example.com/mcp/stream',
643 headers: { 'Authorization': 'Bearer token' }
644});
647const wsClient = new MCPClient({
648 type: 'websocket',
649 endpoint: 'wss://api.example.com/mcp'
650});
651
apiry
snartapi