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=2150&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 22346 results for "function"(2128ms)

thanksPiazzamain.tsx1 match

@theo•Updated 1 year ago
1export function thanksPiazza() {
2 console.log("good find!");
3}

userValsmain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

myApimain.tsx1 match

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

getInvitesFromRedditmain.tsx1 match

@francoischalifour•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export async function getInvitesFromReddit() {
4 const codeRegex = /bsky-social-[a-zA-Z0-9]+/g;
5 const result = await fetchJSON(

webassemblyExamplemain.tsx1 match

@mkeller7•Updated 1 year ago
14 const importObj = {};
15 const { instance } = await WebAssembly.instantiate(source.buffer, importObj);
16 const addTwo = instance.exports.addTwo as CallableFunction;
17 return addTwo(2, 3);
18};

myApimain.tsx1 match

@salman•Updated 1 year ago
1export function myApi(url) {
2 return "https://tldrify.com/ajaxproxy?url=" + url;
3}

helloMessagemain.tsx1 match

@blindly•Updated 1 year ago
1export async function helloMessage(MESSAGE) {
2 console.log(`Message: ${MESSAGE}`);
3}

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.