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=2109&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 22013 results for "function"(2236ms)

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

myApimain.tsx1 match

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

ghOrgReposmain.tsx1 match

@augustohp•Updated 1 year ago
1export async function ghOrgRepos(
2 owner: string,
3 token: string,
1import { miraclechildcounter } from "https://esm.town/v/politelyinvinciblepointer/miraclechildcounter";
2
3export function getmiraclechildcounter() {
4 return miraclechildcounter;
5}

myApimain.tsx1 match

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

aqiNotifiermain.tsx1 match

@realog•Updated 1 year ago
2import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=3";
3
4export async function aqiNotifier(location) {
5 // The realtime Air Quality Index (AQI) for any location
6 const myAQI = await easyAQI({

getFileEmail4 file matches

@shouser•Updated 4 weeks 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.