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/$%7Bart_info.art.src%7D?q=function&page=1701&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 18167 results for "function"(2683ms)

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;

postTweetmain.tsx1 match

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

webmain.tsx1 match

@yieldray•Updated 1 year ago
1export async function web(req: Request) {
2 return Response.json({
3 method: req.method,

myApimain.tsx1 match

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

monitoringZSearchmain.tsx1 match

@tzq•Updated 1 year ago
1import { monitoringGitHubRepository } from "https://esm.town/v/tzq/monitoringGitHubRepository";
2
3export async function monitoringZSearch() {
4 monitoringGitHubRepository("2063436123/ZSearch");
5}

getFileEmail4 file matches

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