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/$%7Burl%7D?q=function&page=1770&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 18628 results for "function"(5057ms)

traversemain.tsx1 match

@jdan•Updated 1 year ago
1import { markovChoice } from "https://esm.town/v/jdan/markovChoice";
2
3export function traverse(chain) {
4 let node = "START";
5 let result = [node];

traversePairwisemain.tsx1 match

@jdan•Updated 1 year ago
1import { markovChoice } from "https://esm.town/v/jdan/markovChoice";
2
3export function traversePairwise(chain) {
4 let node = "START";
5 let result = [];

myApimain.tsx1 match

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

gitHubReleaseTrackermain.tsx1 match

@ianvph•Updated 1 year ago
7import { parseXML } from "https://esm.town/v/stevekrouse/parseXML?v=1";
8
9export async function gitHubReleaseTracker() {
10 // gets newest release from github
11 const githubProject = "https://github.com/posthog/posthog";

myApimain.tsx1 match

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

jsonmain.tsx1 match

@u•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function json(url: string): Promise<any> {
4 return await (await fetch(url)).json();
5}

jsJamHTMLmain.tsx1 match

@stevekrouse•Updated 1 year ago
1import { jsJamMessages } from "https://esm.town/v/stevekrouse/jsJamMessages";
2
3export function jsJamHTML(req, res) {
4 res.send(`<h1>${JSON.stringify(jsJamMessages)}</h1>`);
5}

serverlessMatrixEchoBotmain.tsx1 match

@stevekrouse•Updated 1 year ago
1// https://stevekrouse-serverlessMatrixEchoBot.express.val.run/_matrix/push/v1/notify
2export async function serverlessMatrixEchoBot(req, res) {
3 res.send(req.path);
4}

visitMetabasemain.tsx1 match

@jlast•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export function visitMetabase() {
4 const url = "https://metabase.jlast.repl.co/";
5 return fetch(url).then((res) => {

redditAlertBackupmain.tsx1 match

@bnorick•Updated 1 year ago
2import { redditNotifierState } from "https://esm.town/v/bnorick/redditNotifierState";
3
4export async function redditAlertBackup({ lastRunAt }) {
5 let subreddit_matches = {};
6

getFileEmail4 file matches

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