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=1741&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 18026 results for "function"(2573ms)

pollRSSFeedsmain.tsx1 match

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

myApimain.tsx1 match

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

arrayDiffmain.tsx1 match

@sprice•Updated 1 year ago
1export function arrayDiff(a, b) {
2 return a.filter((e) => !b.includes(e));
3}

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

webhookTestmain.tsx1 match

@markprobst•Updated 1 year ago
1import { decomposeGlideWebhookParams } from "https://esm.town/v/markprobst/decomposeGlideWebhookParams";
2
3export async function webhookTest(params) {
4 const [name, stock] = await decomposeGlideWebhookParams(
5 params,

hnFollowPollJobErrormain.tsx1 match

@stevekrouse•Updated 1 year ago
3import { hnLatestPosts } from "https://esm.town/v/stevekrouse/hnLatestPosts";
4
5export async function hnFollowPollJobError({ lastRunAt }: Interval) {
6 try {
7 let posts = await hnLatestPosts({

pollRSSFeedsmain.tsx1 match

@tmcw•Updated 1 year ago
1import { newRSSItems } from "https://esm.town/v/stevekrouse/newRSSItems?v=6";
2
3export async function pollRSSFeeds() {
4 return Object.entries({
5 mine: "https://macwright.com/rss.xml",

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 2 weeks 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": "*",