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=1832&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 18883 results for "function"(1192ms)

scrapeMSUrlPublicmain.tsx1 match

@tr3ntg•Updated 1 year ago
1import { scrapeMSUrlPrivate } from "https://esm.town/v/tr3ntg/scrapeMSUrlPrivate";
2
3export async function scrapeMSUrlPublic(request) {
4 await scrapeMSUrlPrivate(request.options.body);
5}

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

createGeneratedValmain.tsx1 match

@andreterron•Updated 1 year ago
2import { runVal } from "https://esm.town/v/std/runVal";
3
4export async function createGeneratedVal({ description, valTownKey }: {
5 description: string;
6 valTownKey: string;

setSecretmain.tsx1 match

@wonday•Updated 1 year ago
1let { secret } = await import("https://esm.town/v/wonday/secret");
2
3export function setSecret(s) {
4 if (s)
5 secret = s;

myApimain.tsx1 match

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

getCoolPostsmain.tsx1 match

@VictorForissier•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export function getCoolPosts() {
4 return fetch("https://hn.algolia.com/api/v1/search_by_date?tags=author_pg")
5 .then((res) => res.json())

expressHTMLExamplemain.tsx1 match

@dpetrouk•Updated 1 year ago
1// View at https://stevekrouse-expressHTMLExample.express.val.run?name=Steve
2export async function expressHTMLExample(
3 req: express.Request,
4 res: express.Response,

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