import { listTopics } from "@autoscholar/core"; import type { Metadata } from "next"; import Link from "next/link"; import { EmptyState } from "@/components/EmptyState"; import { db } from "@/lib/server/db"; export const dynamic = "force-dynamic"; export const metadata: Metadata = { title: "Topics", description: "Browse AutoScholar working papers by scientific discipline and subfield.", alternates: { canonical: "/topics" }, }; export default async function TopicsPage() { const topics = await listTopics(db()); const roots = topics.filter((t) => !t.parentId); return (

Browse

Scientific disciplines

Every legitimate academic discipline is in scope. Methodology follows the question: econometrics is never imposed on a proof, and a literature review never pretends to be an experiment.

{roots.length === 0 ? ( ) : ( )}
); }