finds.dev

nextjs/nextgram

A sample Next.js app showing dynamic routing with modals as a route.

View on GitHubHomepage ↗

★ 1,016TypeScriptupdated Oct 2026

// the take

An official Next.js sample app from Vercel showing how to build a photo-modal UI using App Router's intercepting routes and parallel routes (`@modal` slot + `(.)photos/[id]`) — the same route renders as a modal on client navigation and as a standalone page on refresh. It's for developers who've hit the 'how do I do Instagram-style photo modals' problem in App Router and need a working reference.

Demonstrates a genuinely non-obvious pattern (parallel route slots + intercepting route conventions + `default.tsx` fallbacks) that the official docs explain in the abstract but rarely show end-to-end in a working app. Dead simple to read in one sitting — a handful of files, no state management or extra dependencies to wade through. Being maintained by the Next.js team itself means it's a reliable signal of the currently-supported way to do this, not a random blog post that's since rotted. One-click Vercel deploy button means you can poke at the behavior live instead of just reading code.

It's a toy demo, not a library or template — there's no reusable component here, you're expected to copy the routing structure into your own app by hand. No tests and no real backend: photos are static, so it doesn't show how this pattern behaves with slow data fetching, loading.tsx/error.tsx boundaries, or auth-gated routes, which is where this stuff actually gets hard. The README is a single paragraph; understanding why `default.tsx` exists in two places or what `(.)` actually matches requires reading Next.js's routing docs on the side, so it's not self-contained. Intercepting-route semantics have shifted in subtle ways across Next.js minor versions, so a snapshot like this can silently drift from current framework behavior if you're not pinned to the same version.

We read the README, the directory tree and a key source file in November 2026. Nobody pays to be listed. How we judge →

search the same ground:

// at a glance

Stars
1,016
Forks
220
Language
TypeScript
Last commit
14 Oct 2026

// nearby

If nextgram isn't quite it.

All repos →