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=1552&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"(3321ms)

web_J0B5T4JyqDmain.tsx1 match

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

web_mhVADHMQe1main.tsx4 matches

@dhvanil•Updated 6 months ago
1
2 export async function web_mhVADHMQe1(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
123 const audioContext = new (window.AudioContext || window.webkitAudioContext)();
124
125 function playSound() {
126 const oscillator = audioContext.createOscillator();
127 const gainNode = audioContext.createGain();
138 }
139
140 function explodeEmojis(event) {
141 const emojis = ['🎉', '✨', '💫', '🌟', '💥'];
142 for(let i = 0; i < 10; i++) {
154
155 // Make the cube transform on click
156 document.querySelector('.cube').addEventListener('click', function() {
157 this.style.transform = `scale(${Math.random() + 0.5}) rotateX(${Math.random() * 360}deg) rotateY(${Math.random() * 360}deg)`;
158 playSound();

web_c9Qpa86DyZmain.tsx4 matches

@dhvanil•Updated 6 months ago
1
2 export async function web_c9Qpa86DyZ(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
135 camera.position.z = 5;
136
137 function animate() {
138 requestAnimationFrame(animate);
139 cube.rotation.x += 0.01;
143 animate();
144
145 function explode() {
146 document.querySelector('h1').style.transform = 'scale(1.5)';
147 setTimeout(() => {
156 }
157
158 function party() {
159 cube.material.color.setHex(Math.random() * 0xffffff);
160 document.body.style.background = `hsl(${Math.random() * 360}, 100%, 20%)`;

web_6WlNAlBG2kmain.tsx1 match

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

web_TpGd7zQvpGmain.tsx1 match

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

web_5If23gmesXmain.tsx1 match

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

web_mqybI9ybHZmain.tsx1 match

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

web_qUw9pGGCvnmain.tsx2 matches

@dhvanil•Updated 6 months ago
1
2 export async function web_qUw9pGGCvn(req) {
3 return new Response(`<!DOCTYPE html>
4<html lang="en">
66
67 <script>
68 function createSparks() {
69 const container = document.getElementById('explosionContainer');
70 for (let i = 0; i < 100; i++) {

web_aS5dw4wx47main.tsx2 matches

@dhvanil•Updated 6 months ago
1
2 export async function web_aS5dw4wx47(req) {
3 return new Response(`<!DOCTYPE html>
4<html lang="en">
53 </div>
54 <script>
55 function createSparkles() {
56 for(let i = 0; i < 50; i++) {
57 const sparkle = document.createElement('div');

web_mBvDDUywvrmain.tsx1 match

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

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.