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=1687&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 20195 results for "function"(3028ms)

1// Response with "Hello World" in crazy CSS and silly gradients
2export default async function(req: Request): Promise<Response> {
3 const htmlResponse = `
4 <!DOCTYPE html>
1// Response with "Hello World" in fancy HTML with silly gradients on every HTTP request
2export default async function(req: Request): Promise<Response> {
3 const html = `
4 <!DOCTYPE html>
1// Response with a silly HTML page with crazy CSS and gradients
2export default async function(req: Request): Promise<Response> {
3 const html = `
4 <html>
1// Respond with fun HTML content and silly gradients on every HTTP request
2export default async function(req: Request): Promise<Response> {
3 const htmlContent = `
4 <html>
1// Respond with a HTML page with silly gradients and crazy CSS
2export default async function (req: Request): Promise<Response> {
3 const htmlContent = `
4 <!DOCTYPE html>
1// Response with "Hello World" on every HTTP request
2export default async function(req: Request): Promise<Response> {
3 return new Response("Hello World", { headers: { "Content-Type": "text/plain" } });
4}
1// This val responds to HTTP requests with "Hello, World!"
2export default async function main(req: Request): Promise<Response> {
3 return new Response("Hello, World!");
4}
1// This val responds with "Hello, World!" to all incoming HTTP requests
2
3export default async function main(req: Request): Promise<Response> {
4 return new Response("Hello, World!", { headers: { "Content-Type": "text/plain" } });
5}
1// This val responds with a funky "Hello, world!" HTML page with gradient background
2export default async function main(req: Request): Promise<Response> {
3 const html = `
4 <html>
1// This val responds with an HTML page styled with funky CSS gradients
2export default async function main(req: Request): Promise<Response> {
3 const htmlContent = `
4 <html>

getFileEmail4 file matches

@shouser•Updated 3 weeks ago
A helper function to build a file's email
tuna

tuna8 file matches

@jxnblk•Updated 3 weeks 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.