SPB Git

spb/chat-spboucher Public

Private universal chat interface over the OpenRouter ecosystem — 400+ models, branching, streaming, usage tracking. Next.js 16 + SQLite, PWA, deployed on m4m64a at chat.spboucher.ai

TypeScript 78.8% CSS 15.1% JavaScript 4.9% Shell 1.2%
528 B · 22 lines tsx
Raw Blame History
1// Author: Simon-Pierre Boucher2// Contact: contact@spboucher.ai3// Project: chat.spboucher.ai45import { redirect } from "next/navigation";6import { currentSession } from "@/lib/auth/guard";7import { ChatApp } from "@/components/ChatApp";8import { RegisterSw } from "@/components/RegisterSw";910export const dynamic = "force-dynamic";1112export default async function HomePage() {13  const session = await currentSession();14  if (!session) redirect("/login");15  return (16    <>17      <ChatApp />18      <RegisterSw />19    </>20  );21}22