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/?q=function&page=1715&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 17292 results for "function"(1280ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

qq_svgmain.tsx1 match

@envl•Updated 1 year ago
2import { calc_qq_string } from "https://esm.town/v/envl/calc_qq_string";
3
4export async function qq_svg(req: Request) {
5 const url = new URL(req.url);
6 const [user, repo] = url.pathname.substring(1).split("/");

myApimain.tsx1 match

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

myApimain.tsx1 match

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

fetchRssmain.tsx1 match

@pdebie•Updated 1 year ago
2
3// This supports more RSS types than @stevekrouse.fetchRSS
4export async function fetchRss(url: string, lastRunDate?: string | number) {
5 let Parser = await import("npm:rss-parser");
6 let parser = new Parser.default();

myApimain.tsx1 match

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

expressApiTestmain.tsx2 matches

@z233•Updated 1 year ago
1export function expressApiTest(req: express.Request, res: express.Response) {
2 function listAllMembers(obj) {
3 const members = new Set();
4 let currentObject = obj;

bebopBotWebhookmain.tsx2 matches

@z233•Updated 1 year ago
6import { bebopBotSecretToken } from "https://esm.town/v/z233/bebopBotSecretToken";
7
8export async function bebopBotWebhook(
9 req: express.Request,
10 res: express.Response
87 );
88 res.send("ok");
89 function getMarkdownLink(text, url) {
90 return `[${text}](${url})`;
91 }

addmain.tsx1 match

@yuler•Updated 1 year ago
1export function add(a?: number, ...nums: number[]) {
2 return nums.reduce((a, b) => a + b, a) ?? a;
3}

getFileEmail4 file matches

@shouser•Updated 1 week ago
A helper function to build a file's email
tuna

tuna8 file matches

@jxnblk•Updated 1 week 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": "*",