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=function&page=2317&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=function

Returns an array of strings in format "username" or "username/projectName"

Found 24511 results for "function"(3811ms)

polygonEmailTickerSummarymain.tsx1 match

@rwev•Updated 1 year ago
3import { polygonTickerSummary } from "https://esm.town/v/rwev/polygonTickerSummary";
4
5export async function polygonEmailTickerSummary(ticker) {
6 const summary = await polygonTickerSummary(ticker);
7 const message = `${ticker} closed at ${

myApimain.tsx1 match

@cganoo•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@gugge•Updated 1 year ago
1export function myApi(name) {
2 return "Hello " + name;
3}

myApimain.tsx1 match

@amirmasoudabdol•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@charlesfrisbee•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myFoomain.tsx1 match

@sbecker•Updated 1 year ago
1import { myApi } from "https://esm.town/v/sbecker/myApi";
2
3export function myFoo(name) {
4 console.email("Testing email from val town " + name);
5 return "hello --- " + myApi("x") + " name: " + name;

runPostExamplemain.tsx1 match

@neverstew•Updated 1 year ago
4 username: "neverstew",
5 valName: "uppercase",
6 // pass each argument the function accepts as an item in this array
7 data: ["hello"],
8});

renderHtmmain.tsx1 match

@pomdtr•Updated 1 year ago
1export async function renderHtm(req: express.Request, res: express.Response) {
2 try {
3 const { default: htm } = await import("npm:htm");

alphaVantageSymbolQuerymain.tsx1 match

@sean•Updated 1 year ago
7}: {
8 apikey: string,
9 function:
10 | "TIME_SERIES_INTRADAY"
11 | "TIME_SERIES_INTRADAY_EXTENDED"

counterTestmain.tsx1 match

@ae_play•Updated 1 year ago
2import { setCounter } from "https://esm.town/v/ae_play/setCounter";
3
4export function counterTest() {
5 setCounter(c => c + 1);
6 console.log(counter);

getFileEmail4 file matches

@shouser•Updated 1 month ago
A helper function to build a file's email
tuna

tuna8 file matches

@jxnblk•Updated 1 month ago
Simple functional CSS library for Val Town
lost1991
import { OpenAI } from "https://esm.town/v/std/openai"; export default async function(req: Request): Promise<Response> { if (req.method === "OPTIONS") { return new Response(null, { headers: { "Access-Control-Allow-Origin": "*",
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.