Replace Your Frontend
Stack with NexGo
Everything you need โ routing, rendering, and APIs โ packed into a lightweight, high-performance engine. No setup. Just build fast.
Everything you need,
nothing you don't
NexGo ships with all the primitives to build production web apps โ without the complexity.
SEO Killer Mode NEW in v2.2.1
The most SEO-complete Go framework. Auto sitemap, robots.txt, canonical URLs, 10 JSON-LD schema types, OpenGraph, Twitter Cards, RSS feeds, Core Web Vitals tracking, hreflang, breadcrumbs, SEO audit โ all built-in with zero config.
Islands Architecture NEW in v2.1.0
Ship zero JavaScript by default. Only interactive components ("islands") load JS โ with 5 hydration strategies: client:load, client:visible, client:idle, client:media, and client:none. A blog page with a like button ships ~2KB vs ~85KB with Next.js.
<!-- Static HTML โ 0 KB JavaScript --> <article>{{ .Props.content }}</article> <!-- Only this loads JS (~1.5KB) --> {{ island "like-btn" (props "postId" .Params.slug) "client:visible" }}
High-Performance Mode NEW in v2.2.0
200,000+ req/sec on multi-core machines. Cluster mode spawns one HTTP worker per CPU core, async logging eliminates I/O blocking, response caching serves pages in microseconds, and atomic template reads ensure zero lock contention.
File-Based Routing
Drop HTML files in pages/ and routes are created automatically. Dynamic segments with [param] syntax, catch-all routes, and nested layouts.
Server-Side Rendering
Full SSR, SSG, and SPA modes. Data loaders run server-side before rendering โ just like Next.js getServerSideProps.
Hot Reload
Save a file and your browser refreshes instantly. Powered by SSE-based HMR โ no WebSockets, no complex setup.
API Routes
Add .go files in pages/api/ to create REST endpoints with method routing, JSON helpers, pagination, and more.
Single Binary Deploy
Compile to a ~10MB binary. Deploy anywhere Go runs. Just copy the binary + your pages โ no Node.js, no npm, no runtime.
DevTools Panel
Built-in debug panel at /_nexgo/devtools. Live request logs, route inspector, performance metrics, and config viewer.
SEO Killer Mode v2.2.1
Auto sitemap, robots.txt, canonical URLs, 10 JSON-LD types, OpenGraph, Twitter Cards, RSS, Core Web Vitals, hreflang, breadcrumbs, SEO audit & more.
Streaming SSR
Send HTML progressively as it's ready. Show the shell immediately, stream content later. Includes SSE support.
ISR
Incremental Static Regeneration โ cache pages and rebuild in the background after a configurable interval.
Auth & Sessions
JWT authentication, session management, CSRF protection, and role-based access control โ all built in with zero deps.
WebSocket Support
Native WebSocket implementation using HTTP hijacking. Hub-based messaging with rooms, broadcasting, and zero external libraries.
Database & ORM
Built-in JSON database, SQL query builder, ORM with models and relations, and a migration system โ all using pure Go.
i18n & RTL
Locale-based routing, translation files, automatic locale detection, and built-in RTL support for Arabic, Hebrew, and more.
Deploy Anywhere
One-command deployment configs for Docker, Vercel, AWS Lambda, Cloudflare, Fly.io, Railway, Netlify, and Kubernetes.
Plugin System
Hook-based plugin architecture for extending NexGo with custom middleware, routes, template functions, and lifecycle events.
Next.js DX,
Go Performance
NexGo brings the familiar Next.js developer experience to Go. File-based routing, data loaders, and layouts โ all powered by Go's blazing-fast runtime.
html/template engine โ XSS safe by default
package api import ( "net/http" "github.com/salmanfaris22/nexgo/pkg/api" "github.com/salmanfaris22/nexgo/pkg/router" ) func init() { router.RegisterAPI("/api/posts", Posts) } func Posts(w http.ResponseWriter, r *http.Request) { api.Route(w, r, api.Methods{ "GET": func(w http.ResponseWriter, r *http.Request) { page, limit := api.Paginate(r) posts := getAllPosts(page, limit) api.JSON(w, posts) }, "POST": createPost, }) }
<!-- Auto-mapped to /blog/:slug -->
Familiar,
Intuitive Layout
my-app/ โโโ main.go # Entry point โโโ nexgo.config.json # Config โโโ go.mod โ โโโ pages/ # Routes (auto) โ โโโ index.html # โ / โ โโโ about.html # โ /about โ โโโ blog/ โ โ โโโ index.html # โ /blog โ โ โโโ [slug].html # โ /blog/:slug โ โโโ api/ โ โโโ hello.go # โ /api/hello โ โโโ islands/ # Interactive islands โ โโโ counter.html # Server template โ โโโ counter.js # Client JS (on demand) โ โโโ layouts/ โ โโโ default.html # Wraps pages โโโ components/ # Partials โโโ static/ # Assets โ /static/ โโโ css/ โโโ js/
CLI Commands
โก PATH tip: After install, run
export PATH=$PATH:$(go env GOPATH)/bin to use the nexgo command globally.
Made by Salman Faris
Full-stack developer building cool things with Go and modern web tech.