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/image-url.jpg%20%22Image%20title%22?q=function&page=1903&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 19392 results for "function"(1467ms)

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;

moviesmain.tsx1 match

@kojidi•Updated 1 year ago
1export function movies() {
2 return [
3 { id: 1, name: "Hello world", published: 2023 },

getPaginationNumbersmain.tsx1 match

@liamdanielduffy•Updated 1 year ago
1export async function getPaginationNumbers(
2 html: string
3): Promise<[number, number] | [null, null]> {

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 3 weeks 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.