Generate a Next.js 16 App Router starter in TypeScript or JavaScript, with the imports, dependencies and configuration checked against each other.
Lower-cased and hyphenated for package.json, which npm requires.
17 files, internally consistent.
Imports, dependencies, scripts and configuration agree. Nothing was compiled or run — see Checks.
app/layout.tsxThe root layout. Required, and the only place <html> and <body> are written.
import type { Metadata } from "next";
import "./globals.css";
/* Page titles and descriptions are an exported metadata object in the
App Router. The head-manipulating component the Pages Router used has
no effect here, so there is nothing to import for this. */
export const metadata: Metadata = {
title: {
default: "my-next-app",
template: "%s · my-next-app",
},
description: "A Next.js 16 App Router application.",
};
export default function RootLayout({
children,
}: Readonly<{ children: React.ReactNode }>) {
return (
<html lang="en">
<body>{children}</body>
</html>
);
}
Written against the App Router on Next.js 16 and React 19. Conventions differ from Next 13 and 14: most visibly, a dynamic route’s params is a promise and has to be awaited. Nothing here uses pages/, getServerSideProps or the old head component.
Next.js App Router Scaffold runs entirely on your device — the files are generated in your browser from templates built into the page, nothing is installed or run, and no part of your project name or options is sent anywhere.
You’re on the Free plan. Compare plans
Most generated Next.js code on the open web is for the Pages Router, and the two are different enough that mixing them produces an application that does not work. This generates the App Router on Next 16 and React 19, and nothing else.
The version is not a label on the output, it is the output. Dynamic `params` is awaited, because it became a promise in Next 15 and that single change breaks more generated code than anything else. Metadata is an exported object rather than a head component. Route handlers export named HTTP methods. Components are Server Components unless they need not to be, and exactly one file in the default scaffold carries the client directive.
Every file is checked against the others before you see it: each relative import resolves to a file that is actually generated, every imported package is declared, every declared dependency is used, each script names something that exists, no two files claim the same path, and the package and TypeScript configuration parse. The page says what that does and does not prove.
What it does not do is pretend. Nothing is compiled, installed or run — there is no compiler in your browser — so the claim is that the pieces refer to each other correctly, not that the project builds. The templates themselves are put through the real TypeScript parser in this site's test suite, which is a different and stronger guarantee than a generator usually offers.
The environment example contains placeholders and is checked for anything that looks like a working credential, because a file meant to be committed is the worst place for one.
No. create-next-app installs dependencies and sets up a working project; this generates files you can read before committing to anything. It is useful when you want to see what the files would be, or want a layout the official tool does not offer.
Structurally, not by a compiler. Imports, dependencies, scripts and configuration are checked against each other. Nothing is installed, type-checked or run, because nothing in a browser can do that — and the page says so rather than implying otherwise.
Because it is a promise from Next 15 onward. Destructuring it directly, as every pre-15 example does, gives you a promise where you expected a string, and it fails at runtime rather than at build.
Tailwind 4 does not use one. The theme is declared in CSS, and the PostCSS plugin moved to its own package — using the v3 plugin name produces an error that does not mention the version.
No. The archive is built in your browser, including the compression format itself, and saved straight to your downloads. Your project name and options never leave the page.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab