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/$%7Bart_info.art.src%7D?q=function&page=1728&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 17969 results for "function"(1834ms)

githubStarsRSSmain.tsx1 match

@joshmockUpdated 1 year ago
2import { githubStars } from "https://esm.town/v/joshmock/githubStars";
3
4export async function githubStarsRSS(username) {
5 let data = await githubStars(username);
6 return await dataToRSS(data, {

myApimain.tsx1 match

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

hellomain.tsx1 match

@rootUpdated 1 year ago
1export function hello(name) {
2 // return "wow~ your are 叼毛 open 了 Pandora" ;
3 return { message: "wow~ your are 叼毛 open 了 Pandora" };

getMcgillEventsmain.tsx1 match

@ehodgesUpdated 1 year ago
2import { newRSSItems } from "https://esm.town/v/stevekrouse/newRSSItems?v=6";
3
4export async function getMcgillEvents() {
5 const url =
6 "https://www.alumni.mcgill.ca/aoc/events-travel/registration/regwizEventsList.php?location=050%3AMA&school=&dateMonth=&title=&doSearch=1";

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

openapi2TSmain.tsx1 match

@pomdtrUpdated 1 year ago
2import { prettifyTS } from "https://esm.town/v/pomdtr/prettifyTS";
3
4export async function openapi2TS(url: string) {
5 const yaml = await import("npm:yaml");
6 const resp = await fetch(url);

convertStringmain.tsx1 match

@pomdtrUpdated 1 year ago
1export function convertString(string) {
2 // Convert uppercase letters to lowercase
3 let convertedString = string.toLowerCase();

pocketmain.tsx1 match

@ericUpdated 1 year ago
1export function pocket() {
2 return {
3 get greeting() { return 'hi there' }

getFileEmail4 file matches

@shouserUpdated 1 week ago
A helper function to build a file's email
tuna

tuna8 file matches

@jxnblkUpdated 1 week ago
Simple functional CSS library for Val Town
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
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": "*",