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/?q=api&page=226&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 12821 results for "api"(1890ms)

rotrankcharacters.ts3 matches

@dcm31Updated 2 weeks ago
50 },
51 {
52 "name": "Brr Brr Patapim",
53 "image_urls": [
54 "https://i.namu.wiki/i/7YoYRrE4zFdgRoaTvFzbY-rv7ELyxC83ePlyHc5RQulvgLVBCDe9ew5cSUxpEv3xlwFwwYRpkDYOfndIhbUwvw0ze3wrhLSUoh69lgRYPAwVZMH1L7Yj5NvEohsKaj8R4LjD_CuVnGa-duY0zutRpw.webp",
101 "name": "U Din Din Din Din Dun Ma Din Din Din Dun",
102 "image_urls": [
103 "https://i.namu.wiki/i/3DKk-5b7GavdmPJJzcp3n7QktZwPhhA4fEWs18GJKif8J8E4_l9ET_qSRRidUeFos0VTRWnPG4Vq1wHhbigKrRfxhxWfIo0Os84QjfzLvPd5i8x_yeZH8nJVyeXMR_TxeIXaPiwyCwpQ1fXY4_jp7w.webp",
104 "https://i.namu.wiki/i/SYFee6y61S8CA4aw8Ai8FWo14yJk-mxi6MsMmhte6hrqK12cjAz_3PMhBsNcUvDJC8rUCd0v4B6sW47Iq4ZUmxpF5t2QdnmnG4ieZOwKB9IELz502PHihBj63tYF57nmVdBNyS_7UeAhmBzmjQqSCA.webp",
105 ],
186 "name": "Chef Crabracadabra",
187 "image_urls": [
188 "https://i.namu.wiki/i/HKFo053Z6-f9GHTKSZp021rNoOn8DpBlCT7LkFv1_mY1BTxapIkWSUQJIzu-WC_yCuHz5Y6-9baK99P5fG7zC-nqJf5iF_t-WErxMAILl79C4QitHxTgMUNobhAGeUeNGp12wN2y3IjPf9NpjecTQw.webp",
189 ],
190 },

rotrankREADME.md1 match

@dcm31Updated 2 weeks ago
13- **Tung Tung Tung Sahur**: An anthropomorphic wooden figure wielding a baseball bat
14- **Lirilì Larilà**: A cactus elephant wandering the desert with flippers
15- **Brr Brr Patapim**: A fantastical creature, half baboon and half bush
16- **Chimpanzini Bananini**: A hybrid of a chimpanzee and a banana
17- **Bombombini Gusini**: A goose hybridized with a fighter jet

brainrot_image_genmain.tsx5 matches

@dcm31Updated 2 weeks ago
56 },
57 {
58 id: "brr-brr-patapim",
59 name: "Br Br Patapim",
60 description: "A fantastical creature, half baboon and half bush, with exaggerated features like big feet and a ham-shaped nose.",
61 prompt: "A surreal, low-poly 3D render of a bizarre creature that's half baboon, half bush or forest. It has a primate upper body emerging from or merged with plant elements, exaggerated big feet, and a comically large nose. Absurd Italian brainrot meme aesthetic.",
102 try {
103 const fal = createFalClient({
104 proxyUrl: "/api/fal/proxy",
105 });
106
324
325 // Handle FAL proxy requests
326 if (url.pathname === "/api/fal/proxy") {
327 return falProxyRequest(req);
328 }
338 <script src="https://cdn.tailwindcss.com"></script>
339 <style>
340 @import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');
341
342 body {

ItalianBrainRotGeneratormain.tsx4 matches

@dcm31Updated 2 weeks ago
35 try {
36 const fal = createFalClient({
37 proxyUrl: "/api/fal/proxy",
38 });
39
1371. Animal-object hybrids (like "Bombardiro Crocodilo" - a crocodile bomber plane)
1382. Animals with unusual footwear or clothing items
1393. Creatures with strange body part combinations (like "Brr Brr Patapim" - a monkey with a forest for a body)
1404. Technological-organic fusions (like "Hotspot Bro" - a skeleton with smartphone and Wi-Fi)
1415. Food-animal hybrids (like "Chimpanzini Bananini" - a banana-monkey hybrid)
241 }
242
243 if (url.pathname === "/api/fal/proxy") {
244 return falProxyRequest(req);
245 }
255 <title>Italian Brain Rot Character Generator</title>
256 <script src="https://cdn.tailwindcss.com"></script>
257 <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet">
258 <style>
259 body {

githubNotificationmain.tsx1 match

@stevekrouseUpdated 2 weeks ago
5 let events = (
6 await fetchJSON(
7 "https://api.github.com/users/worrydream/events",
8 ) || []
9 )?.filter((e) => new Date(e.created_at) > new Date(lastRunAt));

MyStevenspopulateDemo.ts1 match

@billogiovanniUpdated 2 weeks ago
7import "https://deno.land/std@0.224.0/dotenv/load.ts";
8
9console.log("THIS IS THE VALTOWN API: ${Deno.env.get("valtown")}")
10
11// Create the memories_demo table

reactHonoStarterindex.ts2 matches

@stfnsrUpdated 2 weeks ago
12app.get("/frontend/**/*", c => serveFile(c.req.path, import.meta.url));
13
14// Add your API routes here
15// app.get("/api/data", c => c.json({ hello: "world" }));
16
17// Unwrap and rethrow Hono errors as the original error

MyStevenssendDailyBrief.ts8 matches

@billogiovanniUpdated 2 weeks ago
97
98export async function sendDailyBriefing(chatId?: string, today?: DateTime) {
99 // Get API keys from environment
100 const apiKey = Deno.env.get("OPENAI_API_KEY");
101 const telegramToken = Deno.env.get("TELEGRAM_TOKEN");
102
106 }
107
108 if (!apiKey) {
109 console.error("openai API key is not configured.");
110 return;
111 }
122
123 // Initialize openai client
124 const openai = new OpenAI({ apiKey });
125
126 // Initialize Telegram bot
162
163 // disabled title for now, it seemes unnecessary...
164 // await bot.api.sendMessage(chatId, `*${title}*`, { parse_mode: "Markdown" });
165
166 // Then send the main content
169
170 if (content.length <= MAX_LENGTH) {
171 await bot.api.sendMessage(chatId, content, { parse_mode: "Markdown" });
172 // Store the briefing in chat history
173 await storeChatMessage(
198 // Send each chunk as a separate message and store in chat history
199 for (const chunk of chunks) {
200 await bot.api.sendMessage(chatId, chunk, { parse_mode: "Markdown" });
201 // Store each chunk in chat history
202 await storeChatMessage(

MyStevensREADME.md1 match

@billogiovanniUpdated 2 weeks ago
53You'll need to set up some environment variables to make it run.
54
55- `ANTHROPIC_API_KEY` for LLM calls
56- You'll need to follow [these instructions](https://docs.val.town/integrations/telegram/) to make a telegram bot, and set `TELEGRAM_TOKEN`. You'll also need to get a `TELEGRAM_CHAT_ID` in order to have the bot remember chat contents.
57- For the Google Calendar integration you'll need `GOOGLE_CALENDAR_ACCOUNT_ID` and `GOOGLE_CALENDAR_CALENDAR_ID`. See [these instuctions](https://www.val.town/v/stevekrouse/pipedream) for details.

myNewWebsiteindex.ts2 matches

@billogiovanniUpdated 2 weeks ago
12app.get("/frontend/**/*", c => serveFile(c.req.path, import.meta.url));
13
14// Add your API routes here
15// app.get("/api/data", c => c.json({ hello: "world" }));
16
17// Unwrap and rethrow Hono errors as the original error

vapi-minutes-db1 file match

@henrywilliamsUpdated 1 day ago

vapi-minutes-db2 file matches

@henrywilliamsUpdated 1 day ago
papimark21
socialdata
Affordable & reliable alternative to Twitter API: ➡️ Access user profiles, tweets, followers & timeline data in real-time ➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates ➡️ Simple integration