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/$%7Bart_info.art.src%7D?q=function&page=1782&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 18081 results for "function"(1512ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

tmain.tsx1 match

@tmcw•Updated 1 year ago
1import { h } from "https://esm.town/v/tmcw/h";
2
3export function t(tag: string, args: any = {}, children: any[] = []) {
4 const func = (...argsOrChildren: any) => {
5 if (Array.isArray(argsOrChildren[0]))

big_story_visualizationmain.tsx1 match

@tmcw•Updated 1 year ago
47
48
49 function render() {
50 const width = window.innerWidth;
51 const output = Plot.plot({

cloudmailinmain.tsx1 match

@stevekrouse•Updated 1 year ago
1export function cloudmailin(req, res) {}

devNullmain.tsx1 match

@stevekrouse•Updated 1 year ago
1export function devNull(...args: any[]) {
2 return null;
3}

testEmailmain.tsx1 match

@stevekrouse•Updated 1 year ago
2import { testEmails } from "https://esm.town/v/stevekrouse/testEmails";
3
4export function testEmail(e: {
5 from: string;
6 to: string[];

rssDemo1main.tsx1 match

@stevekrouse•Updated 1 year ago
3import { newRSSItems } from "https://esm.town/v/stevekrouse/newRSSItems";
4
5export async function rssDemo1(interval) {
6 const items = await newRSSItems({
7 url: inkAndSwitchRssUrl,

rssDemo10main.tsx1 match

@stevekrouse•Updated 1 year ago
3import { newRSSItems } from "https://esm.town/v/stevekrouse/newRSSItems";
4
5export async function rssDemo10(interval) {
6 let items = await newRSSItems({
7 url: inkAndSwitchRssUrl,

evalmain.tsx1 match

@eval•Updated 1 year ago
1export function eval(num) {
2 if (num < 0) return -1;
3 else if (num == 0) return 1;

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