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/?q=function&page=2377&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 24575 results for "function"(4028ms)

myApimain.tsx1 match

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

pollCryptoFearAndGreedIndexmain.tsx1 match

@chrispie•Updated 1 year ago
3import { cryptoFearAndGreedIndex } from "https://esm.town/v/chrispie/cryptoFearAndGreedIndex";
4
5export async function pollCryptoFearAndGreedIndex() {
6 let index = await cryptoFearAndGreedIndex();
7 const date = Date.now();

myApimain.tsx1 match

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

myApimain.tsx1 match

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

addmain.tsx1 match

@iml•Updated 1 year ago
1export function add(a, b) {
2 return a + b;
3}

myApimain.tsx1 match

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

generateQRmain.tsx1 match

@galligan•Updated 1 year ago
8// 5. When you are on any page, click the newly added bookmark
9// It should generate a QR code that you can scan and open on your mobile
10export async function generateQR(req, res) {
11 const url = req.query.url;
12 res.set("Content-Type", "text/html");

hnClojuremain.tsx1 match

@mjd•Updated 1 year ago
3import { hnLatestPosts } from "https://esm.town/v/stevekrouse/hnLatestPosts?v=18";
4
5export async function hnClojure({ lastRunAt }: Interval) {
6 let posts = await hnLatestPosts({
7 query: "clojure",

getEmojismain.tsx1 match

@shellphon•Updated 1 year ago
1export async function getEmojis(num, isRandom = false) {
2 const { default: emojis } = await import("npm:emojis-list");
3 if (isRandom) {

commentsmain.tsx1 match

@neverstew•Updated 1 year ago
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
3
4export function comments({ token, relationship, since, until, offset, limit }: {
5 token: string;
6 relationship?: "received" | "given" | "any";

getFileEmail4 file matches

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