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=1004&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 17350 results for "function"(2007ms)

openAmberLeechmain.tsx3 matches

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

valentinemain.tsx3 matches

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

valentinePageReactmain.tsx3 matches

@siddh•Updated 2 months ago
3import React, { useState } from "https://esm.sh/react@18.2.0";
4
5function ValentinePage() {
6 const [showTeddy, setShowTeddy] = useState(false);
7 const [noButtonStyle, setNoButtonStyle] = useState({});
86}
87
88function client() {
89 createRoot(document.getElementById("root")).render(<ValentinePage />);
90}
92if (typeof document !== "undefined") { client(); }
93
94export default async function server(request: Request) {
95 return new Response(
96 `

for_rahi_rangermain.tsx3 matches

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

valentinemain.tsx3 matches

@YOUR_girl•Updated 2 months ago
26];
27
28function App() {
29 const [noClicks, setNoClicks] = useState(0);
30 const [isValentine, setIsValentine] = 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 return new Response(
120 `

valentinemain.tsx3 matches

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

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

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

questmain.tsx3 matches

@rapilot330•Updated 2 months ago
14];
15
16function App() {
17 const [noClicks, setNoClicks] = useState(0);
18 const [isQuest, setIsQuest] = 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 `

valentinemain.tsx3 matches

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

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