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=1775&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 18261 results for "function"(3209ms)

untitled_coffeeElkmain.tsx3 matches

@WilcoAJ•Updated 1 year ago
3export const untitled_coffeeElk = (async () => {
4 const { parseStringPromise } = await import("npm:xml2js");
5 function makeUrl(date: Date): string {
6 const dateString = date.toISOString().split("T")[0];
7 return `https://repository.overheid.nl/sru?query=dt.title="exploitatievergunning horecabedrijf" AND dt.title="Besluit (Nieuw)" AND dt.title="Nieuw" AND dt.creator=Amsterdam AND dt.modified=${dateString}&maximumRecords=100`;
8 }
9 async function doFetch(date: Date): any {
10 const url = makeUrl(date);
11 const fetchResponse = await fetch(url.toString());
16 return parseStringPromise(text);
17 }
18 function parseResponse(resp: any) {
19 // console.log(
20 // resp["sru:searchRetrieveResponse"]["sru:records"][0]["sru:record"],

myApimain.tsx1 match

@SlugeR•Updated 1 year ago
1export function myApi(count) {
2 return count + " dragons!";
3}

myApimain.tsx1 match

@lionad•Updated 1 year ago
1export function myApi(name) {
2 console.email("hi " + name);
3}

myApimain.tsx1 match

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

myApimain.tsx1 match

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

homemain.tsx1 match

@axelav•Updated 1 year ago
2import process from "node:process";
3
4export async function home(req: express.Request, res: express.Response) {
5 interface Artist {
6 name: string;

publicTimePlayedLeaderboardmain.tsx1 match

@tr3ntg•Updated 1 year ago
1import { timePlayedLeaderboardHTML } from "https://esm.town/v/tr3ntg/timePlayedLeaderboardHTML";
2
3export async function publicTimePlayedLeaderboard(
4 req: express.Request,
5 res: express.Response,

twittermain.tsx1 match

@andreterron•Updated 1 year ago
4import { twitterAuthHandler } from "https://esm.town/v/andreterron/twitterAuthHandler";
5
6export async function twitter(req: Request) {
7 // Constants
8 const username = "YOUR_VALTOWN_USERNAME";

getShorpyRSSmain.tsx1 match

@ryanbateman•Updated 1 year ago
3import { newRSSItems } from "https://esm.town/v/stevekrouse/newRSSItems?v=6";
4
5export async function getShorpyRSS() {
6 let items = await newRSSItems({
7 url: "https://feeds.feedburner.com/shorpy?q=rss.xml",

myApimain.tsx1 match

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

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