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=1764&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 18191 results for "function"(3402ms)

nearbyJonBomain.tsx1 match

@jonbo•Updated 1 year ago
43${
44 raw(`
45 function fetchTest() {
46 console.log("hi");
47

SignatureCheckmain.tsx1 match

@karfau•Updated 1 year ago
1export function SignatureCheck(
2 onInvalid: (reason: string) => void = console.error,
3) {

testmain.tsx1 match

@abc3354•Updated 1 year ago
1export const test = function () {
2 console.info("Hello world");
3};

myApimain.tsx1 match

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

myApimain.tsx1 match

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

pollRSSFeedsmain.tsx1 match

@e1k•Updated 1 year ago
2import { rssFeeds } from "https://esm.town/v/e1k/rssFeeds";
3
4export async function pollRSSFeeds({ lastRunAt }) {
5 return Object.entries(rssFeeds).map(async ([name, url]) => {
6 let items = await newRSSItems({

tanaCalculatormain.tsx1 match

@eagle251•Updated 1 year ago
1import { calculator as calculator2 } from "https://esm.town/v/eagle251/calculator";
2
3export async function tanaCalculator(res, req) {
4 let operation = `${req.query.operation}`;
5 let number1 = `${req.query.number1}`;

myApimain.tsx1 match

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

untitled7953808main.tsx1 match

@mxderouet•Updated 1 year ago
1export let untitled7953808 = function () {
2 console.email("Remember to try val.town for Weather Bot");
3}

buildDoeMenuCalendarmain.tsx1 match

@tal•Updated 1 year ago
3type Line = Parameters<typeof calendarItemForLine>[1];
4type Context = Parameters<typeof calendarItemForLine>[0];
5export async function buildDoeMenuCalendar(context: Context, storeValue) {
6 const ical = await import("npm:ical-generator");
7 let dailyOfferings: Line | undefined;

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