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=1461&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 17039 results for "api"(1729ms)

receiveEmailAndConvertToPDFmain.tsx4 matches

@tmcw•Updated 1 year ago
3
4/**
5 * This requires a free API token from browserless.io saved in your
6 * Env Variables as BROWSERLESS_API_KEY
7 */
8let sendPDF = async (subject, html) => {
9 const browserlessApi = Deno.env.get("BROWSERLESS_API_KEY");
10 const browser = await puppeteer.connect({
11 browserWSEndpoint: `wss://chrome.browserless.io?token=${browserlessApi}`,
12 });
13 const page = await browser.newPage();

svdREADME.md2 matches

@fal•Updated 1 year ago
8const result = await fal.subscribe("fal-ai/fast-svd", {
9 input: {
10 image_url: "https://storage.googleapis.com/falserverless/model_tests/svd/rocket.png"
11 },
12 logs: true,
21https://www.fal.ai/models/svd/playground
22
23![rocket.png](https://storage.googleapis.com/isolate-dev-hot-rooster_toolkit_bucket/17fe5e9f9e424565bf2bc57ac1531779.gif?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=gke-service-account%40isolate-dev-hot-rooster.iam.gserviceaccount.com%2F20240206%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20240206T034357Z&X-Goog-Expires=604800&X-Goog-SignedHeaders=host&X-Goog-Signature=b523450235c7e16ae79259722e1ac086724cb20e9b94b5afef74919491551d778d4ed15d6fa74abeab816af98eb1a029be13dcc64023d83868ecabcefc362256ea5d07d160f202c4327771dccaac6eb4bc25ecdedf2c2d2b797265c08da3980a0f6a11c4536356fcc3630680148281bb4d6fc63dc93878b5fdb9912cdfa9953d0640b68f21eccd717cf0caf3b408c78d5963892e4e5f91e9bf044bc602017a4ddb0733d87d77ff047600526fe7ac82db38ed12685ddd4397c6b443b8e1e636c2dd2b986d7a938da891a5ca4fde338b52c350e2e02fc3ac6e54ef8386a4c7e859b1726a261ef12e145c787ce04013f2cc7b5a61416ff854cd79c7acf5494ec3d9)
24

creative_upscalerREADME.md3 matches

@fal•Updated 1 year ago
5### Usage
6```js
7const upscaledImage = @fal.creative_upscaler("an owl", "https://storage.googleapis.com/falserverless/model_tests/upscale/owl.png")
8```
9
15 input: {
16 prompt: "an owl",
17 image_url: "https://storage.googleapis.com/falserverless/model_tests/upscale/owl.png",
18 },
19 logs: true,
29https://www.fal.ai/models/creative-upscaler
30
31![owl.png](https://storage.googleapis.com/falserverless/gallery/owl_upscale.jpg)
32
33

sdxlREADME.md1 match

@fal•Updated 1 year ago
21```
22
23![cheetah.png](https://storage.googleapis.com/falserverless/gallery/fast-sdxl.jpeg)
24

untitled_redEarthwormmain.tsx2 matches

@tmcw•Updated 1 year ago
2
3export default async () => {
4 const browserlessApi = Deno.env.get("BROWSERLESS_API_KEY");
5 const browser = await puppeteer.connect({
6 browserWSEndpoint: `wss://chrome.browserless.io?token=${browserlessApi}`,
7 });
8 const page = await browser.newPage();

gitlabSitemapmain.tsx2 matches

@benni•Updated 1 year ago
10 const { sitemap } = await import("npm:xast-util-sitemap");
11 const { toXml } = await import("npm:xast-util-to-xml");
12 const api = new Gitlab({
13 host: "https://git.my-server.in",
14 token: process.env.gitlabToken,
15 });
16 const issues = await api.Issues.all({ projectId: req.query.project });
17 const tree = issues.map((i) => ({
18 url: i.web_url,

dbToAPImain.tsx2 matches

@nbbaier•Updated 1 year ago
1/** @jsxImportSource https://esm.sh/hono@3.9.2/jsx **/
2
3import { Homepage } from "https://esm.town/v/nbbaier/dbToAPIFrontend";
4import { checkResource, getResources, type Options, validate } from "https://esm.town/v/nbbaier/dbToApiHelpers";
5import { Hono } from "npm:hono";
6

free_open_routerREADME.md1 match

@taras•Updated 1 year ago
1```
2curl 'https://taras-free_open_router.web.val.run/api/v1/chat/completions' \
3 -H 'accept: application/json' \
4 -H 'authorization: Bearer THIS_IS_OVERRIDEN_ON_SERVER' \

getslackmain.tsx1 match

@curtcox•Updated 1 year ago
14 "redirect": req.redirect,
15 "searchParams": Object.fromEntries(searchParams.entries()),
16 "docs": "https://developer.mozilla.org/en-US/docs/Web/API/Request",
17 });
18};

get_weather_messagemain.tsx2 matches

@cosmo•Updated 1 year ago
2import { getCurrentWeather } from "https://esm.town/v/cosmo/get_current_weather";
3
4export async function getWeatherMessage(apiKey, latitude, longitude) {
5 const currentWeather = await getCurrentWeather(latitude, longitude),
6 { icon } = currentWeather,
27 { role: "user", content: JSON.stringify(weather) },
28 ],
29 chatResponse = await chat(apiKey, messages),
30 message = chatResponse.choices[0].message.content;
31

HAPI7 file matches

@dIgitalfulus•Updated 23 mins ago

HAPI-01

@dIgitalfulus•Updated 29 mins ago
Kapil01
apiv1