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=89&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 12926 results for "api"(1725ms)

Blogscript.js14 matches

@DanchiUpdated 4 days ago
39 id: 1,
40 name: "John Doe",
41 avatar: "https://randomuser.me/api/portraits/men/32.jpg",
42 bio: "Full-stack developer with a passion for creating beautiful, functional websites."
43 },
51 id: 2,
52 name: "Jane Smith",
53 avatar: "https://randomuser.me/api/portraits/women/44.jpg"
54 },
55 text: "Great article! I especially liked the point about accessibility. It's often overlooked but so important.",
62 id: 3,
63 name: "Mike Johnson",
64 avatar: "https://randomuser.me/api/portraits/men/46.jpg"
65 },
66 text: "I would add that learning about web security is also crucial these days. Maybe that could be tip #11?",
111 id: 4,
112 name: "Sarah Williams",
113 avatar: "https://randomuser.me/api/portraits/women/64.jpg",
114 bio: "Travel writer and photographer with a love for exploring off-the-beaten-path destinations."
115 },
123 id: 5,
124 name: "David Chen",
125 avatar: "https://randomuser.me/api/portraits/men/22.jpg"
126 },
127 text: "I visited Sidemen Valley based on your recommendation and it was absolutely breathtaking! Thank you for sharing these hidden gems.",
164 <h2>Troubleshooting Common Issues</h2>
165 <h3>Flat Bread with No Oven Spring</h3>
166 <p>Possible causes: Overproofed dough, weak starter, insufficient tension during shaping.</p>
167 <h3>Dense, Gummy Crumb</h3>
168 <p>Possible causes: Underproofed dough, insufficient gluten development, underbaked bread.</p>
184 id: 6,
185 name: "Emily Johnson",
186 avatar: "https://randomuser.me/api/portraits/women/33.jpg",
187 bio: "Home baker, cookbook author, and instructor specializing in artisanal bread."
188 },
196 id: 7,
197 name: "Thomas Brown",
198 avatar: "https://randomuser.me/api/portraits/men/5.jpg"
199 },
200 text: "I've been struggling with getting good oven spring, but your troubleshooting section helped me identify the issue. My starter wasn't active enough!",
207 id: 8,
208 name: "Lisa Garcia",
209 avatar: "https://randomuser.me/api/portraits/women/8.jpg"
210 },
211 text: "Do you have any recommendations for whole wheat sourdough? I'd like to try a healthier version.",
218 id: 6,
219 name: "Emily Johnson",
220 avatar: "https://randomuser.me/api/portraits/women/33.jpg"
221 },
222 text: "@Lisa Garcia - Absolutely! Start by replacing 20% of the bread flour with whole wheat, and increase the water by about 5%. Whole wheat absorbs more water than white flour. You can gradually increase the whole wheat percentage as you get comfortable with the process.",
234 id: 1,
235 name: "John Doe",
236 avatar: "https://randomuser.me/api/portraits/men/32.jpg",
237 bio: "Full-stack developer with a passion for creating beautiful, functional websites.",
238 email: "john.doe@example.com",
250 id: 4,
251 name: "Sarah Williams",
252 avatar: "https://randomuser.me/api/portraits/women/64.jpg",
253 bio: "Travel writer and photographer with a love for exploring off-the-beaten-path destinations.",
254 email: "sarah.williams@example.com",
266 id: 6,
267 name: "Emily Johnson",
268 avatar: "https://randomuser.me/api/portraits/women/33.jpg",
269 bio: "Home baker, cookbook author, and instructor specializing in artisanal bread.",
270 email: "emily.johnson@example.com",
287 id: 9,
288 name: "Alex Morgan",
289 avatar: "https://randomuser.me/api/portraits/men/1.jpg",
290 bio: "Tech enthusiast and blogger. I love sharing my thoughts on the latest gadgets and innovations.",
291 email: "alex.morgan@example.com",

test-multiembedtest.tsx2 matches

@temptempUpdated 4 days ago
26 return encodeURIComponent(btoa(String.fromCharCode(...result)));
27}
28const API_URL: string = "https://api.val.town";
29export async function proxiedFetch(input: string | URL, requestInit?: RequestInit) {
30 let query = new URLSearchParams({
31 url: input.toString(),
32 });
33 return fetch(`${API_URL}/v1/fetch?${query}`, {
34 ...requestInit,
35 // // @ts-ignore
5import "npm:@atcute/bluesky";
6
7let handler = simpleFetchHandler({ service: "https://public.api.bsky.app" });
8let rpc = new Client({ handler });
9
53
54// let getPostsEndpoint = new URL(
55// `https://public.api.bsky.app/xrpc/app.bsky.feed.getPosts`,
56// );
57

steel_puppeteer_starterREADME.md3 matches

@danewUpdated 4 days ago
22
231. Click `Remix` on this val and open it
242. Get your free Steel API key at https://app.steel.dev/settings/api-keys
253. Add it to your projects "Environment variables" as `STEEL_API_KEY`
264. Click `Run`
27
72
73- [Steel Documentation](https://docs.steel.dev)
74- [API Reference](https://docs.steel.dev/api-reference)
75- [Discord Community](https://discord.gg/gPpvhNvc5R)

steel_puppeteer_startermain.tsx4 matches

@danewUpdated 4 days ago
6});
7
8const STEEL_API_KEY = process.env.STEEL_API_KEY;
9// Initialize Steel client with the API key from environment variables
10const client = new Steel({
11 steelAPIKey: STEEL_API_KEY,
12});
13
36 // Connect Puppeteer to the Steel session
37 browser = await puppeteer.connect({
38 browserWSEndpoint: `wss://connect.steel.dev?apiKey=${STEEL_API_KEY}&sessionId=${session.id}`,
39 });
40
41 advice: async () => {
42 console.log("handler.advice");
43 const res = await fetch("https://api.adviceslip.com/advice");
44 if (!res.ok) {
45 console.error("advice fetch failed", res.status);
64 trivia: async () => {
65 console.log("handler.trivia");
66 const res = await fetch("http://numbersapi.com/random/trivia?json");
67 if (!res.ok) {
68 console.error("trivia fetch failed", res.status);
74 compliment: async () => {
75 console.log("handler.compliment");
76 const res = await fetch("https://complimentr.com/api");
77 if (!res.ok) {
78 console.error("compliment fetch failed", res.status);

bradDemoindex.ts2 matches

@stevekrouseUpdated 4 days ago
21app.get("/frontend/**/*", c => serveFile(c.req.path, import.meta.url));
22
23// Add your API routes here
24// app.get("/api/data", c => c.json({ hello: "world" }));
25
26// Unwrap and rethrow Hono errors as the original error

PromptRequestorREADME.md3 matches

@prashamtrivediUpdated 4 days ago
21
22- **Frontend**: HTML/CSS/JavaScript with TailwindCSS for styling
23- **Backend**: TypeScript using Hono as the API framework
24- **Database**: SQLite for data storage
25- **AI Integration**: Google's Gemini 2.5 Pro model via PocketPick memory
58- `/`: Main user-facing form for submitting prompt requests
59- `/admin`: Admin panel for reviewing and processing requests
60- `/api/request`: API endpoint for submitting new requests
61- `/api/admin/requests`: API endpoint for fetching and managing requests
62
63## Flow

PromptRequestorindex.http.ts2 matches

@prashamtrivediUpdated 4 days ago
17// Mount routes
18app.route("/", staticRoutes);
19app.route("/api/request", requestRoutes);
20app.route("/api/admin", adminRoutes);
21
22export default {
1/**
2 * Admin panel API endpoints
3 */
4import { Hono } from "https://esm.sh/hono@3.12.0";

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