{"id":34762276,"url":"https://github.com/go-mizu/mizu","last_synced_at":"2026-04-02T13:08:50.967Z","repository":{"id":321956846,"uuid":"1087757431","full_name":"go-mizu/mizu","owner":"go-mizu","description":"Zero-dependency web framework built entirely on Go's standard library","archived":false,"fork":false,"pushed_at":"2026-02-21T05:17:30.000Z","size":31020,"stargazers_count":44,"open_issues_count":8,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-21T06:15:11.313Z","etag":null,"topics":["framework","go"],"latest_commit_sha":null,"homepage":"https://docs.go-mizu.dev","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/go-mizu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-01T15:27:58.000Z","updated_at":"2026-02-18T13:24:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/go-mizu/mizu","commit_stats":null,"previous_names":["go-mizu/mizu"],"tags_count":50,"template":false,"template_full_name":null,"purl":"pkg:github/go-mizu/mizu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-mizu%2Fmizu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-mizu%2Fmizu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-mizu%2Fmizu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-mizu%2Fmizu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-mizu","download_url":"https://codeload.github.com/go-mizu/mizu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-mizu%2Fmizu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29724088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T19:15:09.475Z","status":"ssl_error","status_checked_at":"2026-02-22T19:15:09.045Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["framework","go"],"created_at":"2025-12-25T06:57:48.051Z","updated_at":"2026-04-02T13:08:50.953Z","avatar_url":"https://github.com/go-mizu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mizu\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/go-mizu/mizu.svg)](https://pkg.go.dev/github.com/go-mizu/mizu)\n[![CI](https://github.com/go-mizu/mizu/actions/workflows/test.yml/badge.svg)](https://github.com/go-mizu/mizu/actions/workflows/test.yml)\n\n\u003e A lightweight, composable web framework for Go.\n\nMizu builds on `net/http` (Go 1.22+ ServeMux patterns) and adds a thin context layer, middleware support, and app lifecycle management. No custom DSLs, no hidden global state — just plain Go.\n\n### Quickstart\n\n```bash\ngo get github.com/go-mizu/mizu@latest\n```\n\n```go\npackage main\n\nimport \"github.com/go-mizu/mizu\"\n\nfunc main() {\n\tapp := mizu.New()\n\n\tapp.Get(\"/\", func(c *mizu.Ctx) error {\n\t\treturn c.Text(200, \"Hello, Mizu!\")\n\t})\n\n\tapp.Listen(\":3000\")\n}\n```\n\n### Features\n\n- **Router** — thin wrapper over `http.ServeMux` with method helpers (`Get`, `Post`, `Put`, `Delete`), groups, and prefixes\n- **Ctx** — request context with helpers for params, query, forms, JSON binding, and response writing (Text, JSON, HTML, Stream, SSE)\n- **Middleware** — `func(Handler) Handler` composable pattern, compatible with standard `net/http` middleware via `Compat`\n- **App lifecycle** — structured startup, readiness checks, graceful shutdown with configurable timeouts\n- **Logging** — structured request logger built on `slog`\n\n### Routing\n\n```go\napp.Get(\"/users\", listUsers)\napp.Post(\"/users\", createUser)\napp.Put(\"/users/:id\", updateUser)\napp.Delete(\"/users/:id\", deleteUser)\n\napi := app.Prefix(\"/api\")\napi.Group(\"/v1\", func(g *mizu.Router) {\n    g.Get(\"/ping\", func(c *mizu.Ctx) error { return c.Text(200, \"pong\") })\n})\n```\n\n### Middleware\n\n```go\napp.Use(requestID, auditLog)\n\n// Standard net/http middleware works too\napp.Compat.Use(recoverer, gzipMiddleware)\n```\n\n### Context helpers\n\n```go\nid := c.Param(\"id\")\nq := c.Query(\"q\")\n\nvar in CreateUser\nc.BindJSON(\u0026in, 1\u003c\u003c20)\n\nc.Text(200, \"ok\")\nc.JSON(201, map[string]any{\"id\": 1})\nc.HTML(200, \"\u003ch1\u003eHello\u003c/h1\u003e\")\nc.Stream(func(w io.Writer) error { _, _ = io.WriteString(w, \"chunk\"); return nil })\nc.SSE(ch)\n```\n\n### App lifecycle\n\n```go\napp := mizu.New(\n    mizu.WithPreShutdownDelay(1*time.Second),\n    mizu.WithShutdownTimeout(15*time.Second),\n)\n\napp.Listen(\":8080\")\napp.ListenTLS(\":8443\", \"cert.pem\", \"key.pem\")\n\nhttp.Handle(\"/healthz\", app.HealthzHandler())\n```\n\n### Contributing\n\nContributions are welcome — report issues, suggest improvements, or submit pull requests.\n\n### License\n\nMIT License © 2025 Mizu Contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-mizu%2Fmizu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-mizu%2Fmizu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-mizu%2Fmizu/lists"}