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%22Optional%20title%22?q=function&page=1800&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 18949 results for "function"(1125ms)

nytmain.tsx1 match

@baj•Updated 1 year ago
1import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
2
3export async function nyt(req: express.Request, res: express.Response) {
4 const data = await fetchText(
5 "https://cn.nytimes.com/",

valCanvasmain.tsx1 match

@liamdanielduffy•Updated 1 year ago
1import { valCanvasHTML } from "https://esm.town/v/liamdanielduffy/valCanvasHTML";
2
3export async function valCanvas(req: express.Request, res: express.Response) {
4 res.set("Content-Type", "text/html");
5 res.send(valCanvasHTML);

snakeToTitleCasemain.tsx1 match

@rwev•Updated 1 year ago
1export function snakeToTitleCase(str) {
2 return str
3 .split("_")

runmain.tsx1 match

@marianoguerra•Updated 1 year ago
1export async function run(req: express.Request, res: express.Response) {
2 let c = (
3 s,

myApimain.tsx1 match

@wesbos•Updated 1 year ago
1import { guestCount } from "https://esm.town/v/wesbos/guestCount";
2
3export function myApi(name) {
4 return "hi" + guestCount;
5}

deleteValVersionmain.tsx1 match

@neverstew•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export function deleteValVersion({ token, id, version }: {
4 token: string;
5 id: string;

myApimain.tsx1 match

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

metaCallmain.tsx1 match

@eric•Updated 1 year ago
1export let metaCall = function() {
2 return this
3}

ericWorkspacemain.tsx1 match

@eric•Updated 1 year ago
2import { getEmails as getEmails2 } from "https://esm.town/v/eric/getEmails";
3
4export function ericWorkspace() {
5 return {
6 getEmails: getEmails2,

myApimain.tsx1 match

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

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