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/$%7Bsuccess?q=function&page=2153&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 22317 results for "function"(3293ms)

echomain.tsx1 match

@twschiller•Updated 1 year ago
1export function echo(args) {
2 return args;
3}

myApimain.tsx1 match

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

myApimain.tsx1 match

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

uuidmain.tsx1 match

@ray1214•Updated 1 year ago
1export async function uuid(req: express.Request, res: express.Response) {
2 res.send(crypto.randomUUID());
3}

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

scumain.tsx1 match

@tzq•Updated 1 year ago
1export function scu() {
2 return "Sichuan University";
3}

getInformationOfTheGitHubReposirotymain.tsx1 match

@tzq•Updated 1 year ago
2import { fetchJSON } from "https://esm.town/v/dvergin/fetchJSON?v=2";
3
4export async function getInformationOfTheGitHubReposiroty(repository) {
5 return await fetchJSON(`https://api.github.com/repos/${repository}`, {
6 headers: {

coolHnPostsmain.tsx1 match

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

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 1 month 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.