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/$%7Burl%7D?q=api&page=8&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 19668 results for "api"(2228ms)

healthyJadeTapir

@danisjerryβ€’Updated 4 months ago

API_Get_Weather_In_French

@Skeyeβ€’Updated 4 months ago

FramerAPIWrapper2 file matches

@charmaineβ€’Updated 4 months ago

TanaAPIHelper2 file matches

@nbbaierβ€’Updated 4 months ago

sapientBlueBeetle

@Cpkβ€’Updated 4 months ago

handleMemoryApiRequest2 file matches

@cadenceβ€’Updated 4 months ago

DualLangWebSpeechAPI1 file match

@AIWBβ€’Updated 4 months ago

APIBuilderTemplate3 file matches

@dcm31β€’Updated 4 months ago

APITemplateWithSwaggerUI1 file match

@dcm31β€’Updated 4 months ago

googleGeminiAPI2 file matches

@charmaineβ€’Updated 4 months ago
Plantfo

Plantfoindex.ts4 matches

@Lladβ€’Updated 38 mins ago
49}
50
51// Check if user is authenticated (for API endpoints)
52function isAuthenticated(c: any): boolean {
53 const sessionToken = getSignedCookie(c, SESSION_SECRET, "admin_session");
115});
116
117// API info endpoint moved to /api
118app.get("/api", async (c) => {
119 // Only show cache stats if authenticated
120 let cacheInfo = {};
133
134 return c.json({
135 message: "Plant Information API",
136 usage: "GET /plant/:name - Get information about a specific plant",
137 example: "/plant/rose",

ChatStreamingChat.tsx8 matches

@c15rβ€’Updated 54 mins ago
177 /** Retry a user message */
178 const retryMessage = async (messageId: string) => {
179 if (status !== "idle" || !config.anthropicApiKey) return;
180
181 const userText = onRetryFromMessage(messageId);
203 console.log("[Chat] fire send", { userText, input });
204 const messageText = userText || input.trim();
205 if (!messageText || status !== "idle" || !config.anthropicApiKey) return;
206
207 // Only clear input if we're using the current input (not NextSteps execution)
262 };
263
264 const canSend = input?.trim() && status === "idle" && config.anthropicApiKey;
265
266 /* ── UI ─────────────────────────────────────────────────────── */
268 <>
269 <div className="chat-messages">
270 {!config.anthropicApiKey && (
271 <div className="message system">
272 Please configure your Anthropic API key in settings to start chatting
273 </div>
274 )}
379 }}
380 onKeyDown={handleKeyDown}
381 placeholder={config.anthropicApiKey
382 ? streaming
383 ? "Streaming…"
385 ? "Waiting for your input above…"
386 : "Type your message or / for commands…"
387 : "Configure API key in settings first"}
388 className="chat-input"
389 disabled={!config.anthropicApiKey || thinking || waitingForUser}
390 rows={1}
391 />
apiry
snartapi