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=1005&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"(1765ms)

valentinemain.tsx3 matches

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

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

@jacqstrap•Updated 2 months ago
38];
39
40function App() {
41 const [noClicks, setNoClicks] = useState(0);
42 const [isValentine, setIsValentine] = useState(false);
129}
130
131function client() {
132 createRoot(document.getElementById("root")).render(<App />);
133}
134if (typeof document !== "undefined") { client(); }
135
136export default async function server(request: Request): Promise<Response> {
137 return new Response(
138 `

valentinemain.tsx3 matches

@raorood•Updated 2 months ago
13];
14
15function App() {
16 const [noClicks, setNoClicks] = useState(0);
17 const [isValentine, setIsValentine] = useState(false);
106}
107
108function client() {
109 createRoot(document.getElementById("root")).render(<App />);
110}
113}
114
115export default async function server(request: Request): Promise<Response> {
116 return new Response(
117 `

valentinemain.tsx3 matches

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

emailToDiscorddiscordClient2 matches

@wilt•Updated 2 months ago
5// https://discord.com/developers/docs/topics/rate-limits
6
7export async function sendWithRateLimit(url: string, init: RequestInit): Promise<Response> {
8 const resp = await fetch(url, init);
9 if (resp.status === 429) {
24// https://discord.com/developers/docs/reference#uploading-files
25
26export function canUploadAttachment(file: File): "OK" | "TOO_BIG" | "BAD_FILETYPE" {
27 if (file.size >= 1048576) {
28 return "TOO_BIG";

Gokceyemain.tsx3 matches

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

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

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

supersecretwebmain.tsx3 matches

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

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