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%20%22Optional%20title%22?q=api&page=984&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 13275 results for "api"(1130ms)

dailyDadJokeREADME.md2 matches

@hobbs•Updated 8 months ago
113. 🤣🤣🤣🤣
12
13## API
14
15This val uses the [icanhazdadjoke API](https://icanhazdadjoke.com/api). You can find [more docs here](https://github.com/15Dkatz/official_joke_api), such as how to [filter by type](https://github.com/15Dkatz/official_joke_api?tab=readme-ov-file#grab-jokes-by-type).

dailyDadJokemain.tsx1 match

@hobbs•Updated 8 months ago
3
4export async function dailyDadJoke() {
5 let { setup, punchline } = await fetchJSON("https://official-joke-api.appspot.com/random_joke");
6 return email({
7 text: punchline,

pushFrontendmain.tsx1 match

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

placeholderKittenImagesmain.tsx1 match

@shawnbasquiat•Updated 8 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 8 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 8 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 8 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 8 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 8 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 8 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

vapi-minutes-db1 file match

@henrywilliams•Updated 3 days ago

vapi-minutes-db2 file matches

@henrywilliams•Updated 3 days ago
snartapi
Kapil01