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/?q=function&page=1226&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 17278 results for "function"(1881ms)

val_EzhMBKOVWMmain.tsx2 matches

@dhvanil•Updated 5 months ago
1
2 export async function val_EzhMBKOVWM(req) {
3 try {
4 // Execute the code directly and capture its result
7// This time modeling the concept of interconnectedness and growth
8
9function createFractalTree(depth) {
10 if (depth === 0) return ['|'];
11

val_0nQm9ioJc0main.tsx2 matches

@dhvanil•Updated 5 months ago
1
2 export async function val_0nQm9ioJc0(req) {
3 try {
4 // Execute the code directly and capture its result
7// This demonstrates how complex patterns can emerge from simple rules
8
9function createCellularAutomata(size, generations) {
10 let grid = new Array(size).fill(0);
11 grid[Math.floor(size/2)] = 1; // Start with a single cell in the middle

val_bst0kyscFemain.tsx1 match

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

val_WzWC3no9LWmain.tsx1 match

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

val_NGfT1TNGLhmain.tsx1 match

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

val_ILKOorzhdBmain.tsx1 match

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

val_baxJyb52GUmain.tsx1 match

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

val_Fyjpc3EX7Qmain.tsx1 match

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

val_b1fGFNEZW2main.tsx2 matches

@dhvanil•Updated 5 months ago
1
2 export async function val_b1fGFNEZW2(req) {
3 try {
4 // Execute the code directly and capture its result
6 // Exploit combining precision and temporal glitches
7const temporalPrecisionExploit = () => {
8 // Create a function that forces temporal quantum snapping
9 const forceTimeSnap = (timestamp) => {
10 const quantum = 100; // Observed quantum size

val_uHoOdOO8N5main.tsx1 match

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

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 1 week ago
Simple functional CSS library for Val Town
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
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": "*",