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/$2?q=function&page=2371&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 24460 results for "function"(4296ms)

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}

raindropBookmarksToEmailmain.tsx1 match

@ramkarthik•Updated 1 year ago
4import { daysAgoFromToday } from "https://esm.town/v/ramkarthik/daysAgoFromToday";
5
6export async function raindropBookmarksToEmail(interval: Interval) {
7 let lastRunAt = interval.lastRunAt?.toISOString() ||
8 daysAgoFromToday(7);

hnFollowPollJobmain.tsx1 match

@zak•Updated 1 year ago
3import { hnLatestPosts } from "https://esm.town/v/stevekrouse/hnLatestPosts?v=18";
4
5export async function hnFollowPollJob(interval: Interval) {
6 let posts = await hnLatestPosts({
7 authors: hackerNewsAuthors,
1export function extractReiseauskunftDbStationCodeFromUrl(url) {
2 const inputValue = url?.split("input=")?.[1]?.split("&")?.[0];
3 const words = inputValue?.split("%");

myApimain.tsx1 match

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

myApimain.tsx1 match

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

REACT_DOM_CDN_VALmain.tsx1 match

@liamdanielduffy•Updated 1 year ago
1import { REACT_DOM_MINIFIED_FINAL } from "https://esm.town/v/liamdanielduffy/REACT_DOM_MINIFIED_FINAL";
2
3export function REACT_DOM_CDN_VAL(req, res) {
4 res.set("Content-Type", "text/javascript");
5 res.send(REACT_DOM_MINIFIED_FINAL);

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.