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=1833&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 18794 results for "function"(1165ms)

myApimain.tsx1 match

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

myApimain.tsx1 match

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

addEmailsmain.tsx1 match

@eric•Updated 1 year ago
3import { getEmails } from "https://esm.town/v/eric/getEmails";
4
5export function addEmails() {
6 const s = getEmails()
7 console.log(s instanceof Set)

getAppleDevicemain.tsx1 match

@zebrainy•Updated 1 year ago
1import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
2
3export async function getAppleDevice(req: express.Request, res: express.Response) {
4 const deviceId = req.query.search_keywords as string;
5 const html = await fetchText(

getTasksmain.tsx1 match

@ju2l0r•Updated 1 year ago
1import { tasks as tasks2 } from "https://esm.town/v/ju2l0r/tasks";
2
3export async function getTasks(data) {
4 const { search, completed, offset } = data ?? {};
5 let filteredTasks = search

myApimain.tsx1 match

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

myApimain.tsx1 match

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

fenToASCIIboardmain.tsx1 match

@healeycodes•Updated 1 year ago
12*/
13
14export let fenToASCIIboard = async function (fenString) {
15 // https://en.wikipedia.org/wiki/Chess_symbols_in_Unicode
16 const charToPiece = {

myApimain.tsx1 match

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

generateValCodemain.tsx2 matches

@andreterron•Updated 1 year ago
25 {
26 role: "user",
27 content: `Here's the description of the function I want to write:
28
29 ${description}
30
31 Please start writing the function now, and just write the function, no console.log required:
32 `,
33 },

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