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=1837&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 18872 results for "function"(1234ms)

getShorpyRSSmain.tsx1 match

@ryanbateman•Updated 1 year ago
3import { newRSSItems } from "https://esm.town/v/stevekrouse/newRSSItems?v=6";
4
5export async function getShorpyRSS() {
6 let items = await newRSSItems({
7 url: "https://feeds.feedburner.com/shorpy?q=rss.xml",

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

detailsTreemain.tsx1 match

@jdan•Updated 1 year ago
1export function detailsTree(tree, htmlOfNode) {
2 return Object.entries(tree).map(([key, value]) => {
3 if (key === "STOP") {

myApimain.tsx1 match

@ooo_ooo_oooooh•Updated 1 year ago
1export function myApi(question, answer) {
2 return `${question}? - ${answer}`;
3}

myApimain.tsx1 match

@mik639•Updated 1 year ago
1import { greet } from "https://esm.town/v/mik639/greet";
2
3export function myApi(name) {
4 console.email(greet(name), "Test email");
5}

myApimain.tsx1 match

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

percentLiftGasNeededSTPmain.tsx1 match

@andrew•Updated 1 year ago
1export function percentLiftGasNeededSTP(
2 liftForce,
3 totalVolume,

referencesmain.tsx1 match

@stevekrouse•Updated 1 year ago
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4export async function references({ token, since, until, offset, limit }: {
5 token: string;
6 since?: Date;

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