import { useEffect, useState } from "react"; import { ThemeToggle } from "../components/ThemeToggle"; import { authClient } from "../lib/auth-client"; interface HomePageProps { navigate: ( route: | "/" | "/login" | "/signup" | "/pricing" | "/dashboard" | "/forgot-password" | "/reset-password", ) => void; } export default function HomePage({ navigate }: HomePageProps) { const [isLoggedIn, setIsLoggedIn] = useState(false); const [isLoading, setIsLoading] = useState(true); useEffect(() => { authClient.getSession().then((result) => { setIsLoggedIn(!!result.data?.user); setIsLoading(false); }); }, []); return (
A production-ready template with authentication, payments, and everything you need to launch your next project in minutes, not months.
Focus on building your product, not reinventing authentication, payments, or infrastructure.
Secure email/password auth with sessions, powered by Better Auth.
Stripe integration for subscriptions, one-time payments, and billing.
Cloudflare D1 database with Drizzle ORM for type-safe queries.
Deploy globally on Cloudflare Workers for blazing fast performance.
Start free and upgrade as you grow. No hidden fees, no surprises.
$0/mo
Perfect for getting started
$19/mo
For growing businesses
$99/mo
For large scale operations