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=2382&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 28688 results for "function"(4211ms)

web_uVEjrAHlZHmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function web_uVEjrAHlZH(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

web_jvEOd6FdXLmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function web_jvEOd6FdXL(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

web_GgRfBRQZjpmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function web_GgRfBRQZjp(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

fullPageWebsiteScrapermain.tsx4 matches

@willthereader•Updated 6 months ago
418}
419
420// Main Function
421export async function findBrokenLinks(websiteUrl) {
422 console.log("Version: " + import.meta.url.match(/[?&]v=([^&]*)/)?.at(1));
423 try {
470
471// Usage
472export default async function(interval) {
473 console.log(`Starting broken link check at ${new Date().toISOString()}`);
474 const url = "https://dateme.directory";
481 console.log("External broken links:", JSON.stringify(results.brokenLinks.external, null, 2));
482 } catch (error) {
483 console.error(`Error in main function: ${error.message}`);
484 }
485}

web_AXDuIDWzNXmain.tsx1 match

@dhvanil•Updated 7 months ago
1
2 export async function web_AXDuIDWzNX(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

web_mmtKPYGP3mmain.tsx1 match

@dhvanil•Updated 7 months ago
1
2 export async function web_mmtKPYGP3m(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

web_k1upAyVCPhmain.tsx1 match

@dhvanil•Updated 7 months ago
1
2 export async function web_k1upAyVCPh(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

web_FzOqLTzLOPmain.tsx1 match

@dhvanil•Updated 7 months ago
1
2 export async function web_FzOqLTzLOP(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

web_cgvolHK08Cmain.tsx1 match

@dhvanil•Updated 7 months ago
1
2 export async function web_cgvolHK08C(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

web_sirdp0W9N6main.tsx1 match

@dhvanil•Updated 7 months ago
1
2 export async function web_sirdp0W9N6(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

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.