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=2137&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 22587 results for "function"(3134ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

assertmain.tsx1 match

@andreterron•Updated 1 year ago
1export async function assert(a, b, message?: string) {
2 const { default: { isEqual } } = await import("npm:lodash");
3 if (!isEqual(a, b)) {

myApimain.tsx1 match

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

getWttrmain.tsx1 match

@LavaC•Updated 1 year ago
2
3export let getWttr = async ({ location }) => {
4 function convertBlobToDataUrl(blob) {
5 return new Promise((resolve, reject) => {
6 const reader = new FileReader();

sendLarkMessagemain.tsx1 match

@tzq•Updated 1 year ago
2import process from "node:process";
3
4export async function sendLarkMessage(message) {
5 return fetch(process.env.larkRobotUrl, {
6 method: "POST",

myApimain.tsx1 match

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

myApimain.tsx1 match

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

RateLimitDemomain.tsx1 match

@zzz•Updated 1 year ago
2
3// https://api.val.town/v1/express/zzz.RateLimitDemo
4export async function RateLimitDemo(req, res) {
5 const ip = req.get("true-client-ip") ??
6 req.get("x-forwarded-for")?.split(",")[0];

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 1 month ago
Simple functional CSS library for Val Town
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": "*",
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.