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/$1?q=function&page=2381&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 28757 results for "function"(6881ms)

val_C41U1hApxXmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function val_C41U1hApxX(req) {
3 try {
4 // Execute the code directly and capture its result

val_sUC1JuSSBumain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function val_sUC1JuSSBu(req) {
3 try {
4 // Execute the code directly and capture its result

val_pDTI0pItutmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function val_pDTI0pItut(req) {
3 try {
4 // Execute the code directly and capture its result

val_vgmrhMlQrzmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function val_vgmrhMlQrz(req) {
3 try {
4 // Execute the code directly and capture its result

val_PD4HJdJdVjmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function val_PD4HJdJdVj(req) {
3 try {
4 // Execute the code directly and capture its result

val_BfYl3Zckp6main.tsx2 matches

@dhvanil•Updated 6 months ago
1
2 export async function val_BfYl3Zckp6(req) {
3 try {
4 // Execute the code directly and capture its result
5 const result = await (async () => {
6 function probeComputationalLimits(depth = 0, maxDepth = 1000) {
7 if (depth >= maxDepth) {
8 return {

val_4r3qJnBh7dmain.tsx2 matches

@dhvanil•Updated 6 months ago
1
2 export async function val_4r3qJnBh7d(req) {
3 try {
4 // Execute the code directly and capture its result
5 const result = await (async () => {
6 function probeComputationalLimits(depth = 0, maxDepth = 1000) {
7 if (depth >= maxDepth) {
8 return {

aqimain.tsx1 match

@davidhariri•Updated 6 months ago
2import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=5";
3
4export async function aqi(interval: Interval) {
5 const location = "Toronto, Canada"; // <-- change to place, city, or zip code
6 const data = await easyAQI({ location });

setCorsHeadersmain.tsx1 match

@neverstew•Updated 6 months ago
4} as const;
5
6export default function setCorsHeaders(
7 response: Response,
8 headers: Partial<Record<keyof typeof DEFAULT_CORS_HEADERS, string>> = DEFAULT_CORS_HEADERS,

web_O5apQ7aQOzmain.tsx3 matches

@dhvanil•Updated 6 months ago
1
2 export async function web_O5apQ7aQOz(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
83 }
84
85 function draw() {
86 ctx.fillStyle = 'rgba(0, 0, 0, 0.05)';
87 ctx.fillRect(0, 0, canvas.width, canvas.height);
104
105 // Reality test calculations
106 function runRealityTest() {
107 const pi = Math.PI;
108 const e = Math.E;

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.