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=960&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 17289 results for "function"(1690ms)

thrillingCoralLeopardmain.tsx3 matches

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

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

nimbleCrimsonToadmain.tsx3 matches

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

calmPeachBisonmain.tsx3 matches

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

valentinemain.tsx3 matches

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

daringBlushLimpetmain.tsx3 matches

@LewisMcC•Updated 2 months ago
8];
9
10function App() {
11 const [noClicks, setNoClicks] = useState(0);
12 const [isValentine, setIsValentine] = useState(false);
129}
130
131function client() {
132 createRoot(document.getElementById("root")).render(<App />);
133}
136}
137
138export default async function server(request: Request): Promise<Response> {
139 return new Response(
140 `

livelyPeachSlothmain.tsx3 matches

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

reverentBrownPandamain.tsx3 matches

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

@kdilsook•Updated 2 months ago
31];
32
33function App() {
34 const [noClicks, setNoClicks] = useState(0);
35 const [isValentine, setIsValentine] = useState(false);
126}
127
128function client() {
129 createRoot(document.getElementById("root")).render(<App />);
130}
131if (typeof document !== "undefined") { client(); }
132
133export default async function server(request: Request): Promise<Response> {
134 return new Response(
135 `

valentinemain.tsx3 matches

@iLegacyy•Updated 2 months ago
8];
9
10function App() {
11 const [noClicks, setNoClicks] = useState(0);
12 const [isValentine, setIsValentine] = useState(false);
135}
136
137function client() {
138 createRoot(document.getElementById("root")).render(<App />);
139}
142}
143
144export default async function server(request: Request): Promise<Response> {
145 return new Response(
146 `

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