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=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 17515 results for "api"(8003ms)

openapi_playgroundREADME.md2 matches

@stainless_em•Updated 8 months ago
1# openapi playground
2temporarily host swagger and prism for your openapi spec

primeTurquoiseTernREADME.md1 match

@phyllislim•Updated 8 months ago
8
91. Click `Fork`
102. Change `location` (Line 4) to describe your location. It accepts fairly flexible English descriptions which it turns into locations via [nominatim's geocoder API](https://www.val.town/v/stevekrouse/nominatimSearch).
113. Click `Run`
12

aqiREADME.md1 match

@phyllislim•Updated 8 months ago
8
91. Click `Fork`
102. Change `location` (Line 4) to describe your location. It accepts fairly flexible English descriptions which it turns into locations via [nominatim's geocoder API](https://www.val.town/v/stevekrouse/nominatimSearch).
113. Click `Run`
12

passwordGenmain.tsx8 matches

@prashamtrivedi•Updated 8 months ago
8 const [policy, setPolicy] = useState({
9 minLength: 8,
10 requireCapital: true,
11 requireSpecial: true,
12 allowedSpecial: "!@#$%^&*()_+-=[]{}|;:,.<>?",
105 <input
106 type="checkbox"
107 id="requireCapital"
108 checked={policy.requireCapital}
109 onChange={(e) => setPolicy({ ...policy, requireCapital: e.target.checked })}
110 className="mr-2"
111 />
112 <label htmlFor="requireCapital">Require Capital Letter</label>
113 </div>
114 <div className="flex items-center">
176 <ul className="list-disc list-inside ml-4 space-y-1">
177 <li>Set the minimum password length</li>
178 <li>Choose whether to require a capital letter</li>
179 <li>Choose whether to require a special character</li>
180 <li>Specify allowed special characters</li>
295 });
296
297 // Ensure capital letter if required
298 if (policy.requireCapital && !/[A-Z]/.test(password)) {
299 const index = Math.floor(Math.random() * password.length);
300 password = password.slice(0, index) + password[index].toUpperCase() + password.slice(index + 1);

blob_adminREADME.md1 match

@test_account_001•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

rabbitstreammain.tsx1 match

@cool•Updated 8 months ago
16 const { provider, id } = c.req.param();
17 if (!["rabbit", "mega"].includes(provider)) {
18 return c.json({ error: "Invalid API request" }, 500);
19 }
20 // const cache = await blob.getJSON(id);

p5README.md1 match

@eyeseethru•Updated 8 months ago
37
38## How it works
39The sketch function returns an http handler that sets up a basic page with p5.js added. It then imports your module from the browser and wires up all the exports so p5.js can see them. All the code in your val will run in the browser (except for the default `sketch` export) so you can't call any Deno functions, environment variables, or other server side apis.
40

add_to_notion_w_aiREADME.md1 match

@eyeseethru•Updated 8 months ago
14Supports: checkbox, date, multi_select, number, rich_text, select, status, title, url, email
15
16- Uses `NOTION_API_KEY`, `OPENAI_API_KEY` stored in env variables and uses [Valtown blob storage](https://esm.town/v/std/blob) to store information about the database.
17- Use `get_notion_db_info` to use the stored blob if exists or create one, use `get_and_save_notion_db_info` to create a new blob (and replace an existing one if exists).

add_to_notion_w_aimain.tsx3 matches

@eyeseethru•Updated 8 months ago
6import { z } from "npm:zod";
7
8const NOTION_API_KEY = process.env.NOTION_API_KEY;
9const notion = new Client({
10 auth: NOTION_API_KEY,
11});
12
27
28const oai = new OpenAI({
29 apiKey: process.env.OPENAI_API_KEY ?? undefined,
30});
31

eagerIndigoPigREADME.md4 matches

@nickaggarwal•Updated 8 months ago
7## Getting Started
8To run Slack Scout, you’ll need a
9- Browserbase API key
10- Slack Webhook URL: setup [here](https://docs.val.town/integrations/slack/send-messages-to-slack/)
11- Twitter Developer API key
12
13### Browserbase
19### Twitter
20
21We’ve decided to use the Twitter API to include Twitter post results. It costs $100 / month to have a Basic Twitter Developer account. _If you decide to use Browserbase, we can lend our token. Comment below for access._
22
23Once you have the `SLACK_WEBHOOK_URL`, `BROWSERBASE_API_KEY`, and `TWITTER_BEARER_TOKEN`, input all of these as [Val Town Environment Variables](https://www.val.town/settings/environment-variables).
24
25---

RandomQuoteAPI

@Freelzy•Updated 17 hours ago

HAPI7 file matches

@dIgitalfulus•Updated 23 hours ago
Kapil01
apiv1