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/$1?q=api&page=1460&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 18048 results for "api"(1735ms)

pushFrontendmain.tsx1 match

@jrmann100•Updated 9 months ago
53 userVisibleOnly: true,
54 applicationServerKey: await (
55 await fetch("/vapidPublicKey")
56 ).text(),
57 }),

placeholderKittenImagesmain.tsx1 match

@shawnbasquiat•Updated 9 months ago
1// This val creates a publicly accessible kitten image generator using the Val Town image generation API.
2// It supports generating square images with a single dimension parameter or rectangular images with two dimension parameters.
3

resizeImageErrormain.tsx1 match

@shawnbasquiat•Updated 9 months ago
1// This val creates an image resizing service using the Cloudinary API.
2// It provides a form for users to input the image URL and size, and displays the resized image.
3

placeholderImagesmain.tsx1 match

@shawnbasquiat•Updated 9 months ago
1// This val creates a kitten image generator using the Val Town image generation API.
2// It supports generating square images with a single dimension parameter or rectangular images with two dimension parameters.
3

SocialMediaDashboardV1main.tsx1 match

@shawnbasquiat•Updated 9 months ago
1// This approach will create a Tinder-like swiping interface for profiles.
2// We'll use React for the frontend, and Val Town's SQLite for persistence.
3// The server will serve the initial HTML and handle API requests for fetching and updating profiles.
4
5/** @jsxImportSource https://esm.sh/react */

valledrawclientmain.tsx1 match

@roadlabs•Updated 9 months ago
28 <title>VALL-E-DRAW</title>
29 <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
30 <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@500;700&display=swap"/>
31 <link rel="stylesheet" href="https://esm.sh/tldraw@2.3.0/tldraw.css"/>
32 <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet" />

CoverLetterGeneratormain.tsx2 matches

@shawnbasquiat•Updated 9 months ago
138 });
139
140 console.log("OpenAI API call completed");
141 return completion.choices[0].message.content || "Unable to generate cover letter.";
142 } catch (error) {
143 console.error("Error in OpenAI API call:", error);
144 throw error;
145 }

fetchTwitterUserInfoBrokenmain.tsx1 match

@shawnbasquiat•Updated 9 months ago
1// This approach will use web scraping to fetch user information given a Twitter handle.
2// We'll fetch the public Twitter profile page and extract the required information.
3

aiSimpleGroqmain.tsx1 match

@yawnxyz•Updated 9 months ago
1import { ai } from "https://esm.town/v/yawnxyz/ai";
2// set Deno.env.get("GROQ_API_KEY")
3// console.log(await ai("tell me a joke in Spanish"))
4

longOliveGuppymain.tsx1 match

@sharanbabu•Updated 9 months ago
91
92 const client = new Cerebras.default({
93 apiKey: Deno.env.get('CEREBRAS_API_KEY'),
94 });
95

Apiify11 file matches

@wolf•Updated 8 hours ago

dailyQuoteAPI

@Souky•Updated 2 days ago
Kapil01
apiv1