Next.js logo

Next.js

A small framework for server-rendered universal JavaScript apps
2.8K
2.6K
+ 1
241

What is Next.js?

Next.js is a minimalistic framework for server-rendered React applications.
Next.js is a tool in the Frameworks (Full Stack) category of a tech stack.
Next.js is an open source tool with 77.5K GitHub stars and 15.5K GitHub forks. Here’s a link to Next.js's open source repository on GitHub

Who uses Next.js?

Companies
784 companies reportedly use Next.js in their tech stacks, including medium.com, CircleCI, and ViaVarejo.

Developers
1677 developers on StackShare have stated that they use Next.js.

Next.js Integrations

React, Material-UI, Strapi, Sanity, and Builder are some of the popular tools that integrate with Next.js. Here's a list of all 26 tools that integrate with Next.js.
Pros of Next.js
35
Automatic server rendering and code splitting
29
Built with React
26
Easy setup
19
Zero setup
19
Universal JavaScript
17
TypeScript
13
Static site generator
9
Just JavaScript
9
Incremental static regeneration
9
Simple deployment
8
Frictionless development
7
Filesystem as an API
7
Isomorphic React applications
7
Testing
6
Has many examples and integrations
6
Well Documented
6
Everything is a function
5
Not nuxt
3
Not vue
1
File based routing + hooks built in
Decisions about Next.js

Here are some stack decisions, common use cases and reviews by companies and developers who chose Next.js in their tech stack.

Martin Johannesson
Senior Software Developer at IT Minds · | 13 upvotes · 336.4K views

At IT Minds we create customized internal or #B2B web and mobile apps. I have a go to stack that I pitch to our customers consisting of 3 core areas. 1) A data core #backend . 2) A micro #serverless #backend. 3) A user client #frontend.

For the Data Core I create a backend using TypeScript Node.js and with TypeORM connecting to a PostgreSQL Exposing an action based api with Apollo GraphQL

For the micro serverless backend, which purpose is verification for authentication, autorization, logins and the likes. It is created with Next.js api pages. Using MongoDB to store essential information, caching etc.

Finally the frontend is built with React using Next.js , TypeScript and @Apollo. We create the frontend as a PWA and have a AMP landing page by default.

See more

I'm working as one of the engineering leads in RunaHR. As our platform is a Saas, we thought It'd be good to have an API (We chose Ruby and Rails for this) and a SPA (built with React and Redux ) connected. We started the SPA with Create React App since It's pretty easy to start.

We use Jest as the testing framework and react-testing-library to test React components. In Rails we make tests using RSpec.

Our main database is PostgreSQL, but we also use MongoDB to store some type of data. We started to use Redis  for cache and other time sensitive operations.

We have a couple of extra projects: One is an Employee app built with React Native and the other is an internal back office dashboard built with Next.js for the client and Python in the backend side.

Since we have different frontend apps we have found useful to have Bit to document visual components and utils in JavaScript.

See more
Daniel Hernández Alcojor
Frontend Developer at atSistemas · | 8 upvotes · 440.9K views

I'm building, from scratch, a webapp. It's going to be a dashboard to check on our apps in New Relic and update the Apdex from the webapp. I have just chosen Next.js as our framework because we use React already, and after going through the tutorial, I just loved the latest changes they have implemented.

But we have to decide on a CSS framework for the UI. I'm partial to Bulma because I love that it's all about CSS (and you can use SCSS from the start), that it's rather lightweight and that it doesn't come with JavaScript clutter. One of the things I hate about Bootstrap is that you depend on jQuery to use the JavaScript part. My boss loves UIkIt, but when I've used it in the past, I didn't like it.

What do you think we should use? Maybe you have another suggestion?

See more
Nash Nziramasanga
Software Developer at Billow Software · | 3 upvotes · 35.1K views
Shared insights
on
SanitySanityContentfulContentfulNext.jsNext.js

Im building a simple portfolio website using Next.js and all the content is static, what's the best between Contentful and Sanity.

I really like the self-hosting and custom layout with sanity however I don't think time customizing is worth it anymore.

Any thoughts

See more
Piotr Brudny

I am building a POC in Next.js. I usually use CRA+ MobX + Contentful, but this time I want to give a try to Next and GraphQL. Any suggestions on what tool to use for state management/content management? I am looking for a modern and quick to implement solution.

See more
Soufiane L

I'm planning to build a freelance marketplace website, using tools like Next.js, Firebase Authentication, Node.js, but I need to know which type of database is suitable with performance and powerful features. I'm trying to figure out what the best stack is for this project. If anyone has advice please, I’d love to hear more details. Thanks.

See more

Blog Posts

Next.js's Features

  • Zero setup. Use the filesystem as an API
  • Only JavaScript. Everything is a function
  • Automatic server rendering and code splitting
  • Data fetching is up to the developer
  • Anticipation is the key to performance
  • Simple deployment

Next.js Alternatives & Comparisons

What are some alternatives to Next.js?
Create React App
Create React apps with no build configuration.
Gatsby
Gatsby lets you build blazing fast sites with your data, whatever the source. Liberate your sites from legacy CMSs and fly into the future.
Hexo
Hexo is a fast, simple and powerful blog framework. It parses your posts with Markdown or other render engine and generates static files with the beautiful theme. All of these just take seconds.
LoopBack
A highly-extensible, open-source Node.js framework that enables you to create dynamic end-to-end REST APIs with little or no coding. Connect to multiple data sources, write business logic in Node.js, glue on top of your existing services and data, connect using JS, iOS & Android SDKs.
React
Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
See all alternatives

Next.js's Followers
2614 developers follow Next.js to keep up with related blogs and decisions.