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=2151&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 22849 results for "function"(1309ms)

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

hnFollowPollJobmain.tsx1 match

@sina•Updated 1 year ago
3import { hnLatestPosts } from "https://esm.town/v/stevekrouse/hnLatestPosts?v=18";
4
5export async function hnFollowPollJob({ lastRunAt }) {
6 let posts = await hnLatestPosts({
7 authors: hackerNewsAuthors,

myApimain.tsx1 match

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

myApimain.tsx1 match

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

sendTimemain.tsx1 match

@ning•Updated 1 year ago
1export async function sendTime() {
2 console.email(": nice to see you!");
3}

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.