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/$%7Burl%7D?q=function&page=1783&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 18574 results for "function"(3457ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

REACT_DOM_CDN_VALmain.tsx1 match

@liamdanielduffy•Updated 1 year ago
1import { REACT_DOM_MINIFIED_FINAL } from "https://esm.town/v/liamdanielduffy/REACT_DOM_MINIFIED_FINAL";
2
3export function REACT_DOM_CDN_VAL(req, res) {
4 res.set("Content-Type", "text/javascript");
5 res.send(REACT_DOM_MINIFIED_FINAL);

addReactFromValCDNmain.tsx1 match

@liamdanielduffy•Updated 1 year ago
1import { scriptTag } from "https://esm.town/v/liamdanielduffy/scriptTag";
2
3export function addReactFromValCDN(): string {
4 const reactDom = scriptTag({
5 src: "https://api.val.town/v1/express/liamdanielduffy.REACT_DOM_CDN_VAL",

wrapInHTMLElementsmain.tsx1 match

@rwev•Updated 1 year ago
1export function wrapInHTMLElements(
2 elements: string | string[],
3 html: string

tmpzmain.tsx1 match

@elrey741•Updated 1 year ago
1export function tmpz() {
2 console.log("hello");
3 return "bobby";

girafemain.tsx1 match

@dot•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function girafe() {
4 let venue = "girafeparis";
5 let start_date = "03-05-2023";

valtownOpenAPImain.tsx1 match

@pomdtr•Updated 1 year ago
1import { openapi2TS } from "https://esm.town/v/pomdtr/openapi2TS";
2
3export async function valtownOpenAPI(req: Request) {
4 return new Response(
5 await openapi2TS(

listValsmain.tsx1 match

@pomdtr•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function listVals(req: Request) {
4 if (req.method == "GET") {
5 return Response.json({

telegrammain.tsx1 match

@pomdtr•Updated 1 year ago
2import { runVal } from "https://esm.town/v/std/runVal";
3
4export async function telegram(message: string) {
5 return runVal(
6 "pomdtr.sendToTelegram",

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