{"id":17793364,"url":"https://github.com/instantan/web","last_synced_at":"2026-05-03T02:41:28.906Z","repository":{"id":259131549,"uuid":"865973107","full_name":"Instantan/web","owner":"Instantan","description":"Build robust web applications with pure Go. No external dependencies, just the power of the standard library.","archived":false,"fork":false,"pushed_at":"2024-10-23T12:54:02.000Z","size":384,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-02T02:18:19.844Z","etag":null,"topics":["openapi","openapi3","redoc","scalar","swagger","typescript-generator"],"latest_commit_sha":null,"homepage":"https://web.instantan.io","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/Instantan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2024-10-01T12:38:28.000Z","updated_at":"2024-10-23T12:54:06.000Z","dependencies_parsed_at":"2025-02-07T17:26:25.998Z","dependency_job_id":null,"html_url":"https://github.com/Instantan/web","commit_stats":null,"previous_names":["instantan/web"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Instantan%2Fweb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Instantan%2Fweb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Instantan%2Fweb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Instantan%2Fweb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Instantan","download_url":"https://codeload.github.com/Instantan/web/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246741117,"owners_count":20826067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["openapi","openapi3","redoc","scalar","swagger","typescript-generator"],"created_at":"2024-10-27T11:08:07.501Z","updated_at":"2026-05-03T02:41:28.878Z","avatar_url":"https://github.com/Instantan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/Instantan/web/blob/e6d6dfdecccc35591cf2889d6b8430f8873f2812/website/src/assets/social-preview.png?raw=true\" alt=\"Web: The Zero-Dependency Go Web Framework\" /\u003e\n\n\u003e Warning: This package is currently (not even) in alpha, not really tested yet and should not be used yet\n\n## Todos\n- Find a good api for defining sockets -\u003e maybe dont implement sockets\n- Content type handling in generated api\n\n## Key Features\n- **Zero Dependencies**: Built entirely on Go's standard library. No external packages required.\n- **OpenAPI Integration**: Automatically generate OpenAPI specifications for your APIs, enhancing documentation and interoperability.\n- **TypeScript API generator**: Automatically generate TypeScript definitions for your Go APIs, ensuring type safety across your full-stack application.\n\n## Quick Start\n\nInstall with:\n```bash\ngo get github.com/Instantan/web\n```\n\nExample usage:\n```go\npackage main\n\nimport (\n  \"log\"\n  \"net/http\"\n  \"github.com/Instantan/web\"\n)\n\nfunc main() {\n  w := web.NewWeb()\n\n  w.Info(web.Info{\n    Title: \"MyProject\",\n    Version: \"0.0.1\",\n  })\n\n  w.OpenApi(web.OpenApi{\n    DocPath:   \"/api/doc.json\",\n    UiPath:    \"/api/doc\",\n    UiVariant: \"scalar\",\n  })\n\n  w.Api(web.Api{\n    Method: http.MethodGet,\n    Path:   \"/hello/{name}\",\n    Parameter: web.Parameter{\n      Path: web.Path{\n        \"name\": web.PathParam{\n          Description: \"The name to say hello to\",\n          Value:       \"world\",\n        },\n      },\n    },\n    Responses: web.Responses{\n      StatusOK: \"Hello World\",\n    },\n    Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n      w.Write([]byte(\"Hello \" + r.PathValue(\"name\")))\n    }),\n  })\n\n  log.Println(\"Server listening on :8080\")\n  log.Println(\"Visit http://localhost:8080/api/doc to view the documentation\")\n  if err := http.ListenAndServe(\":8080\", w.Server()); err != nil {\n    panic(err)\n  }\n}\n```\n\n---\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/Instantan/web)](https://goreportcard.com/report/github.com/Instantan/web)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstantan%2Fweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finstantan%2Fweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finstantan%2Fweb/lists"}