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=2296&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 27790 results for "function"(6251ms)

web_Oj5sZZxXORmain.tsx1 match

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

web_P8gyKBQ5mqmain.tsx1 match

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

web_vUijVegdsRmain.tsx1 match

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

web_65yJ4LP2Qxmain.tsx2 matches

@dhvanil•Updated 6 months ago
1
2 export async function web_65yJ4LP2Qx(req) {
3 return new Response(`<!DOCTYPE html>
4<html lang="en">
165
166 <script>
167 document.querySelector('.neon-button').addEventListener('click', function() {
168 this.style.transform = 'scale(0.95)';
169 setTimeout(() => {

web_FTtedIj1nlmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function web_FTtedIj1nl(req) {
3 return new Response(`undefined`, {
4 headers: { 'Content-Type': 'text/html' }

xmasRedHamstermain.tsx2 matches

@stevekrouse•Updated 6 months ago
1export default async function (req: Request): Promise<Response> {
2 const url = new URL(req.url);
3 const query = url.searchParams.get("q");
26}
27
28async function getMostPopularPinterestImage(query: string): Promise<string> {
29 const searchUrl = `https://api.pinterest.com/v5/search/pins?query=${encodeURIComponent(query)}&page_size=50&sort_order=popularity`;
30 const response = await fetch(searchUrl, {

web_kdMqSWGmA9main.tsx1 match

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

web_xBDVCIfKtvmain.tsx1 match

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

web_YrdKpc0KUomain.tsx1 match

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

web_T7W6KG7bgEmain.tsx1 match

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

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.