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/$%7Bsuccess?q=api&page=1574&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 21430 results for "api"(4797ms)

OpenTowniesystem_prompt.txt2 matches

@shouser•Updated 5 months ago
26 * DO NOT use the alert(), prompt(), or confirm() methods.
27
28 * If the user's app needs weather data, use open-meteo unless otherwise specified because it doesn't require any API keys.
29
30 * Tastefully add a view source link back to the user's val if there's a natural spot for it. Generate the val source url via `import.meta.url.replace("esm.town", "val.town")`. This link element should include a target="_top" attribute.
38 Val Town's client-side catch script automatically catches client-side errors to aid in debugging.
39
40 * Don't use any environment variables unless strictly necessary. For example use APIs that don't require a key.
41 If you need environment variables use `Deno.env.get('keyname')`
42

gemini_coderREADME.md2 matches

@Sagarsah•Updated 5 months ago
6
71. Sign up for [Cerebras](https://cloud.cerebras.ai/)
82. Get a Cerebras API Key
93. Save it in a [Val Town environment variable](https://www.val.town/settings/environment-variables) called `CEREBRAS_API_KEY`
10
11# Todos

gemini_codermain.tsx3 matches

@Sagarsah•Updated 5 months ago
211 } catch (error) {
212 Toastify({
213 text: "We may have hit our usage limits. Try again later or fork this and use your own API key.",
214 position: "center",
215 duration: 3000,
1093 <meta name="viewport" content="width=device-width, initial-scale=1.0">
1094 <title>Gemini Coder</title>
1095 <link rel="preconnect" href="https://fonts.googleapis.com" />
1096 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1097 <link
1098 href="https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap"
1099 rel="stylesheet"
1100 />

surprisingEmbeddingsembeddingGetter1 match

@tmcw•Updated 5 months ago
4// Create login schema with email and password
5const inputSchema = v.pipe(v.array(v.pipe(v.string(), v.minLength(1), v.maxLength(32))), v.maxLength(4))
6const client = new VoyageAIClient({ apiKey: Deno.env.get("VOYAGE_API_TOKEN") })
7
8let working = false

generateBackendSchemamain.tsx1 match

@toowired•Updated 5 months ago
51 });
52 } catch (error) {
53 console.error("Error calling OpenAI API:", error);
54 return new Response("Error generating schema. Please try again later.", { status: 500, headers });
55 }

boldEmeraldWildebeestmain.tsx1 match

@gigmx•Updated 5 months ago
87 const connectWebSocket = useCallback(() => {
88 try {
89 ws.current = new WebSocket("wss://pumpportal.fun/api/data");
90
91 ws.current.onopen = () => {

creativeTomatoSailfishmain.tsx1 match

@all•Updated 5 months ago
162
163const css = `
164@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Playfair+Display:wght@600&display=swap');
165
166:root {

cancelledStripeSubscribermain.tsx1 match

@charmaine•Updated 5 months ago
8
9const stripe = new Stripe(Deno.env.get("stripe_sk_customer_readonly") as string, {
10 apiVersion: "2020-08-27",
11});
12

quickIndigoBobolinkmain.tsx1 match

@charmaine•Updated 5 months ago
8
9const stripe = new Stripe(Deno.env.get("stripe_sk_customer_readonly") as string, {
10 apiVersion: "2020-08-27",
11});
12

insightfulBrownAntmain.tsx1 match

@charmaine•Updated 5 months ago
8
9const stripe = new Stripe(Deno.env.get("stripe_sk_customer_readonly") as string, {
10 apiVersion: "2020-08-27",
11});
12

custom-domains-val-api

@nbbaier•Updated 5 hours ago

custom-domains-val-api

@stevekrouse•Updated 6 hours ago
fiberplane
Purveyors of Hono tooling, API Playground enthusiasts, and creators of 🪿 HONC 🪿 (https://honc.dev)
api