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=527&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 20384 results for "function"(2081ms)

OpenTownieApiKeyWarning.tsx1 match

@tallesjp•Updated 3 weeks ago
6}
7
8export function ApiKeyWarning({ show }: ApiKeyWarningProps) {
9 if (!show) return null;
10

testprojfailEmailEntry.tsx1 match

@wolf•Updated 3 weeks ago
12}
13
14export default function EmailEntry({ onChange, label, sx, name, required, placeholder, fullWidth }: EmailEntryProps) {
15 const [error, setError] = useState<boolean>(false);
16

testprojfailroute.ts1 match

@wolf•Updated 3 weeks ago
33};
34
35export async function POST(request: NextRequest) {
36 await mongoConnect();
37 const iclicker = (await MongoItem

testprojfailBody.tsx1 match

@wolf•Updated 3 weeks ago
8import Paper from "@mui/material/Paper";
9
10export default function Body({ imageURL }: { imageURL: string }) {
11 const isNotMobile = useMediaQuery('(min-width:600px)');
12

testprojfailpage.tsx1 match

@wolf•Updated 3 weeks ago
3import Body from "./Body";
4
5export default async function IClickPage() {
6 await mongooseConnect()
7 const iclickerItem: any = await MongoItem

testprojfaillayout.tsx2 matches

@wolf•Updated 3 weeks ago
17};
18
19export default function RootLayout({
20 children,
21}: {
28 {`
29 window.dataLayer = window.dataLayer || [];
30 function gtag(){dataLayer.push(arguments);}
31 gtag('js', new Date());
32

testprojfailpage.tsx1 match

@wolf•Updated 3 weeks ago
9import Box from "@mui/material/Box";
10
11export default async function HomePage() {
12 await mongoConnect()
13 const iclicker = (await MongoItem

testprojfailroute.ts1 match

@wolf•Updated 3 weeks ago
9});
10
11export async function POST(request: NextRequest) {
12 mongoConnect();
13

testprojfailIClickerForm.tsx1 match

@wolf•Updated 3 weeks ago
14
15
16export default function IClickerForm() {
17 const [customerName, setCustomerName] = useState<string>("");
18 const [email, setEmail] = useState<string>("");

testprojfaildatabase.js1 match

@wolf•Updated 3 weeks ago
15}
16
17export default async function mongoConnect() {
18 console.log("Connecting...")
19 if (cached.conn) {

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 3 weeks 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": "*",
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.