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=2360&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 24666 results for "function"(2981ms)

ab2strmain.tsx1 match

@stevekrouse•Updated 1 year ago
3from https://developer.chrome.com/blog/how-to-convert-arraybuffer-to-and-from-string/
4*/
5export function ab2str(buf) {
6 return String.fromCharCode.apply(null, new Uint8Array(buf));
7}

myApimain.tsx1 match

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

myApimain.tsx1 match

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

getAllVideosInYoutubePlaylistmain.tsx1 match

@supersayan•Updated 1 year ago
1export async function getAllVideosInYoutubePlaylist(playlistId, apiKey) {
2 const { default: axios } = await import("npm:axios");
3 if (!playlistId) {

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

nftmain.tsx1 match

@vawogbemi•Updated 1 year ago
1export function nft(name, description, image) {
2 return {
3 "name": name,

myApimain.tsx1 match

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

inspoHTMLmain.tsx1 match

@rodrigotello•Updated 1 year ago
1import { valTownInspoList } from "https://esm.town/v/rodrigotello/valTownInspoList";
2
3export function inspoHTML(req, res) {
4 res.send(
5 valTownInspoList.map((d) => `

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.