{"id":18992101,"url":"https://github.com/jesperkha/topaz","last_synced_at":"2026-04-14T16:30:21.117Z","repository":{"id":37262769,"uuid":"472101917","full_name":"jesperkha/topaz","owner":"jesperkha","description":"Bare bones wrapper for Go http. Making a simple backend easy and quick to set up.","archived":false,"fork":false,"pushed_at":"2022-06-20T22:42:29.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T15:11:53.680Z","etag":null,"topics":["backend","easy-to-use","golang","server","simple"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jesperkha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-20T21:01:26.000Z","updated_at":"2022-03-25T17:29:29.000Z","dependencies_parsed_at":"2022-09-08T00:12:13.903Z","dependency_job_id":null,"html_url":"https://github.com/jesperkha/topaz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesperkha%2Ftopaz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesperkha%2Ftopaz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesperkha%2Ftopaz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesperkha%2Ftopaz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jesperkha","download_url":"https://codeload.github.com/jesperkha/topaz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240003444,"owners_count":19732409,"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":["backend","easy-to-use","golang","server","simple"],"created_at":"2024-11-08T17:16:28.288Z","updated_at":"2026-04-14T16:30:21.045Z","avatar_url":"https://github.com/jesperkha.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\".github/topaz.png\" alt=\"Logo\" width=\"80\"\u003e\n  \u003cbr\u003e\n  \u003cimg src=\".github/title.svg\" alt=\"Logo\" width=\"80\"\u003e\n\n  \u003cp align=\"center\"\u003e\n    Simplified HTTP server package. Lets you  set up\u003cbr\u003e a web server in minimal time.\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Installation\n\n```console\n$ go get github.com/jesperkha/topaz\n```\n\n\u003cbr\u003e\n\n## Example\n\n```go\n...\n\ntype user struct {\n  id string\n}\n\nfunc main() {\n  server := topaz.NewServer()\n\n  // Serve a static directory\n  server.Static(\"/\", \"pages\")\n\n  // Example of a handler to create a new user json object with a given id\n  server.Get(\"/create/:id\", func(req topaz.Request, res topaz.Response) {\n    // Gets the id value from the URL\n    userId := req.Param(\"id\")\n    newUser := user{id: userId}\n\n    // Send back data as JSON\n    if err := res.JSON(newUser); err != nil {\n      res.Status(500)\n    }\n\n    // If a status is not set 200 is assumed\n  })\n\n  // Will serve to localhost:3000 unless the PORT env variable is set\n  server.Listen(server.EnvPort(\":3000\"))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesperkha%2Ftopaz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjesperkha%2Ftopaz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesperkha%2Ftopaz/lists"}