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/$%7Burl%7D?q=api&page=1387&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 17539 results for "api"(4201ms)

imagesToPDFmain.tsx1 match

@g•Updated 8 months ago
6 * 2. Use JavaScript to handle file selection and PDF generation
7 * 3. Utilize the jsPDF library for PDF creation
8 * 4. Use the FileReader API to read image files
9 *
10 * The application will not modify or convert the images, and each PDF page

bedtimeStoryMakermain.tsx1 match

@dthyresson•Updated 8 months ago
1/** @jsxImportSource npm:hono@3/jsx */
2import { Unkey } from "npm:@unkey/api@0.26.1";
3import { Ratelimit } from "npm:@unkey/ratelimit@0.4.4";
4import type { Duration } from "npm:@unkey/ratelimit@0.4.4";

generativeFillmain.tsx1 match

@jeffreyyoung•Updated 8 months ago
3
4const replicate = new Replicate({
5 auth: Deno.env.get("REPLICATE_API_KEY"),
6});
7//

sqliteExplorerAppREADME.md1 match

@flymaster•Updated 8 months ago
13## Authentication
14
15Login to your SQLite Explorer with [password authentication](https://www.val.town/v/pomdtr/password_auth) with your [Val Town API Token](https://www.val.town/settings/api) as the password.
16
17## Todos / Plans

sqliteExplorerAppmain.tsx2 matches

@flymaster•Updated 8 months ago
27 <head>
28 <title>SQLite Explorer</title>
29 <link rel="preconnect" href="https://fonts.googleapis.com" />
30
31 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
32 <link
33 href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap"
34 rel="stylesheet"
35 />

terribleTanCatmain.tsx2 matches

@kamillydka•Updated 8 months ago
30type Test<T extends string = TwoLettersString> = T;
31
32type CapitalizeTwoLetterString<T extends string, U extends string = TwoLettersString> = T extends U ? Capitalize<T>
33 : never;
34
35type fullName = `${CapitalizeTwoLetterString<"a">} ${CapitalizeTwoLetterString<"df", TwoLettersString>}`;
36
37const fn: never = "1" as undefined as never;

moderateRoseReptilemain.tsx2 matches

@kamillydka•Updated 8 months ago
28type TwoLettersString = `${alfabet}${alfabet}`;
29
30type CapitalizeTwoLetterString<T extends string, U extends TwoLettersString> = T extends U ? Capitalize<T> : never;
31
32type fullName = `${CapitalizeTwoLetterString<"as", TwoLettersString>} ${CapitalizeTwoLetterString<
33 "df",
34 TwoLettersString

fork_Katemain.tsx2 matches

@hideokun•Updated 8 months ago
30type Test<T extends string = TwoLettersString> = T;
31
32type CapitalizeTwoLetterString<T extends string, U extends string = TwoLettersString> = T extends U ? Capitalize<T>
33 : never;
34
35type fullName = `${CapitalizeTwoLetterString<"a">} ${CapitalizeTwoLetterString<"df", TwoLettersString>}`;
36
37const fn: never = "1" as undefined as never;

moderateRoseReptilemain.tsx2 matches

@katarzynam1405•Updated 8 months ago
28type TwoLettersString = `${alfabet}${alfabet}`;
29
30type CapitalizeTwoLetterString<T extends string, U extends TwoLettersString> = T extends U ? Capitalize<T> : never;
31
32type fullName = `${CapitalizeTwoLetterString<"as", TwoLettersString>} ${CapitalizeTwoLetterString<
33 "df",
34 TwoLettersString

ghdbmain.tsx15 matches

@begoon•Updated 8 months ago
22};
23
24const GH = `https://api.github.com/repos`;
25const GH_STORAGE = "https://raw.githubusercontent.com";
26
27const now = () => new Date().toISOString().replace("T", " ").replace("Z", "");
28
29export class GitHubAPI {
30 #token: string | undefined;
31 #contents: string;
180}
181
182const GHDB_API_KEY = env.GHDB_API_KEY;
183if (!GHDB_API_KEY) throw new Error("GHDB_API_KEY is not defined");
184
185const gh = new GitHubAPI();
186
187const application = new Hono();
190
191application.get("/data/:path{.+$}", async (c) => {
192 const headers = c.req.header("GHDB_API_KEY");
193 if (headers !== GHDB_API_KEY) throw new HTTPException(403, { message: "forbidden" });
194
195 const path = c.req.param("path");
207
208application.get("/raw/:path{.+$}", async (c) => {
209 const headers = c.req.header("GHDB_API_KEY");
210 if (headers !== GHDB_API_KEY) throw new HTTPException(403, { message: "forbidden" });
211
212 const path = c.req.param("path");
223
224application.delete("/data/:path{.+$}", async (c) => {
225 const headers = c.req.header("GHDB_API_KEY");
226 if (headers !== GHDB_API_KEY) throw new HTTPException(403, { message: "forbidden" });
227
228 const path = c.req.param("path");
236
237application.post("/data/:path{.+$}", async (c) => {
238 const headers = c.req.header("GHDB_API_KEY");
239 if (headers !== GHDB_API_KEY) throw new HTTPException(403, { message: "forbidden" });
240
241 const path = c.req.param("path");
250
251application.put("/data/:path{.+$}", async (c) => {
252 const headers = c.req.header("GHDB_API_KEY");
253 if (headers !== GHDB_API_KEY) throw new HTTPException(403, { message: "forbidden" });
254
255 const path = c.req.param("path");

RandomQuoteAPI

@Freelzy•Updated 18 hours ago

HAPI7 file matches

@dIgitalfulus•Updated 1 day ago
Kapil01
apiv1