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/image-url.jpg?q=api&page=128&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 19501 results for "api"(8040ms)

RJ-DownDetectortelegram.ts1 match

@tagawaUpdated 1 week ago
30 // This is a no-op if nothing's changed
31 if (!isEndpointSet) {
32 await bot.api.setWebhook(req.url, {
33 secret_token: SECRET_TOKEN,
34 });

untitled-9921index.ts4 matches

@DevGokuUpdated 1 week ago
23}
24
25// API Routes
26app.route("/api/tools", toolsRouter);
27
28// Manual database seeding endpoint (for testing)
29app.get("/api/seed", async c => {
30 try {
31 console.log('🔧 Starting manual seed...');
126
127// Test endpoint to check table name
128app.get("/api/test-table", async c => {
129 try {
130 const { TABLE_NAME } = await import("./database/migrations.ts");

untitled-9921migrations.ts2 matches

@DevGokuUpdated 1 week ago
377 {
378 name: 'Resemble AI',
379 description: 'Real-time voice cloning and speech synthesis API',
380 category: 'audio-ai',
381 url: 'https://resemble.ai',
382 tags: JSON.stringify(['voice-cloning', 'api', 'real-time']),
383 pricing: 'paid',
384 featured: false,

untitled-9921App.tsx1 match

@DevGokuUpdated 1 week ago
50 if (filters?.featured) params.append('featured', 'true');
51
52 const response = await fetch(`/api/tools/search?${params}`);
53 const data = await response.json();
54

ai_comments_to_tasksindex.html2 matches

@arthrodUpdated 1 week ago
7 <script src="https://cdn.twind.style" crossorigin></script>
8 <script src="https://esm.town/v/std/catch"></script>
9 <link rel="preconnect" href="https://fonts.googleapis.com">
10 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
11 <link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@300;400;500;600&display=swap" rel="stylesheet">
12 <style>
13 :root {

amaama.tsx1 match

@nbbaierUpdated 1 week ago
81 </time>
82 <open-heart
83 href={`https://api.oh.dddddddddzzzz.org/github.com/dddddddddzzzz/${question.id}`}
84 emoji="❤️"
85 >

ciphersubstitutionCipher.ts2 matches

@baoUpdated 1 week ago
20 if (originalLetter === substitutedLetter) {
21 // Swap with another letter
22 const swapIndex = (i + 1) % alphabet.length;
23 [shuffledAlphabet[i], shuffledAlphabet[swapIndex]] = [shuffledAlphabet[swapIndex], shuffledAlphabet[i]];
24 }
25

xpoweruseUser.tsx1 match

@JosmountUpdated 1 week ago
1import { useState, useEffect } from "react";
2
3const USER_ENDPOINT = "/api/user";
4
5export function useUser() {

xpoweruser-summary.ts1 match

@JosmountUpdated 1 week ago
20 SUM(num_images) as total_images
21 FROM ${USAGE_TABLE}
22 WHERE our_api_token = 1
23 GROUP BY user_id, username
24 ORDER BY total_price DESC

xpoweruseProject.tsx2 matches

@JosmountUpdated 1 week ago
1import { useState, useEffect } from "react";
2
3const PROJECT_ENDPOINT = "/api/project";
4const FILES_ENDPOINT = "/api/project-files";
5
6export function useProject(projectId: string, branchId?: string) {

researchAgent2 file matches

@thesephistUpdated 17 hours ago
This is a lightweight wrapper around Perplexity's web search API

memoryApiExample2 file matches

@ingenierotitoUpdated 18 hours ago
snartapi
vapicxy