I'm available to deliver your SaaS MVP in a few weeks, full-stack with the new Next.js App Router. Accelerate Your MVP Launch Now.

Nexar: application architecture for Next.js App Router apps

Tired of starting new Next.js apps with a spaghetti codebase? Nexar is here to help! It's a modular and layered architecture to build scalable, maintainable, and well-organized Nextjs App Router codebases. Say goodbye to spaghetti code!

Flavio Silva
Flavio SilvaJanuary 16, 2024
Updated on February 8, 2024
Nexar: application architecture for Next.js App Router apps

I'm excited to announce Nexar, an application architecture designed for Next.js App Router apps.

What is Nexar?

Nexar is a modular and layered application architecture to develop scalable, maintainable, and well-organized monolith codebases with the new Next.js App Router.

I designed it to be straightforward, minimal, and pragmatic while offering the benefits of application architectures.

Why Nexar?

A well-defined architecture helps developers understand the system and their role in building it. It promotes effective communication, collaboration, and alignment with business goals across different teams while enforcing clear conventions.

Engineering teams work better and faster when they agree on a specific, well-defined architecture that fits their use case. Nexar provides that, assuming it fits your use case.

OpenTask: an open-source reference implementation

I designed Nexar while building OpenTask, an open-source and responsive MVP task management web application created as part of a Next.js App Router case study I wrote.

You can browse OpenTask's codebase to see how it implements Nexar in its tiny details.


I invite you to read Nexar's docs, join the discussion, and share your thoughts. Let's evolve it together.

Does Nexar make sense for you?

Share your thoughts in the comments below. I'd love to hear your thoughts.

I'm using Giscus, so you can comment and give a thumbs up with your GitHub account. 😉

While you're here, please share this article. Your support means a lot to me!

Thanks for reading!

Nexar: application architecture for Next.js App Router apps by Flavio Silva is licensed under a Creative Commons Attribution 4.0 International License.

Leave a comment using your GitHub account

© 2024 Flavio Silva