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/$%7Burl%7D?q=function&page=2680&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 29307 results for "function"(7975ms)

val_town_clientmain.tsx1 match

@pomdtr•Updated 1 year ago
2import createClient2 from "npm:openapi-fetch";
3
4export default function createClient(options?: {
5 baseUrl?: string;
6 token?: string;

laMetricOctopusmain.tsx1 match

@MattieTK•Updated 1 year ago
1import { octopusAgilePricing } from "https://esm.town/v/MattieTK/octopusAgilePricing";
2
3export async function laMetricOctopus(req: Request) {
4 const searchParams = new URL(req.url).searchParams;
5 let location = searchParams.get("location");

pushplusmain.tsx1 match

@yieldray•Updated 1 year ago
1import process from "node:process"
2export function pushplus(options: {
3 token: string;
4 title?: string;

deno_servermain.tsx1 match

@pomdtr•Updated 1 year ago
1export function denoServer(handler: (req: Request) => Response | Promise<Response>, thisArg?: any) {
2 if (thisArg) {
3 handler = handler.bind(thisArg);

valsmain.tsx1 match

@mxdvl•Updated 1 year ago
18);
19
20export default async function(req: Request) {
21 return new Response(
22 `

denoServermain.tsx1 match

@vladimyr•Updated 1 year ago
1export function denoServer(handler: (req: Request) => Response | Promise<Response>, thisArg?: any) {
2 if (thisArg) {
3 handler = handler.bind(thisArg);

HonoHTMXmain.tsx1 match

@iamseeley•Updated 1 year ago
32);
33
34export default async function(req: Request) {
35 return new Response(
36 `

htmlExamplemain.tsx1 match

@lmackenzie94•Updated 1 year ago
1// View at https://lmackenzie94-htmlExample.web.val.run?name=Luke
2export default async function(req: Request): Promise<Response> {
3 const query = new URL(req.url).searchParams;
4

twitterAlertmain.tsx1 match

@arunc•Updated 1 year ago
4const query = "\"val.town\" OR \"val town\" -_ValTown_";
5
6export async function twitterAlert({ lastRunAt }: Interval) {
7 const results = await twitterSearch({
8 query,

aqimain.tsx1 match

@staticdreams•Updated 1 year ago
2import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI";
3
4export default async function(interval: Interval) {
5 const location = "Geneva"; // <-- change to place, city, or zip code
6 const data = await easyAQI({ location });
tuna

tuna9 file matches

@jxnblk•Updated 1 day ago
Simple functional CSS library for Val Town

getFileEmail4 file matches

@shouser•Updated 1 month ago
A helper function to build a file's email
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.