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/$%7BsvgDataUrl%7D?q=api&page=9&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"(2969ms)

searchWithSerpApi1 file match

@charmaineβ€’Updated 5 months ago

spotifyAPI1 file match

@alexweinβ€’Updated 5 months ago

lastfm_exporter_api

@architβ€’Updated 5 months ago

alquranApiProxy1 file match

@rahil224β€’Updated 5 months ago

EnkakuAuthenticatedAPIAdmin2 file matches

@paul_lecamβ€’Updated 5 months ago

EnkakuAuthenticatedAPIClient2 file matches

@paul_lecamβ€’Updated 5 months ago

EnkakuAuthenticatedAPI1 file match

@paul_lecamβ€’Updated 5 months ago

wideApi2 file matches

@maxmβ€’Updated 6 months ago

captivatingPurpleTapir1 file match

@mohsenβ€’Updated 6 months ago

simpleChatAPI1 file match

@haeliyanβ€’Updated 6 months ago

ChatStreamingChat.tsx8 matches

@c15rβ€’Updated 50 mins 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 52 mins 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