NexGo

A Go-powered web framework inspired by Next.js: file-based routing, server-side rendering, hot reload and API routes in a single binary.

Open-source project

NexGo documentation site home page

The problem

Developers who like Go for its speed and simple deployment still reach for a Node.js stack when they want file-based routing and server rendering.

The solution

NexGo gives Go projects file-based routing, server-side rendering, API routes and hot reload, and compiles the result to a single binary with zero runtime dependencies.

Objective

Bring the Next.js developer experience to Go, with no Node.js or npm in the deployment.

Who it was for

Open-source project

How it was built

  1. Designed the routing convention around the file system, the way Next.js does.

  2. Implemented server rendering, API routes and hot reload using Go alone.

  3. Published the module under the MIT license, with a documentation site.

Technology and tools

GoServer-side renderingFile-based routingHot reload

Status and results

  • Published at version 1.0.5 under the MIT license
  • Installable with go install
  • Documentation site live at nexgo-doc.vercel.app

Related services