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=898&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 15604 results for "function"(1376ms)

valentinemain.tsx3 matches

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

Ziconnismain.tsx3 matches

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

stylishGreenPikemain.tsx3 matches

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

thrillingTomatoCentipedemain.tsx3 matches

@yuaaangabaa•Updated 2 months ago
3import React, { useState } from "https://esm.sh/react@18.2.0";
4
5function App() {
6 const [noClicks, setNoClicks] = useState(0);
7 const [isValentine, setIsValentine] = useState(false);
88}
89
90function client() {
91 createRoot(document.getElementById("root")).render(<App />);
92}
93if (typeof document !== "undefined") { client(); }
94
95export default async function server(request: Request): Promise<Response> {
96 return new Response(
97 `

valentinemain.tsx3 matches

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

Juliansmain.tsx3 matches

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

Surveymain.tsx3 matches

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

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

@Thuthukanii•Updated 2 months ago
20];
21
22function App() {
23 const [noClicks, setNoClicks] = useState(0);
24 const [isValentine, setIsValentine] = useState(false);
140}
141
142function client() {
143 createRoot(document.getElementById("root")).render(<App />);
144}
145if (typeof document !== "undefined") { client(); }
146
147export default async function server(request: Request): Promise<Response> {
148 return new Response(
149 `

valentinemain.tsx3 matches

@nekkoo•Updated 2 months ago
27];
28
29function App() {
30 const [noClicks, setNoClicks] = useState(0);
31 const [isValentine, setIsValentine] = useState(false);
112}
113
114function client() {
115 createRoot(document.getElementById("root")).render(<App />);
116}
117if (typeof document !== "undefined") { client(); }
118
119export default async function server(request: Request): Promise<Response> {
120 return new Response(
121 `

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": "*",