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=999&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 17971 results for "function"(1942ms)

fastAIAssistantmain.tsx4 matches

@huzaifa527•Updated 2 months ago
23}
24
25function App() {
26 const [messages, setMessages] = useState<Message[]>([]);
27 const [query, setQuery] = useState("");
53 for (const [key, response] of Object.entries(INSTANT_RESPONSES)) {
54 if (lowerQuery.includes(key)) {
55 return typeof response === "function" ? response() : response;
56 }
57 }
222}
223
224function client() {
225 createRoot(document.getElementById("root")).render(<App />);
226}
227if (typeof document !== "undefined") { client(); }
228
229export default async function server(request: Request): Promise<Response> {
230 if (request.method === "POST") {
231 const { query } = await request.json();

frankTealOrcamain.tsx3 matches

@Anthony28•Updated 2 months ago
17];
18
19function App() {
20 const [noClicks, setNoClicks] = useState(0);
21 const [isValentine, setIsValentine] = useState(false);
102}
103
104function client() {
105 createRoot(document.getElementById("root")).render(<App />);
106}
107if (typeof document !== "undefined") { client(); }
108
109export default async function server(request: Request): Promise<Response> {
110 return new Response(
111 `

shanemain.tsx3 matches

@dolloshane•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 `

dolloshanemain.tsx3 matches

@dolloshane•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

@King_Trigga•Updated 2 months ago
23];
24
25function App() {
26 const [noClicks, setNoClicks] = useState(0);
27 const [isValentine, setIsValentine] = useState(false);
108}
109
110function client() {
111 createRoot(document.getElementById("root")).render(<App />);
112}
113if (typeof document !== "undefined") { client(); }
114
115export default async function server(request: Request): Promise<Response> {
116 return new Response(
117 `

valentinemain.tsx3 matches

@dolloshane•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

@sampravin•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

@jrehberg18•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 `

bihunmain.tsx3 matches

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

growingScarletWildfowlmain.tsx3 matches

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

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
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
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": "*",