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=1742&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 18128 results for "function"(2774ms)

twitterAPIDownAlertmain.tsx1 match

@stevekrouse•Updated 1 year ago
1import { twitterAPIDown } from "https://esm.town/v/stevekrouse/twitterAPIDown";
2
3export async function twitterAPIDownAlert() {
4 if (twitterAPIDown.down)
5 console.email(

runAllTestsmain.tsx1 match

@stevekrouse•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export async function runAllTests({
4 names,
5 api,

pollRSSFeedsmain.tsx1 match

@stevekrouse•Updated 1 year ago
3import { rssFeeds } from "https://esm.town/v/stevekrouse/rssFeeds";
4
5export async function pollRSSFeeds({ lastRunAt }: Interval) {
6 return Promise.all(
7 Object.entries(rssFeeds).map(async ([name, url]) => {

timemain.tsx1 match

@stevekrouse•Updated 1 year ago
1export async function time(f: Function): Promise<[
2 any,
3 number,

testSpeedInsightsmain.tsx1 match

@stevekrouse•Updated 1 year ago
1export function testSpeedInsights(req: express.Request, res) {
2 if (req.path === "/robots.txt") {
3 return res.send(`User-agent: *

untitled_return_me_secretmain.tsx1 match

@stevekrouse•Updated 1 year ago
1import process from "node:process";
2
3export function untitled_return_me_secret() {
4 return process.env.test;
5}

pingReplitmain.tsx1 match

@paperee•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function pingReplit() {
4 fetch("https://bed.paperee.repl.co/");
5 fetch("https://school-work.paperee.repl.co/");

myApimain.tsx1 match

@tangshengnan•Updated 1 year ago
1export function myApi(req, res) {
2 res.set("Content-Type", "application/json");
3 res.send([{ value: "wangtianbao", url: "https://www.967111.net" }]);

getrantcountermain.tsx1 match

@politelyinvinciblepointer•Updated 1 year ago
1import { rantcounter } from "https://esm.town/v/politelyinvinciblepointer/rantcounter";
2
3export function getrantcounter() {
4 return rantcounter;
5}
1let { johnnycashtodolistcounter } = await import("https://esm.town/v/politelyinvinciblepointer/johnnycashtodolistcounter");
2
3export function increasejohnnycashtodolistcounter() {
4 johnnycashtodolistcounter++;
5}

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": "*",