{"id":24438600,"url":"https://github.com/haquenafeem/gorocks","last_synced_at":"2025-09-01T03:06:05.484Z","repository":{"id":213478530,"uuid":"734196317","full_name":"haquenafeem/gorocks","owner":"haquenafeem","description":"Experimental web framework written in golang","archived":false,"fork":false,"pushed_at":"2023-12-22T05:32:14.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T00:12:54.117Z","etag":null,"topics":["api","experimental","framework","http-server"],"latest_commit_sha":null,"homepage":"https://github.com/haquenafeem/gorocks","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/haquenafeem.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-21T05:20:32.000Z","updated_at":"2023-12-22T05:50:52.000Z","dependencies_parsed_at":"2023-12-21T09:29:33.453Z","dependency_job_id":"8a1c45d3-0e09-4cd2-b283-d37121cad8b4","html_url":"https://github.com/haquenafeem/gorocks","commit_stats":null,"previous_names":["haquenafeem/gorocks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/haquenafeem/gorocks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haquenafeem%2Fgorocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haquenafeem%2Fgorocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haquenafeem%2Fgorocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haquenafeem%2Fgorocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haquenafeem","download_url":"https://codeload.github.com/haquenafeem/gorocks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haquenafeem%2Fgorocks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273068846,"owners_count":25039911,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","experimental","framework","http-server"],"created_at":"2025-01-20T19:17:15.489Z","updated_at":"2025-09-01T03:06:05.442Z","avatar_url":"https://github.com/haquenafeem.png","language":"Go","readme":"# GOROCKS\nA simple web framework.\n\n## Notes\n- Experimental\n- Needs Work\n\n## Example \n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"time\"\n\n\t\"github.com/haquenafeem/gorocks\"\n)\n\nfunc main() {\n\tapp := gorocks.New()\n\t// If you want your response to be of json type; \"Content-Type\":\"application/json\"\n\tapp.Use(gorocks.ApplicationJSON)\n\tapp.Use(TimeTaken)\n\n\tapp.Get(\"/\", func(a *gorocks.App) {\n\t\tapp.JSON(http.StatusOK, gorocks.Map{\n\t\t\t\"message\": \"ok\",\n\t\t})\n\t})\n\n\tif err := app.Run(\":9000\"); err != nil {\n\t\tpanic(err)\n\t}\n}\n\n// TimeTaken\n// Middleware\nfunc TimeTaken(next gorocks.HandlerFunc) gorocks.HandlerFunc {\n\treturn func(app *gorocks.App) {\n\t\tnow := time.Now()\n\t\tnext(app)\n\t\tpassed := time.Since(now)\n\t\tout := fmt.Sprintf(\"time taken to complete %s is %v\", app.HttpRequest().URL.Path, passed.Seconds())\n\t\tfmt.Println(out)\n\t}\n}\n\n// test by curl localhost:9000\n// output :\n// {\n//         \"message\": \"ok\"\n// }\n```\n\u003cp\u003e\n  More Example \u003ca href=\"https://github.com/haquenafeem/gorocks/tree/main/example\"\u003eHere\u003c/a\u003e\n\u003c/p\u003e","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaquenafeem%2Fgorocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaquenafeem%2Fgorocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaquenafeem%2Fgorocks/lists"}