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/$%7Bart_info.art.src%7D?q=function&page=1553&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 20336 results for "function"(3050ms)

web_nJav3rHQoTmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function web_nJav3rHQoT(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

web_cmp59EgUEUmain.tsx3 matches

@dhvanil•Updated 6 months ago
1
2 export async function web_cmp59EgUEU(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
130 <script>
131 // Create random stars
132 function createStar() {
133 const star = document.createElement('div');
134 star.className = 'star';
160 // Mega button effects
161 const button = document.querySelector('.mega-button');
162 button.addEventListener('click', function() {
163 // Create multiple explosions
164 for(let i = 0; i < 20; i++) {

web_CtANb5nSp3main.tsx2 matches

@dhvanil•Updated 6 months ago
1
2 export async function web_CtANb5nSp3(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
100
101 // Add click event for extra pop
102 document.querySelector('.button').addEventListener('click', function() {
103 this.style.transform = 'scale(1.5)';
104 setTimeout(() => this.style.transform = 'scale(1)', 200);

web_YhrAkPFifemain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function web_YhrAkPFife(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

web_o6DeeRMtzQmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function web_o6DeeRMtzQ(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

web_Q99YAJsL65main.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function web_Q99YAJsL65(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

web_arkk46ZTklmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function web_arkk46ZTkl(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

web_pknUV9YbLumain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function web_pknUV9YbLu(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

val_nh90QOYGHtmain.tsx1 match

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

val_8kG24m9t0Lmain.tsx1 match

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

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.