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=1043&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 18181 results for "function"(1893ms)

valentinemain.tsx4 matches

@vawzen•Updated 2 months ago
12 "But my heart is overfitting for you! 💔",
13 "Even deep learning couldn't predict this heartbreak... 😭",
14 "Please reconsider, my loss function is at its minimum with you! 📉",
15 "Don't leave me stuck in a local minimum! 😢",
16 "Without you, my emotions are just noise... 📡",
28];
29
30function App() {
31 const [noClicks, setNoClicks] = useState(0);
32 const [isValentine, setIsValentine] = useState(false);
113}
114
115function client() {
116 createRoot(document.getElementById("root")).render(<App />);
117}
118if (typeof document !== "undefined") { client(); }
119
120export default async function server(request: Request): Promise<Response> {
121 return new Response(
122 `

valentinemain.tsx3 matches

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

trmnl_pluginsweather-line2 matches

@camflan•Updated 2 months ago
24]));
25
26export default async function(req: Request): Promise<Response> {
27 const { searchParams } = new URL(req.url);
28 const params = searchParamsParser(Object.fromEntries(searchParams.entries()));
55}
56
57export async function getHourlyForecast(...args: Parameters<typeof getForecast>) {
58 const weatherForecast = await getForecast(...args);
59

trmnl_pluginsweather.ts1 match

@camflan•Updated 2 months ago
21}
22
23export async function getForecast (location: string, { apiKey, days = 3 }: GetForecastOptions) {
24 const url = new URL("forecast.json", WEATHER_BASE_URL);
25 url.searchParams.set("days", days.toString());

valentinemain.tsx1 match

@rithik•Updated 2 months ago
10];
11
12export default function App() {
13 const [questionIndex, setQuestionIndex] = useState(0);
14 const [noClicks, setNoClicks] = useState(0);

willumarrymeoratleastbemyvalentinemain.tsx4 matches

@dtang18•Updated 2 months ago
17];
18
19function App() {
20 const [noClicks, setNoClicks] = useState(0);
21 const [isValentine, setIsValentine] = useState(false);
150
151// Confetti with Images
152function ConfettiImages() {
153 useEffect(() => {
154 const canvas = document.createElement("canvas");
190}
191
192function client() {
193 createRoot(document.getElementById("root")).render(<App />);
194}
197}
198
199export default async function server(request: Request): Promise<Response> {
200 return new Response(
201 `

valentinemain.tsx3 matches

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

daringHarlequinCaterpillarmain.tsx3 matches

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

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

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

getFileEmail4 file matches

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

tuna8 file matches

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