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/?q=function&page=871&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 15007 results for "function"(1614ms)

delightfulTanBisonmain.tsx3 matches

@Qwerty123•Updated 2 months ago
11];
12
13function App() {
14 const [noClicks, setNoClicks] = useState(0);
15 const [isValentine, setIsValentine] = useState(false);
96}
97
98function client() {
99 createRoot(document.getElementById("root")).render(<App />);
100}
101if (typeof document !== "undefined") { client(); }
102
103export default async function server(request: Request): Promise<Response> {
104 return new Response(
105 `

valentinemain.tsx3 matches

@Qwerty123•Updated 2 months ago
13];
14
15function App() {
16 const [noClicks, setNoClicks] = useState(0);
17 const [isValentine, setIsValentine] = useState(false);
98}
99
100function client() {
101 createRoot(document.getElementById("root")).render(<App />);
102}
103if (typeof document !== "undefined") { client(); }
104
105export default async function server(request: Request): Promise<Response> {
106 return new Response(
107 `

valentinemain.tsx3 matches

@sripriya0422•Updated 2 months ago
13];
14
15function App() {
16 const [noClicks, setNoClicks] = useState(0);
17 const [isValentine, setIsValentine] = useState(false);
98}
99
100function client() {
101 createRoot(document.getElementById("root")).render(<App />);
102}
103if (typeof document !== "undefined") { client(); }
104
105export default async function server(request: Request): Promise<Response> {
106 return new Response(
107 `

ai_pricingtypes2 matches

@nbbaier•Updated 2 months ago
81 litellm_provider: Provider;
82 mode: "chat" | "embedding" | "completion" | "image_generation" | "audio_transcription" | "audio_speech";
83 supports_function_calling: boolean;
84 supports_parallel_function_calling: boolean;
85 supports_vision: boolean;
86 supports_audio_input: boolean;

HTKhanAISearchmain.tsx5 matches

@Htkhan6•Updated 2 months ago
186
187// Loading Spinner Component
188function LoadingSpinner() {
189 return (
190 <div style={styles.spinnerContainer}>
199
200// Main App Component
201function App() {
202 const [query, setQuery] = useState("");
203 const [results, setResults] = useState(null);
375}
376
377// Client-side rendering function
378function client() {
379 createRoot(document.getElementById("root")).render(<App />);
380}
382
383// Server-side handler
384export default async function server(request: Request): Promise<Response> {
385 if (request.method === "POST") {
386 const { OpenAI } = await import("https://esm.town/v/std/openai");

distinguishedAmberCoralmain.tsx3 matches

@Hosianadamai•Updated 2 months ago
13];
14
15function App() {
16 const [noClicks, setNoClicks] = useState(0);
17 const [isValentine, setIsValentine] = useState(false);
98}
99
100function client() {
101 createRoot(document.getElementById("root")).render(<App />);
102}
103if (typeof document !== "undefined") { client(); }
104
105export default async function server(request: Request): Promise<Response> {
106 return new Response(
107 `

beamingMoccasinSquidmain.tsx3 matches

@Hosianadamai•Updated 2 months ago
13];
14
15function App() {
16 const [noClicks, setNoClicks] = useState(0);
17 const [isValentine, setIsValentine] = useState(false);
98}
99
100function client() {
101 createRoot(document.getElementById("root")).render(<App />);
102}
103if (typeof document !== "undefined") { client(); }
104
105export default async function server(request: Request): Promise<Response> {
106 return new Response(
107 `

ultimateGraySailfishmain.tsx3 matches

@Htkhan5•Updated 2 months ago
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5function App() {
6 const [query, setQuery] = useState('');
7 const [aiSummary, setAiSummary] = useState('');
473}
474
475function client() {
476 const style = document.createElement('style');
477 style.textContent = `
506if (typeof document !== "undefined") { client(); }
507
508export default async function server(request: Request): Promise<Response> {
509 if (request.method === 'POST') {
510 const { OpenAI } = await import("https://esm.town/v/std/openai");

valentinemain.tsx3 matches

@Hosianadamai•Updated 2 months ago
13];
14
15function App() {
16 const [noClicks, setNoClicks] = useState(0);
17 const [isValentine, setIsValentine] = useState(false);
98}
99
100function client() {
101 createRoot(document.getElementById("root")).render(<App />);
102}
103if (typeof document !== "undefined") { client(); }
104
105export default async function server(request: Request): Promise<Response> {
106 return new Response(
107 `

statusmonitor1 match

@brie•Updated 2 months ago
7);
8
9export async function uptimeCheck(url: string, attempt = 1) {
10 let reason: string = "";
11 let status: number | null = null;

getFileEmail4 file matches

@shouser•Updated 1 week ago
A helper function to build a file's email
tuna

tuna8 file matches

@jxnblk•Updated 1 week 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": "*",