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=2108&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 29308 results for "function"(4727ms)

Bilharzia_NumberspluckyPlumGuppy1 match

@ZainabMakled•Updated 3 months ago
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}
1export default async function (interval: Interval) {
2
3}

exclusiveFuchsiaEaglethrillingGreenFerret1 match

@tmcw•Updated 3 months ago
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}

exclusiveFuchsiaEaglesophisticatedAmberGuanaco1 match

@tmcw•Updated 3 months ago
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}

exclusiveFuchsiaEaglemodernMaroonGuan1 match

@tmcw•Updated 3 months ago
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}

exclusiveFuchsiaEaglemethodicalCopperMite1 match

@tmcw•Updated 3 months ago
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}

exclusiveFuchsiaEagleusableChocolateGopher1 match

@tmcw•Updated 3 months ago
1export default async function (interval: Interval) {
2
3}

artShareAppmain.tsx5 matches

@Omar1163•Updated 3 months ago
3import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
4
5function ArtUploadForm({ onUpload }) {
6 const [title, setTitle] = useState("");
7 const [description, setDescription] = useState("");
65}
66
67function ArtGallery() {
68 const [artworks, setArtworks] = useState([]);
69
106}
107
108function App() {
109 const [refreshGallery, setRefreshGallery] = useState(0);
110
120}
121
122function client() {
123 createRoot(document.getElementById("root")).render(<App />);
124}
125if (typeof document !== "undefined") { client(); }
126
127export default async function server(request: Request): Promise<Response> {
128 const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
129 const KEY = "artShareApp";

ableApricotApemain.tsx2 matches

@ssr•Updated 3 months ago
1/** Comprehensive Repository Structure Documentation */
2export default function getRepositoryDetails() {
3 return {
4 repositoryUrl: "https://github.com/valtown-demos/placement-management-dashboard",
76 architectureNotes: {
77 frontend: "React-based SPA with modular component structure",
78 backend: "Serverless Val Town functions with SQLite storage",
79 dataFlow: "Client-side React components interact with Val Town backend APIs"
80 }

rsvpHackNightFeb27main.tsx4 matches

@kabeer•Updated 3 months ago
3import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
4
5function App() {
6 const [name, setName] = useState("");
7 const [submitted, setSubmitted] = useState(false);
111}
112
113function client() {
114 createRoot(document.getElementById("root")).render(<App />);
115}
116if (typeof document !== "undefined") { client(); }
117
118export default async function server(request: Request): Promise<Response> {
119 try {
120 const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
134 )
135 `);
136 return; // Success, exit the function
137 } catch (error) {
138 console.error(`Table creation attempt ${attempt} failed:`, error);
tuna

tuna9 file matches

@jxnblk•Updated 1 day 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.