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=1683&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 17289 results for "function"(2614ms)

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 },

receivedCommentsEmailmain.tsx1 match

@andreterron•Updated 1 year ago
2import { comments as comments2 } from "https://esm.town/v/andreterron/comments";
3
4export function receivedCommentsEmail(data) {
5 type Then<T> = T extends Promise<infer U> ? U : never;
6 let comments = data.data as Then<

tidbytDeviceInstallationsmain.tsx1 match

@andreterron•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export function tidbytDeviceInstallations({ deviceId, apiKey }: {
4 deviceId: string;
5 apiKey: string;

referencesmain.tsx1 match

@andreterron•Updated 1 year ago
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
3
4export async function references({ token, since, until, offset, limit }: {
5 token: string;
6 since?: Date;

myApimain.tsx1 match

@wonday•Updated 1 year ago
1import { name as name2 } from "https://esm.town/v/wonday/name";
2
3export function myApi(name) {
4 return `hi ${name}! my name is ${name2}`;
5}

myApimain.tsx1 match

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

myApimain.tsx1 match

@mss•Updated 1 year ago
1export function myApi(name) {
2 console.email("hello " + name);
3 return "hello " + name;

tatatutumain.tsx1 match

@VictorForissier•Updated 1 year ago
1export function tatatutu() {
2 console.email("this is the body");
3}

myApimain.tsx1 match

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

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 1 week 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": "*",