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=1777&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 18135 results for "function"(2470ms)

myApimain.tsx1 match

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

pokeMemain.tsx1 match

@proto•Updated 1 year ago
1let { pokes } = await import("https://esm.town/v/__proto__/pokes");
2
3export function pokeMe() {
4 pokes = (pokes || 0) + 1;
5 console.email(pokes);

myApimain.tsx1 match

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

WheaterSearchmain.tsx1 match

@byom•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function WheaterSearch(city: string) {
4 let data = await fetch(`https://wttr.in/${city}`);
5 return data.text();

myApimain.tsx1 match

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

myApimain.tsx1 match

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

randomIntegermain.tsx1 match

@adrian•Updated 1 year ago
1export async function randomInteger(min: number, max: number) {
2 min = Math.ceil(min);
3 max = Math.floor(max);

myApimain.tsx1 match

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

valTownDailyInspomain.tsx1 match

@factori•Updated 1 year ago
1import { valTownInspirationEmail } from "https://esm.town/v/rodrigotello/valTownInspirationEmail?v=79";
2
3export async function valTownDailyInspo() {
4 return await valTownInspirationEmail();
5}

hexToUtf8main.tsx1 match

@ryanwaits•Updated 1 year ago
1export function hexToUtf8(hex: string) {
2 if (!hex) {
3 return;

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