Next.js Page Generator
Scaffold a Next.js route from a path — App Router or Pages Router, TS or JS, with server / client components, data fetching (fetch + revalidate, generateStaticParams, getServerSideProps / getStaticProps), metadata, and the loading / error / not-found / layout files.
What this tool does
You type a route path and it works out the folder structure and writes the page file — plus the sibling special files — in the router and language your project uses.
App Router
Server Component by default, or a 'use client'
component. Data can come from an async component with
fetch(url, { next: { revalidate } }), and dynamic routes
can add generateStaticParams for static generation. SEO
is a static metadata export or an async
generateMetadata. Params are typed either as a plain
object (Next 14) or an awaited Promise (Next 15).
Special files
Toggle loading.tsx, error.tsx (a client
error boundary), not-found.tsx and
layout.tsx — each appears as its own tab.
Pages Router
getServerSideProps for SSR,
getStaticProps + getStaticPaths for SSG, or
a plain client component, with NextPage typing and a
next/head block.
Privacy
Everything runs in your browser. Nothing is uploaded.