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/$%7Bsuccess?q=function&page=2157&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 22227 results for "function"(2599ms)

myApimain.tsx1 match

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

refresher_fetchermain.tsx1 match

@u•Updated 1 year ago
4import { refreshData } from "https://esm.town/v/u/refreshData";
5
6export async function refresher_fetcher() {
7 for (const [name, time] of Object.entries(
8 refreshData as Record<string, number>

myApimain.tsx1 match

@johnfarrelldev•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}
1import { private_library_val } from "https://esm.town/v/stevekrouse/private_library_val";
2
3export function untitled_return_steverkrouse_val() {
4 return private_library_val;
5}

publicValGettermain.tsx1 match

@stevekrouse•Updated 1 year ago
1let { testMutableExample1 } = await import("https://esm.town/v/stevekrouse/testMutableExample1");
2
3export function publicValGetter() {
4 testMutableExample1++;
5 testMutableExample1++;

wikidatamain.tsx1 match

@stevekrouse•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export function wikidata(sparql: string) {
4 return fetchJSON(
5 "https://query.wikidata.org/sparql" + "?query=" +

discordChannelmain.tsx1 match

@stevekrouse•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export function discordChannel({ botToken, serverId }) {
4 return fetchJSON(
5 `https://discord.com/api/guilds/${serverId}/channels`,

getDayNamemain.tsx1 match

@stevekrouse•Updated 1 year ago
1export function getDayName(date?: Date) {
2 return (date ?? new Date()).toLocaleDateString("en-US", { weekday: "long" });
3}

formFeedbackAlertmain.tsx1 match

@stevekrouse•Updated 1 year ago
3import { docsFeedback } from "https://esm.town/v/stevekrouse/docsFeedback";
4
5export async function formFeedbackAlert(interval: Interval) {
6 let newFeedback = docsFeedback
7 .filter((f) => new Date(f.time) > interval.lastRunAt);

blemishmain.tsx1 match

@hankenstein•Updated 1 year ago
1export function blemish() {
2 return "where the good guys go";
3}

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.