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=2289&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 24048 results for "function"(3145ms)

parseMenuOfferingmain.tsx1 match

@tal•Updated 1 year ago
1export async function parseMenuOffering(text: string) {
2 /** get rid of the wrapping {} */
3 const stripped = text.slice(1, -1);

myApimain.tsx1 match

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

sendSwedishTimemain.tsx1 match

@ning•Updated 1 year ago
1export async function sendSwedishTime() {
2 const now = new Date();
3 const options = { timeZone: "Europe/Stockholm" };

todaymain.tsx1 match

@stungeye•Updated 1 year ago
1// "Day Month Year" version of the current date, where Month is the written word.
2export function today() {
3 let today = new Date();
4 let day = String(today.getDate()).padStart(2, "0");

testmain.tsx1 match

@scottxxx666•Updated 1 year ago
1export function test() {
2 console.email("message", "Subject Line");
3}

shittyValTownUImain.tsx1 match

@vez•Updated 1 year ago
2import { getAllVals } from "https://esm.town/v/vez/getAllVals";
3
4export async function shittyValTownUI(req, res) {
5 const editVal = (body: {
6 code: string;

myApimain.tsx1 match

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

myApimain.tsx1 match

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

form_handlermain.tsx1 match

@andreterron•Updated 1 year ago
2let { formResponses } = await import("https://esm.town/v/andreterron/formResponses");
3
4export async function form_handler(req: Request) {
5 const data: any = Object.fromEntries((await req.formData()).entries());
6 //

searchPostsForTheActuallyBotmain.tsx1 match

@andreterron•Updated 1 year ago
1import { searchTweets } from "https://esm.town/v/andreterron/searchTweets";
2
3export async function searchPostsForTheActuallyBot(accessToken: string): Promise<{
4 id: string;
5 text: string;

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.