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/$%7Bart_info.art.src%7D?q=api&page=929&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 12718 results for "api"(2548ms)

SocialMediaDashboardV1main.tsx1 match

@shawnbasquiatUpdated 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

@roadlabsUpdated 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

@shawnbasquiatUpdated 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 }
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

@yawnxyzUpdated 8 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

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

sqlitemain.tsx4 matches

@nkohariUpdated 8 months ago
1import { API_URL } from "https://esm.town/v/std/API_URL";
2import { LibsqlError, type ResultSet, type Row, type TransactionMode } from "npm:@libsql/client";
3import { z } from "npm:zod";
35
36async function execute(statement: InStatement, args?: InArgs): Promise<ResultSet> {
37 const res = await fetch(`${API_URL}/v1/sqlite/execute`, {
38 method: "POST",
39 headers: {
50
51async function batch(statements: InStatement[], mode?: TransactionMode): Promise<ResultSet[]> {
52 const res = await fetch(`${API_URL}/v1/sqlite/batch`, {
53 method: "POST",
54 headers: {
78
79/* Val Town's Turso Proxy returns rows as an array of values
80 * Yet the LibSQL API has a Row type which behave as an array or object,
81 * ie you can access it via numerical index or string
82 */

genimagemain.tsx1 match

@motyarUpdated 8 months ago
1// This program creates an image generation service using the maxm-imggenurl API.
2// It provides a simple HTML interface for users to enter a prompt and generate an image.
3// The generated images are displayed in a grid, and clicking on an image shows a popup with the image and prompt.

stagingdailyschedulemain.tsx3 matches

@keenanzuckerUpdated 8 months ago
10 const tomorrow = addDays(today, 1);
11 const data = await fetch(
12 `https://api.stage.teamsurfboard.com/api/v1/schedule?start=${today.toISOString()}&end=${tomorrow.toISOString()}`,
13 {
14 headers: {
15 // ADD YOUR API TOKEN INTO THE ENV VARIABLES
16 "Authorization": `Bearer ${Deno.env.get("TEAMSURFBOARD_API_TOKEN")}`,
17 },
18 },

concentricCirclesAppmain.tsx2 matches

@kazUpdated 8 months ago
197 <head>
198 <title>Know Your Boundaries</title>
199 <link rel="preconnect" href="https://fonts.googleapis.com">
200 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
201 <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
202 <meta name="viewport" content="width=device-width, initial-scale=1.0">
203 <style>${css}</style>

vapi-minutes-db1 file match

@henrywilliamsUpdated 17 hours ago

vapi-minutes-db2 file matches

@henrywilliamsUpdated 19 hours 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