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=1760&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"(3071ms)

expressContentTypeTestmain.tsx1 match

@stevekrouse•Updated 1 year ago
1export function expressContentTypeTest(req, res) {
2 res.send(req.body.a.b);
3}

expressHTMLExample2main.tsx1 match

@stevekrouse•Updated 1 year ago
1// View at https://stevekrouse-expressHTMLExample2.express.val.run?name=Steve
2export async function expressHTMLExample2(
3 req: express.Request,
4 res: express.Response,

handleOnboardingReferralmain.tsx1 match

@stevekrouse•Updated 1 year ago
3
4// Triggered when someone tells us how they hear about VT on onboarding
5export async function handleOnboardingReferral({ auth, referral, handle }: {
6 auth: string;
7 referral: string;

untitled_return_me_valmain.tsx1 match

@stevekrouse•Updated 1 year ago
1import { private_library_val } from "https://esm.town/v/stevekrouse/private_library_val";
2
3export function untitled_return_me_val() {
4 return private_library_val;
5}

watchLCBO_JD3Lmain.tsx1 match

@meatcar•Updated 1 year ago
3import { watchWebsite } from "https://esm.town/v/chet/watchWebsite?v=7";
4
5export async function watchLCBO_JD3L() {
6 const url = "https://www.lcbo.com/en/storeinventory/?sku=517383";
7 const { subject, body } = await watchWebsite(url);

myApimain.tsx1 match

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

myApimain.tsx1 match

@treblegni•Updated 1 year ago
1export function myApi(name) {
2 const random = Math.random(100);
3 return {
1import { familyhistorycounter } from "https://esm.town/v/politelyinvinciblepointer/familyhistorycounter";
2
3export function getfamilyhistorycounter() {
4 return familyhistorycounter;
5}

myApimain.tsx1 match

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

myApimain.tsx1 match

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

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