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/image-url.jpg%20%22Optional%20title%22?q=function&page=2475&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 27947 results for "function"(3184ms)

6import parserBabel from "npm:prettier/parser-babel";
7
8export default async function(req: Request): Promise<Response> {
9 const { code } = await req.json();
10
1// This val will respond to any request with an HTML "Hello, world!" message with some fun CSS styles and an animated cat
2export default async function(req: Request): Promise<Response> {
3 const html = `
4 <html>
1export default async function(req: Request): Promise<Response> {
2 const html = `
3 <html>
1// This val will respond to any request with an HTML "Hello, world!" message with some fun CSS styles and an animated cat
2export default async function(req: Request): Promise<Response> {
3 const html = `
4 <html>
1// This val will respond to any request with an HTML "Hello, world!" message with some fun CSS styles and an animated cat
2export default async function(req: Request): Promise<Response> {
3 const html = `
4 <html>
1// This val will respond to any request with an HTML "Hello, world!" message with some fun CSS styles
2export default async function(req: Request): Promise<Response> {
3 const html = `
4 <html>
1// This val will respond to any request with an HTML "Hello, world!" message styled with some fun CSS
2export default async function(req: Request): Promise<Response> {
3 const html = `
4 <html>
1// This val will respond to any request with an HTML "Hello, world!" message styled with fun CSS
2export default async function(req: Request): Promise<Response> {
3 const html = `
4 <html>
1-2
2// This val will respond to any request with an HTML "Hello, world!" message styled with fun CSS
3export default async function (req: Request): Promise<Response> {
4 const htmlContent = `
5 <style>
1// This val will respond to any request with an HTML "Hello, world!" message styled with fun CSS
2export default async function(req: Request): Promise<Response> {
3 const 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.