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/$2?q=function&page=2378&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 28557 results for "function"(7696ms)

val_wsOEr1WRVHmain.tsx1 match

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

val_FDMJUyWsAymain.tsx1 match

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

val_irc8Igm1CRmain.tsx1 match

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

val_aBl2zIzBr7main.tsx1 match

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

val_Ky1DCGTe7Omain.tsx1 match

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

val_IqQ0SMdyJQmain.tsx1 match

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

val_DxjKDGJFD8main.tsx2 matches

@dhvanil•Updated 6 months ago
1
2 export async function val_DxjKDGJFD8(req) {
3 try {
4 // Create a function from the provided code and execute it
5 const userCode = async () => {
6 return const findPrimes = (n) => {

val_7Uzsz0je4qmain.tsx2 matches

@dhvanil•Updated 6 months ago
1
2 export async function val_7Uzsz0je4q(req) {
3 try {
4 // Create a function from the provided code and execute it
5 const userCode = async () => {
6 return const findPrimes = (n) => {

val_wLqQaKIA8emain.tsx2 matches

@dhvanil•Updated 6 months ago
1
2 export async function val_wLqQaKIA8e(req) {
3 try {
4 // Create a function from the provided code and execute it
5 const userCode = async () => {
6 return const findPrimes = (n) => {

val_W1jVyebeTJmain.tsx4 matches

@dhvanil•Updated 6 months ago
1
2 export async function val_W1jVyebeTJ(req) {
3 try {
4 // Ensure request body is consumed
5 const body = await req.text();
6
7 // Create a function from the provided code and execute it
8 const userFunction = async () => {
9 const findPrimes = (n) => {
10 const primes = [];
28
29 // Execute and capture the result
30 const result = await userFunction();
31
32 // Handle different types of results

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.