{"id":24199640,"url":"https://github.com/poteto-go/poteto","last_synced_at":"2026-01-12T01:51:35.010Z","repository":{"id":255305388,"uuid":"849165434","full_name":"poteto-go/poteto","owner":"poteto-go","description":"WebAPI Framework for golang","archived":false,"fork":false,"pushed_at":"2025-09-08T09:30:18.000Z","size":613,"stargazers_count":6,"open_issues_count":36,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-21T23:42:36.381Z","etag":null,"topics":["go","go-library","golang","poteto","webapi","webframework"],"latest_commit_sha":null,"homepage":"","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/poteto-go.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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":"2024-08-29T05:11:06.000Z","updated_at":"2025-09-05T06:43:59.000Z","dependencies_parsed_at":"2025-04-29T05:18:48.622Z","dependency_job_id":"b23b70c9-6cdc-41ff-8ab0-e17cc2118207","html_url":"https://github.com/poteto-go/poteto","commit_stats":null,"previous_names":["poteto0/poteto","poteto-go/poteto"],"tags_count":83,"template":false,"template_full_name":null,"purl":"pkg:github/poteto-go/poteto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poteto-go%2Fpoteto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poteto-go%2Fpoteto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poteto-go%2Fpoteto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poteto-go%2Fpoteto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poteto-go","download_url":"https://codeload.github.com/poteto-go/poteto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poteto-go%2Fpoteto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["go","go-library","golang","poteto","webapi","webframework"],"created_at":"2025-01-13T20:37:31.069Z","updated_at":"2026-01-12T01:51:34.995Z","avatar_url":"https://github.com/poteto-go.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Poteto\r\n\r\n\u003cimg src=\"assets/logo.svg\"\u003e\r\n\r\n## Simple Web Framework of GoLang\r\n\r\n![](https://img.shields.io/badge/go-1.23-lightblue)\r\n![](https://img.shields.io/badge/go-1.24-lightblue)\r\n\r\n```bash\r\ngo get -u github.com/poteto-go/poteto@latest\r\n```\r\n\r\nIf you try latest experiment version\r\n\r\nhttps://github.com/poteto-go/poteto/blob/main/EXPERIMENT.md\r\n\r\n```bash\r\ngo get -u github.com/poteto-go/poteto@exp\u003cversion\u003e\r\n```\r\n\r\n## Deep Wiki\r\n\r\nhttps://deepwiki.com/poteto-go/poteto\r\n\r\n## Quick Start\r\n\r\n```go\r\nfunc main() {\r\n\tp := poteto.New()\r\n\tp.Register(middleware.CORSWithConfig(middleware.CORSConfig{\r\n\t\tAllowOrigins: []string{\"*\"},\r\n\t\tAllowMethods: []string{http.MethodGet, http.MethodPut, http.MethodPost, http.MethodDelete},\r\n\t}))\r\n\r\n\tp.GET(\"/\", func(ctx poteto.Context) error {\r\n\t\treturn ctx.JSON(http.StatusOK, map[string]string{\r\n\t\t\t\"message\": \"Hello World\",\r\n\t\t})\r\n\t})\r\n\r\n\tuserApi := poteto.Api(\"/users\", func(leaf poteto.Leaf) {\r\n\t\tleaf.GET(\"/:id\", func(ctx poteto.Context) error {\r\n\t\t\tid, _ := p.PathParam(\"id\")\r\n\t\t\treturn ctx.JSON(http.StatusOK, map[string]string{\r\n\t\t\t\t\"id\": id,\r\n\t\t\t})\r\n\t\t})\r\n\t})\r\n\r\n\tp.AddApi(userApi)\r\n\r\n\tp.Run(\"3000\")\r\n}\r\n```\r\n\r\n### UT\r\n\r\n\u003e [!NOTE]\r\n\u003e Poteto developers can easily test without setting up a server.\r\n\r\n```go\r\nfunc main() {\r\n\tp := poteto.New()\r\n\r\n\tp.GET(\"/users\", func(ctx poteto.Context) error {\r\n\t\treturn ctx.JSON(http.StatusOK, map[string]string{\r\n\t\t\t\"id\":   \"1\",\r\n\t\t\t\"name\": \"tester\",\r\n\t\t})\r\n\t})\r\n\r\n\tres := p.Play(http.MethodGet, \"/users\")\r\n\tresBodyStr := res.Body.String\r\n\t// =\u003e {\"id\":\"1\",\"name\":\"tester\"}\r\n}\r\n```\r\n\r\n### middleware\r\n\r\nuse `poteto-extensions/middleware`\r\n\r\n```bash\r\ngo get github.com/poteto-go/poteto-extensions\r\n```\r\n\r\n## OIDC\r\n\r\npoteto provides easily oidc middleware.\r\n\r\n- verify signature\r\n- jwt schema (if idp google).\r\n\r\n```go\r\nfunc main() {\r\n  p := poteto.New()\r\n\r\n  oidcConfig := middleware.OidcConfig {\r\n\t  Idp: \"google\",\r\n\t\tContextKey: \"googleToken\",\r\n    CacheMode: true,\r\n    JwksUrl: \"https://www.googleapis.com/oauth2/v3/certs\",\r\n    CachedVerifyTokenSignature: oidc.CachedVerifyTokenSignature,\r\n  }\r\n  p.Register(\r\n    middleware.OidcWithConfig(\r\n      oidcConfig,\r\n    )\r\n  )\r\n\r\n  p.POST(\"/login\", func(ctx poteto.Context) error {\r\n      var claims oidc.GoogleOidcClaims\r\n      token, _ := ctx.Get(\"googleToken\")\r\n      json.Unmarshal(token.([]byte), \u0026claims)\r\n      ...\r\n      return ctx.JSON(200, map[string]string{\"message\": \"success\"})\r\n  })\r\n}\r\n```\r\n\r\n## Example App For Poteto\r\n\r\nTODO\r\n\r\n## Poteto-Cli\r\n\r\nWe support cli tool. But if you doesn't like it, you can create poteto-app w/o cli of course.\r\n\r\nYou can start hot-reload poteto app.\r\n\r\n```sh\r\ngo install github.com/poteto-go/poteto-cli/cmd/poteto-cli@latest\r\n```\r\n\r\nOR build from docker image\r\n\r\nhttps://hub.docker.com/repository/docker/poteto17/poteto-go/general\r\n\r\n```sh\r\ndocker pull poteto17/poteto-go\r\ndocker -it --rm poteto17/poteto-go:1.23 bash\r\n```\r\n\r\ndetail on:\r\n\r\nhttps://github.com/poteto-go/poteto-cli\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoteto-go%2Fpoteto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoteto-go%2Fpoteto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoteto-go%2Fpoteto/lists"}