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=1759&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 18794 results for "function"(1691ms)

myApimain.tsx1 match

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

assertmain.tsx1 match

@jsejcksn•Updated 1 year ago
1import { AssertionError } from "https://esm.town/v/jsejcksn/AssertionError";
2
3export function assert(expr: unknown, msg?: string): asserts expr {
4 if (!expr) throw new AssertionError(msg);
5}

adcFeedmain.tsx1 match

@wilt•Updated 1 year ago
9the mp3 file.
10*/
11export async function adcFeed(req, res) {
12 const feedUrl = "http://adc.equalarea.com/feed/";
13 const feedXml = await fetchText(feedUrl);

getYoutubeLinkFromPageAPImain.tsx1 match

@wilt•Updated 1 year ago
1import { getYoutubeLinkFromPage } from "https://esm.town/v/wilt/getYoutubeLinkFromPage";
2
3export async function getYoutubeLinkFromPageAPI(req: Request) {
4 const url = new URL(req.url).searchParams.get("url");
5 if (!url || url === "undefined")

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

chatWithPdfRetrievermain.tsx1 match

@sdan•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function chatWithPdfRetriever(query: string, pdf_url: string) {
4 const loadUrl = "https://cardinal.tail8de85.ts.net/pdf/load";
5 const queryUrl = "https://cardinal.tail8de85.ts.net/pdf/query";

myApimain.tsx1 match

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

tl_hommain.tsx1 match

@ff5•Updated 1 year ago
1export function tl_hom(m: number, n: number, i0: string) {
2 const i: bigint = BigInt(i0);
3 const C = (() => {

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