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/image-url.jpg%20%22Image%20title%22?q=function&page=1885&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 23694 results for "function"(2750ms)

web_J4lwD9OeFCmain.tsx1 match

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

web_JaU2oUlDg0main.tsx1 match

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

web_sSNxaja4bHmain.tsx1 match

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

web_Fdwbcen36vmain.tsx1 match

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

web_0NANERhZE0main.tsx2 matches

@dhvanil•Updated 6 months ago
1
2 export async function web_0NANERhZE0(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
140 let charIndex = 0;
141
142 function typeWriter() {
143 if (messageIndex < messages.length) {
144 if (charIndex < messages[messageIndex].length) {

web_ZOT5N4yReQmain.tsx3 matches

@dhvanil•Updated 6 months ago
1
2 export async function web_ZOT5N4yReQ(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
96 <script>
97 // Create floating stars
98 function createStars() {
99 const stars = document.getElementById('stars');
100 for(let i = 0; i < 100; i++) {
113
114 // Terminal effect
115 async function terminalBoot() {
116 const terminal = document.getElementById('terminal');
117 const messages = [

sqliteExplorerAppREADME.md1 match

@jaip•Updated 6 months ago
33- [x] fix wonky sidebar separator height problem (thanks to @stevekrouse)
34- [x] make result tables scrollable
35- [x] add export to CSV, and JSON (CSV and JSON helper functions written in [this val](https://www.val.town/v/nbbaier/sqliteExportHelpers). Thanks to @pomdtr for merging the initial version!)
36- [x] add listener for cmd+enter to submit query

web_aoEiUErLLmmain.tsx2 matches

@dhvanil•Updated 6 months ago
1
2 export async function web_aoEiUErLLm(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
157 let index = 0;
158
159 function typeWriter() {
160 if (index < text.length) {
161 terminal.innerHTML = text.substring(0, index) + '<span class="cursor"></span>';

xmasRedHamstermain.tsx2 matches

@trollishka•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_0aZtzsb4cZmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function web_0aZtzsb4cZ(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.