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=2138&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 22533 results for "function"(2165ms)

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}

tootLatestPostsmain.tsx1 match

@sebdd•Updated 1 year ago
3import { newRSSItems } from "https://esm.town/v/stevekrouse/newRSSItems?v=6";
4
5export async function tootLatestPosts({ lastRunAt }: Interval) {
6 return Promise.all(
7 (await newRSSItems({

wttrGetForecastmain.tsx1 match

@smalldogenergy•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function wttrGetForecast({
4 location,
5 languageCode = "en",

createQuotePostmain.tsx2 matches

@canpolat•Updated 1 year ago
6import { unusedQuotes } from "https://esm.town/v/canpolat/unusedQuotes";
7
8export async function createQuotePost({ instance, communityId, auth }: {
9 instance: string;
10 communityId: number;
14 const { LemmyHttp } = await import("npm:lemmy-js-client@0.18.1");
15 let client = new LemmyHttp(`https://${instance}`, {
16 fetchFunction: fetch,
17 });
18 const quote = unusedQuotes.pop();

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.