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%22Image%20title%22?q=api&page=1390&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 17564 results for "api"(2846ms)

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");

ghdbREADME.md3 matches

@begoon•Updated 8 months ago
3The key is a file path within a repository. The value is the file content.
4
5The val needs a GitHub token to access the GitHub API, the account name
6and the repository name.
7
8Also, the val needs GHDB_API_KEY variable. This value defines the exptected
9value of the GHDB_API_KEY header to allow access to the endpoints.
10
11Endpoints:

design32x32bitmapmain.tsx1 match

@chekos•Updated 8 months ago
461 <meta name="viewport" content="width=device-width, initial-scale=1.0">
462 <title>1-Bit Bitmap Editor</title>
463 <link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
464 <style>${css}</style>
465 </head>

browserbasePuppeteerExamplemain.tsx1 match

@ryer•Updated 8 months ago
2
3const browser = await puppeteer.connect({
4 browserWSEndpoint: `wss://connect.browserbase.com?apiKey=${Deno.env.get("BROWSERBASE_API_KEY")}`,
5});
6

blob_adminREADME.md1 match

@ianvph•Updated 8 months ago
9[![](https://stevekrouse-button.express.val.run/Install)](https://www.val.town/v/stevekrouse/blob_admin_app/fork)
10
11It uses [basic authentication](https://www.val.town/v/pomdtr/basicAuth) with your [Val Town API Token](https://www.val.town/settings/api) as the password (leave the username field blank).
12
13# TODO

blob_adminREADME.md1 match

@aymeeko•Updated 8 months ago
9[![](https://stevekrouse-button.express.val.run/Install)](https://www.val.town/v/stevekrouse/blob_admin_app/fork)
10
11It uses [basic authentication](https://www.val.town/v/pomdtr/basicAuth) with your [Val Town API Token](https://www.val.town/settings/api) as the password (leave the username field blank).
12
13# TODO

RandomQuoteAPI

@Freelzy•Updated 19 hours ago

HAPI7 file matches

@dIgitalfulus•Updated 1 day ago
Kapil01
apiv1