Nguyen.go — Next.js for Go
Full-stack Go framework for modern web. Write both frontend and backend in Go, compile frontend to WebAssembly, deploy a single binary.
Highlights
Rendering & Frontend:
.gox = one route)UseState, UseEffect, UseQuery, UseMutation...Backend (new in v1.0.7):
CLI:
nguyen create # Scaffold project
nguyen dev # Dev server + HMR
nguyen build # Compile .gox → WASM + static HTML
nguyen start # Production server
nguyen export # Static pre-render for CDN
nguyen migrate # Database migrations (up/down/create/status)
Quick example
---
import "nguyen.go/pkg/core"
count, setCount := core.UseState("count", 0)
func increment() {
setCount(count + 1)
}
---
<h1>Count: {count}</h1>
<button @click="increment()">+1</button>
Backend API
app := nguyen.New(
nguyen.WithPort(3000),
nguyen.WithPages("pages"),
nguyen.WithDatabase(config.DatabaseConfig{
Driver: "postgres",
DSN: "postgres://user:pass@localhost/mydb?sslmode=disable",
}),
nguyen.WithAuth(config.AuthConfig{Enabled: true, JWTSecret: "secret"}),
nguyen.WithSetup(func(f *fiber.App) {
api := f.Group("/api")
api.Post("/login", server.RateLimit(5, time.Minute), loginHandler)
api.Get("/me", app.Auth().Required(), meHandler)
}),
)
app.Events().On("user.registered", func(payload interface{}) {
app.Mailer().SendTemplate([]string{user.Email}, "Welcome!", "welcome", user)
})
app.Listen(":3000")
Requirements
Installation
go install github.com/dev2k6/Nguyen.go/cmd/nguyen@latest
nguyen create my-app
nguyen dev
Links
No talks yet. Create the first talk

Công cụ tính GPA thuộc Thái Nguyên IT

Dùng AI coding tool bất kỳ với CommandCode — qua chuẩn OpenAI API.

Thuê bot Zalo quảng bá, Chatbot tự động hóa tích hợp AI

Hệ thống chuyên cung cấp mã nguồn website uy tín tại Việt Nam

Mã nguồn bán proxy xoay, proxy tĩnh tự động
No reviews yet

Lớp bộ nhớ dành cho phát triển ứng dụng AI

Thiết kế chi tiết cơ khí 3D tham số và chuẩn bị in 3D, mã nguồn mở

Switch Claude Code and ChatGPT accounts without signing again

Stay close to the command line

Animated web backgrounds your AI coding agent can install
67 typed Payload CMS blocks, installed as source and fully wired

Reviews & comments