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=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 18181 results for "function"(3830ms)

myApimain.tsx1 match

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

forbudmain.tsx3 matches

@antonnyman•Updated 1 year ago
1255 const { Hono } = await import("npm:hono@3");
1256 const app = new Hono();
1257 async function getURL() {
1258 const htmlResponse = await fetch("https://datawrapper.dwcdn.net/4iRku");
1259 const htmlData = await htmlResponse.text();
1262 return url + "dataset.csv";
1263 }
1264 async function getDataset() {
1265 let url = await getURL();
1266 const response = await fetch(url, {
1271 return await response.text();
1272 }
1273 async function csvToCounties() {
1274 const data = await getDataset();
1275 let lines = data.split("\n");

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

fuckThisGuymain.tsx1 match

@fitsum•Updated 1 year ago
1export function fuckThisGuy(nameOfThisGuy) {
2 return `Fuck you, ${nameOfThisGuy}`;
3}

valRunsmain.tsx1 match

@neverstew•Updated 1 year ago
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
3
4export function valRuns({ token, id, error, source, since, until, offset, limit }: {
5 token: string;
6 id: string;

sendToTelegrammain.tsx1 match

@pomdtr•Updated 1 year ago
3import { secretToTelegramChat } from "https://esm.town/v/pomdtr/secretToTelegramChat";
4
5export async function sendToTelegram(secret: string, message: string) {
6 const chatID = secretToTelegramChat[secret];
7 const resp = await fetch(

myApimain.tsx1 match

@byron•Updated 1 year ago
1export function myApi(name) {
2 return console.email("hello there", "email n shit");
3}

myApimain.tsx1 match

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

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