2026-05-15 07:04:11 -07:00
|
|
|
import Link from "next/link";
|
2026-05-15 10:57:17 -07:00
|
|
|
import { redirect } from "next/navigation";
|
2026-05-15 07:04:11 -07:00
|
|
|
import { auth } from "@/auth";
|
2026-05-15 10:57:17 -07:00
|
|
|
import { Button } from "@/app/_components/ui/button";
|
2026-05-15 07:04:11 -07:00
|
|
|
|
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
|
|
|
|
|
|
export default async function HomePage() {
|
|
|
|
|
const session = await auth();
|
2026-05-15 10:57:17 -07:00
|
|
|
// Signed-in users always go to the app; the landing is for anonymous
|
|
|
|
|
// visitors only.
|
|
|
|
|
if (session?.user) redirect("/dashboard");
|
2026-05-15 07:04:11 -07:00
|
|
|
|
|
|
|
|
return (
|
2026-05-15 10:57:17 -07:00
|
|
|
<main className="min-h-screen flex items-center justify-center px-4">
|
|
|
|
|
<div className="max-w-xl w-full text-center space-y-6">
|
|
|
|
|
<div className="inline-flex items-center gap-2 text-fg-muted text-sm">
|
|
|
|
|
<span className="inline-block size-2 rounded-full bg-accent-400" />
|
|
|
|
|
shared-memory
|
|
|
|
|
</div>
|
2026-05-15 07:04:11 -07:00
|
|
|
|
2026-05-15 10:57:17 -07:00
|
|
|
<h1 className="text-3xl sm:text-4xl font-semibold tracking-tight text-fg">
|
|
|
|
|
Shared, persistent memory<br />for every Claude Code session.
|
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
|
|
<p className="text-fg-muted max-w-md mx-auto">
|
|
|
|
|
A self-hosted MCP server that lets the Claude Codes on your laptop,
|
|
|
|
|
server, and any container share durable memories, scoped per
|
|
|
|
|
project or globally.
|
2026-05-15 07:04:11 -07:00
|
|
|
</p>
|
|
|
|
|
|
2026-05-15 10:57:17 -07:00
|
|
|
<div className="flex justify-center gap-3 pt-2">
|
|
|
|
|
<Link href="/api/auth/signin?callbackUrl=/dashboard" className="no-underline">
|
|
|
|
|
<Button>Sign in with OIDC</Button>
|
|
|
|
|
</Link>
|
|
|
|
|
<a
|
|
|
|
|
href="https://repo.anhonesthost.net/jknapp/shared-memory"
|
|
|
|
|
className="no-underline"
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="noreferrer"
|
|
|
|
|
>
|
|
|
|
|
<Button variant="secondary">Source</Button>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<p className="text-xs text-fg-subtle pt-6">
|
|
|
|
|
MCP endpoint at <code>/api/mcp</code> · OAuth discovery at{" "}
|
|
|
|
|
<code>/.well-known/oauth-protected-resource</code>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
2026-05-15 07:04:11 -07:00
|
|
|
</main>
|
|
|
|
|
);
|
|
|
|
|
}
|