{"id":37830275,"url":"https://github.com/fumeboy/nji","last_synced_at":"2026-01-16T15:48:32.271Z","repository":{"id":40623479,"uuid":"247922922","full_name":"fumeboy/nji","owner":"fumeboy","description":"a go web framework to simplify HTTP handler","archived":false,"fork":false,"pushed_at":"2022-06-28T10:18:49.000Z","size":118,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-07-27T22:07:27.681Z","etag":null,"topics":["golang","http","web"],"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/fumeboy.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":"2020-03-17T08:59:35.000Z","updated_at":"2022-06-29T14:13:08.000Z","dependencies_parsed_at":"2022-09-15T09:12:22.489Z","dependency_job_id":null,"html_url":"https://github.com/fumeboy/nji","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/fumeboy/nji","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumeboy%2Fnji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumeboy%2Fnji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumeboy%2Fnji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumeboy%2Fnji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fumeboy","download_url":"https://codeload.github.com/fumeboy/nji/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumeboy%2Fnji/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["golang","http","web"],"created_at":"2026-01-16T15:48:31.332Z","updated_at":"2026-01-16T15:48:32.262Z","avatar_url":"https://github.com/fumeboy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nji\n\na web framework for write API quickly.\n\n# feature\n\n* simplify routing management\n* parameter verification without go tag\n* configurable dependency injection\n# basic usage\n\n## get parameters automatically with `plugins`\n\n```go\n// get params (`A`, `B`) from URL query part, and return `A + B`\ntype get_query_params struct {\n\tA plugins.QueryParam[any]\n\tB plugins.QueryParam[any]\n}\nfunc (v *get_query_params) Handle(c *nji.Context) {\n\tc.Writer.WriteString(v.A.Value + v.B.Value)\n}\n```\n\n## parameter verification with `schema`\n\n```go\ntype get_query_params struct {\n\tA plugins.QueryParam[schema.NotNull] // check if `A` is null\n\n\tB plugins.QueryParam[struct { // multi-verificator\n\t\tschema.NotNull \n\t\tschema.IsPhoneNumber `could pass gotag to schema` // check if `B` is valid as phonenumber\n\t}]\n\t\n\t// or you could write multi-verificator in one-line by this way:\n\tC plugins.QueryParam[func(schema.NotNull, schema.IsPhoneNumber)]\n}\n```\n\n## compute route automatically with `route`\n\n```go\ntype BaseRoute struct {\n\tnji.Route[route.ANY, route.ROOT] `a_prefix` // if no gotag, path will use `/BaseRoute/` as component\n}\n\ntype get_query_params struct {\n\tnji.Route[route.GET, BaseRoute] // output URL = `/a_prefix/get_query_params`\n\n\tA plugins.QueryParam[any]\n\t// ...\n}\n```\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffumeboy%2Fnji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffumeboy%2Fnji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffumeboy%2Fnji/lists"}