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/?q=api&page=636&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 12041 results for "api"(1396ms)

notion2wallabagmain.tsx1 match

@michaelfromyegUpdated 3 months ago
100
101async function saveToWallabag(url: string, token: string, config: any) {
102 const response = await fetch(`${config.WALLABAG_URL}/api/entries.json`, {
103 method: "POST",
104 headers: {

groq_codermain.tsx5 matches

@facundopriUpdated 3 months ago
212 } catch (error) {
213 Toastify({
214 text: "We may have hit our Cerebras Usage limits. Try again later or fork this and use your own API key.",
215 position: "center",
216 duration: 3000,
1024 };
1025 } else {
1026 const client = new Cerebras({ apiKey: Deno.env.get("GROQ_API_KEY") });
1027 const completion = await client.chat.completions.create({
1028 messages: [
1149 <meta name="viewport" content="width=device-width, initial-scale=1.0">
1150 <title>CerebrasCoder</title>
1151 <link rel="preconnect" href="https://fonts.googleapis.com" />
1152 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1153 <link
1154 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"
1155 rel="stylesheet"
1156 />
1165 <meta property="og:description" content="Turn your ideas into fully functional apps in less than a second – powered by Llama3.3-70b on Cerebras's super-fast wafer chips. Code is 100% open-source, hosted on Val Town."">
1166 <meta property="og:type" content="website">
1167 <meta property="og:image" content="https://stevekrouse-blob_admin.web.val.run/api/public/CerebrasCoderOG.jpg">
1168
1169

resettableQuotaTrackerREADME.md1 match

@rozekUpdated 3 months ago
45```
46
47## API Reference ##
48
49* `static async new (TableName:string, Limit:number=10):resettableQuotaTracker`<br>creates a new `resettableQuotaTracker` instance for the table `TableName` (which must match the RegEx pattern `/^[a-z_][0-9a-z_]+$/i`). If this table does not exist yet, it will be created automatically, with `Limit` set as the quota (`Limit` is optional and is only needed when the table is created).

groq_coderREADME.md2 matches

@facundopriUpdated 3 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`

sqlitemain.tsx4 matches

@stevekrouseUpdated 3 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: {
53 throw new Error("Invalid transaction mode provided to sqlite.batch. Must be 'write', 'read', or 'deferred.");
54 }
55 const res = await fetch(`${API_URL}/v1/sqlite/batch`, {
56 method: "POST",
57 headers: {
81
82/* Val Town's Turso Proxy returns rows as an array of values
83 * Yet the LibSQL API has a Row type which behave as an array or object,
84 * ie you can access it via numerical index or string
85 */

compactBlushGrasshoppermain.tsx4 matches

@tempdevUpdated 3 months ago
8 dataHash: string | null;
9}
10interface APIResponse {
11 name: string | null;
12 image: string | null;
131 }));
132
133 const apiResponse: APIResponse[] = [];
134 for (const item of prosrcrcp) {
135 console.log(item);
137 switch (item.data.substring(0, 8)) {
138 case "/rcp/":
139 apiResponse.push({
140 name: title,
141 image: item.metadata.image,
147 }
148 }
149 return apiResponse;
150}
151export default tmdbScrape;

ssbmain.tsx1 match

@starcoinsUpdated 3 months ago
197 <title>Yeh To Hoga Gameshow</title>
198 <meta name="viewport" content="width=device-width, initial-scale=1">
199 <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&display=swap" rel="stylesheet">
200 <style>${css}</style>
201 </head>

twitterAlertREADME.md5 matches

@ExartonUpdated 3 months ago
14and the `excludes` for what you don't want to get notified for.
15
16You can use [Twitter's search operators](https://developer.twitter.com/en/docs/twitter-api/v1/rules-and-filtering/search-operators) to customize your query, for some collection of keywords, filtering out others, and much more!
17
18## 2. Notification
22## Twitter Data & Limitations
23
24The Twitter API has become unusable. This val gets Twitter data via [SocialData](https://socialdata.tools),
25an affordable Twitter scraping API. In order to make this val easy for
26you to fork & use without signing up for another API, I am proxying
27SocialData via @stevekrouse/socialDataProxy. Val Town Pro users can call this proxy
28100 times per day, so be sure not to set this cron to run more than once every 15 min.
29
30If you want to run it more, get your own [SocialData](https://socialdata.tools)
31API token and pay for it directly.

remasterbackendmain.tsx2 matches

@tempdevUpdated 3 months ago
46 extractedURL: "",
47 accessHeaders: {
48 Referer: `https://rapidplayers.com/e/${id}`,
49 },
50 fromCache: false,
53 storyboard: [],
54 };
55 const baseUrl = "https://rapidplayers.com";
56 const embed = await Fetcher(`${baseUrl}/e/${id}`, baseUrl);
57 const pr = /p}\('(.*?)',(\d+),(\d+),'(.*?)'\.split/gm;

primewireUtilsmain.tsx2 matches

@tempdevUpdated 3 months ago
3import { getLinks } from "https://esm.town/v/tempdev/blue";
4import {
5 primewireApiKey,
6 primewireBase,
7} from "https://raw.githubusercontent.com/Ciarands/mw-providers/dev/src/providers/sources/primewire/common.ts";
8
9async function search(imdbId: string) {
10 const searchResult = await fetch(`${primewireBase}/api/v1/show?key=${primewireApiKey}&imdb_id=${imdbId}`);
11 return await searchResult.json().then((searchResult) => {
12 return searchResult.id;

social_data_api_project3 file matches

@tsuchi_yaUpdated 17 hours ago

simple-scrabble-api1 file match

@bryUpdated 4 days 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