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/$1?q=function&page=2369&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 24446 results for "function"(1904ms)

myApimain.tsx1 match

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

stopDeparturesSingleCountdownmain.tsx1 match

@kognise•Updated 1 year ago
1import { stopDepartures } from "https://esm.town/v/kognise/stopDepartures";
2
3export async function stopDeparturesSingleCountdown(globalStopId: string) {
4 const res = await stopDepartures(globalStopId);
5 return res[0].itineraries[0].schedule_items.map((bus) => ({

feedbackmain.tsx1 match

@lawrencewu•Updated 1 year ago
1export function feedback(content) {
2 console.email("Feedback: " + content);
3 return "ok";

myApimain.tsx1 match

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

cV3main.tsx1 match

@vawogbemi•Updated 1 year ago
1export function cV3(name, image, address) {
2 return {
3 "name": name,

TodayForAnnalisamain.tsx1 match

@mttlws•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export async function TodayForAnnalisa(req: express.Request, res: express.Response) {
4 const { activity } = await fetchJSON(
5 "https://www.boredapi.com/api/activity",

updateInspoListmain.tsx1 match

@rodrigotello•Updated 1 year ago
3import { verifyAPIAuth } from "https://esm.town/v/stevekrouse/verifyAPIAuth?v=13";
4
5export async function updateInspoList(newList, auth) {
6 let handle = await verifyAPIAuth(auth);
7 if (isValTownTeam(handle)) {

pollRSSFeedsmain.tsx1 match

@yusuke•Updated 1 year ago
2import { rssFeeds } from "https://esm.town/v/yusuke/rssFeeds";
3
4export async function pollRSSFeeds({ lastRunAt }) {
5 return Object.entries(rssFeeds).map(async ([name, url]) => {
6 let items = await newRSSItems({

myApimain.tsx1 match

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

myApimain.tsx1 match

@connorads•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
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.