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/$%7Bsuccess?q=function&page=2416&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 28957 results for "function"(1975ms)

web_6WlNAlBG2kmain.tsx1 match

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

web_TpGd7zQvpGmain.tsx1 match

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

web_5If23gmesXmain.tsx1 match

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

web_nJav3rHQoTmain.tsx1 match

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

web_cmp59EgUEUmain.tsx3 matches

@dhvanil•Updated 7 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 7 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);
tuna

tuna9 file matches

@jxnblk•Updated 18 hours ago
Simple functional CSS library for Val Town

getFileEmail4 file matches

@shouser•Updated 1 month ago
A helper function to build a file's email
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.