NexGo Versions
Track every release. See what changed between versions and what's coming next.
SEO Killer Mode โ The Most SEO-Complete Go Framework
Comprehensive built-in SEO toolkit: auto sitemap.xml, robots.txt, canonical URLs, 10 JSON-LD schema types, OpenGraph + Twitter Cards, article OG tags, hreflang alternates, RSS feed generation, breadcrumbs, FAQ/Product/HowTo schemas, Core Web Vitals tracking, SEO audit, URL slugify, preload hints, HSTS, and SEO HTTP headers. Zero configuration needed.
SEO
Automatic /sitemap.xml from route table with lastmod, changefreq, priority. Auto /robots.txt with configurable allow/disallow rules.
WebSite, Organization, LocalBusiness, Article, BreadcrumbList, FAQ, Product, Review, HowTo, and generic JSON-LD builder.
Full og:*, twitter:*, article:published_time, article:section, article:tag support via seoTags template function.
Built-in RSS 2.0 feed renderer with categories, author, pub date. Register /rss.xml endpoint in one call.
Hreflang alternate links for multilingual sites. rel=prev/next for paginated content.
Built-in LCP, CLS, INP measurement script with beacon reporting to configurable endpoint.
Programmatic meta tag and HTML auditing. Checks title length, description, H1 count, alt attributes, canonical URLs.
Config-based 301/302 redirects, trailing slash normalization, HSTS middleware, auto Content-Language and security headers.
Template functions for resource preload/prefetch/prerender hints. Unicode-safe URL slug generation.
High-Performance Mode โ 200k+ req/sec
Cluster mode, async logging, response caching, atomic template reads, and route match caching. Push throughput from 50k to 200k+ req/sec on multi-core machines. No breaking changes.
Performance
Multiple HTTP workers sharing one TCP listener. Auto-detects CPU cores. Zero-downtime restart.
Buffered channel (8,192 entries) with background writer. Non-blocking I/O on the hot path.
In-memory full response cache with TTL. X-Cache: HIT/MISS headers. Microsecond response times.
sync.Map-based cache skips regex matching for known paths. 15ns vs 800ns lookups.
Lock-free template reads via sync/atomic.Value. O(1) constant time regardless of concurrency.
Configurable buffer sizes, timeouts, and keep-alive settings for high-throughput scenarios.
Islands Architecture โ Zero JS by Default
Pages ship as pure static HTML. Only interactive components ("islands") load JavaScript, with 5 hydration strategies. Fully backwards compatible with v2.0.x โ no breaking changes.
Islands Architecture
Full island registry with template rendering, JS serving, and hydration runtime.
client:load, client:visible, client:idle, client:media, client:none โ fine-grained control over when JS loads.
Render islands in templates with island "name" (props "k" "v") "client:visible".
/_nexgo/islands/{name}.js endpoint serves individual island JS files as ES modules.
Lightweight runtime using IntersectionObserver, requestIdleCallback, and matchMedia for efficient hydration.
Create reusable components without a .js file โ rendered server-side, zero JS shipped.
Hot reload support for island templates and JS files during development.
Configure the islands directory in nexgo.config.json. Defaults to "islands".
Auth, Database, WebSockets, Cluster Mode & Full-Stack DX
Major release: JWT auth, sessions, CSRF protection, database with ORM, WebSockets, cluster mode, plugin system, server actions, i18n, image optimization, deployment adapters for 8 platforms, and much more.
Security
Built-in JWT authentication with sign, verify, and refresh token support.
Cookie-based and store-backed session management with configurable expiry.
Automatic CSRF token generation and validation middleware.
Per-route and global rate limiting with sliding window algorithm.
Data
Unified database layer supporting both JSON file storage and SQL databases.
Lightweight ORM with model definitions, relations, queries, and migrations.
Schema migrations with up/down support and automatic version tracking.
Redis-backed caching with TTL, invalidation, and pub/sub support.
Infrastructure
Native WebSocket support with rooms, broadcasting, and auto-reconnect.
Multi-process clustering with shared state and automatic load balancing.
One-command deploy to Vercel, Fly.io, Railway, Render, AWS, GCP, Azure, and Docker.
Built-in /healthz and /readyz endpoints with custom check registration.
DX
Extensible plugin architecture with lifecycle hooks and dependency injection.
Define server-side mutations directly from templates with automatic form handling.
Test helpers for routes, middleware, and handlers with request mocking.
JSON-structured logging with levels, context fields, and log rotation.
Prometheus-compatible metrics endpoint with request duration, error rates, and custom counters.
Frontend
Internationalization with locale detection, translation files, plurals, and RTL layout support.
Automatic image resizing, format conversion (WebP/AVIF), and lazy loading.
CSS/JS bundling, minification, fingerprinting, and cache-busting.
Custom error pages (404, 500) and error boundaries that catch panics gracefully.
Attach middleware to individual routes or route groups with chaining support.
Content Security Policy header generation with nonce support for inline scripts.
Typed environment variable loading from .env files with validation and defaults.
SEO, Streaming SSR, ISR, Worker Pools & Advanced Features
Production-ready features: SEO meta tags, sitemaps, streaming SSR, incremental static regeneration, worker pools, response caching, parallel data loading, and template caching.
New Features
Meta tags, OpenGraph, Twitter Cards, sitemap.xml, robots.txt, and JSON-LD structured data generation.
Send HTML progressively as it's ready โ show the shell immediately, stream content later. Includes SSE support.
Cache pages and rebuild them in the background after a configurable interval โ like Next.js ISR.
Run tasks concurrently with controlled parallelism. Map, ForEach, and global pool support.
Cache GET responses in memory with TTL. Automatic X-Cache: HIT/MISS headers.
Load multiple data sources concurrently and merge results โ like Promise.all() in JS.
Templates compiled once and cached. Parallel template loading with worker pool.
HTMX Support, State Management & API Helpers
Built-in helpers for writing shorter, cleaner API handlers with HTMX support and easy state management.
Features
IsHTMX, HTMXHTML, HTMXTrigger, HTMXHeader โ send HTML fragments and fire client events.
Thread-safe global state with SetState, GetState, DeleteState, and NewState for isolated sessions.
Escape() for XSS-safe output and HTML() for raw HTML responses.
Complete HTMX-powered todo app in the docs with CRUD operations.
Initial Public Release
The Go-powered web framework inspired by Next.js. File-based routing, SSR, and hot reload.
Features
Automatic route discovery from pages/ directory with dynamic segments.
SSR, SSG, and SPA modes with data loaders like getServerSideProps.
SSE-based file watching with instant browser refresh.
REST endpoints with method routing, JSON helpers, and pagination.
Built-in debug panel with route inspector, request logs, and performance metrics.
Recover, Logger, SecurityHeaders, Gzip, CORS, and Cache middleware.
v2.1.0 vs v2.2.0
What changed and why you should upgrade.
Feature Breakdown
| Feature | v2.1.0 | v2.2.0 | Details |
|---|---|---|---|
| Cluster Mode | × | ✓ | Multiple HTTP workers, shared listener, auto CPU detection |
| Async Logging | × | ✓ | Buffered channel, non-blocking I/O, background writer |
| Response Caching | × | ✓ | In-memory full response cache, TTL, X-Cache headers |
| Route Match Caching | × | ✓ | sync.Map cache, 15ns lookups, auto-invalidation |
| Atomic Template Reads | × | ✓ | Lock-free reads via sync/atomic.Value, zero contention |
| Islands Architecture | ✓ | ✓ | islands.NewRegistry() โ unchanged |
| File-Based Routing | ✓ | ✓ | Automatic route discovery โ unchanged |
| Server-Side Rendering | ✓ | ✓ | SSR, SSG, and SPA modes โ unchanged |
| Hot Reload (HMR) | ✓ | ✓ | SSE-based file watching + island HMR |
| API Routes | ✓ | ✓ | REST endpoints with method routing โ unchanged |
| Data Loaders | ✓ | ✓ | getServerSideProps-style loaders โ unchanged |
| Middleware | ✓ | ✓ | Recover, Logger, SecurityHeaders, Gzip, CORS โ unchanged |
| DevTools Panel | ✓ | ✓ | Route inspector, request logs โ unchanged |
| HTMX Helpers | ✓ | ✓ | IsHTMX, HTMXHTML, HTMXTrigger โ unchanged |
| State Management | ✓ | ✓ | SetState / GetState / DeleteState โ unchanged |
| SEO Meta Tags | ✓ | ✓ | seo.DefaultMeta() โ OpenGraph, Twitter Cards โ unchanged |
| Streaming SSR | ✓ | ✓ | stream.StreamHTML() โ progressive rendering โ unchanged |
| ISR (Incremental Regeneration) | ✓ | ✓ | isr.New(ttl) โ cache with background rebuild โ unchanged |
| Worker Pools | ✓ | ✓ | worker.New(n), Map(), ForEach() โ unchanged |
| Response Caching | ✓ | ✓ | api.Cache(ttl) โ middleware with X-Cache headers โ unchanged |
| Parallel Data Loading | ✓ | ✓ | renderer.NewParallelLoader() โ Promise.all style โ unchanged |
| Template Caching | ✓ | ✓ | r.LoadAll(), r.LoadParallel() โ compile once โ unchanged |
| JWT Auth | ✓ | ✓ | auth.JWT() โ sign, verify, refresh tokens โ unchanged |
| Sessions | ✓ | ✓ | session.New() โ cookie and store-backed sessions โ unchanged |
| CSRF Protection | ✓ | ✓ | csrf.Protect() โ automatic token validation โ unchanged |
| Rate Limiting | ✓ | ✓ | ratelimit.New() โ sliding window algorithm โ unchanged |
| i18n/RTL | ✓ | ✓ | i18n.New() โ locale detection, translations, RTL โ unchanged |
| WebSockets | ✓ | ✓ | ws.Upgrade() โ rooms, broadcasting โ unchanged |
| Database / ORM | ✓ | ✓ | db + orm + migrations โ unchanged |
| Deployment Adapters | ✓ | ✓ | 8 platforms โ unchanged |
| Cluster Mode | ✓ | ✓ | cluster.Start() โ multi-process โ unchanged |
| Plugin System | ✓ | ✓ | plugin.Register() โ lifecycle hooks โ unchanged |
Upgrade to v2.2.0
Get 200k+ req/sec with cluster mode, async logging, and response caching. Plus Islands Architecture from v2.1.0. Drop-in upgrade โ no breaking changes.