{"id":14987717,"url":"https://github.com/boxgo/box","last_synced_at":"2026-01-16T15:31:08.596Z","repository":{"id":34587991,"uuid":"174993111","full_name":"boxgo/box","owner":"boxgo","description":"Build microservices easily with box","archived":false,"fork":false,"pushed_at":"2026-01-15T05:51:53.000Z","size":1046,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-15T12:01:25.658Z","etag":null,"topics":["boxgo","gin","go","golang","grpc","grpc-go","mircoservice","web-framework"],"latest_commit_sha":null,"homepage":"https://boxgo.github.io/website","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boxgo.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-03-11T12:13:35.000Z","updated_at":"2025-10-22T01:56:00.000Z","dependencies_parsed_at":"2024-12-19T08:25:40.075Z","dependency_job_id":"9b4c1cff-0ad1-46a9-a35a-8b2c726c82af","html_url":"https://github.com/boxgo/box","commit_stats":{"total_commits":205,"total_committers":1,"mean_commits":205.0,"dds":0.0,"last_synced_commit":"c87de9ca6d198795f92114791150497a117ad604"},"previous_names":[],"tags_count":103,"template":false,"template_full_name":null,"purl":"pkg:github/boxgo/box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxgo%2Fbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxgo%2Fbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxgo%2Fbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxgo%2Fbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boxgo","download_url":"https://codeload.github.com/boxgo/box/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxgo%2Fbox/sbom","scorecard":{"id":249393,"data":{"date":"2025-08-11","repo":{"name":"github.com/boxgo/box","commit":"204d4b4943b8f158dd070890e62bbe6e1cfaffd1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/go.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/boxgo/box/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/boxgo/box/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/boxgo/box/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/boxgo/box/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/boxgo/box/go.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/boxgo/box/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/boxgo/box/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/boxgo/box/go.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/boxgo/box/go.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:81: update your workflow using https://app.stepsecurity.io/secureworkflow/boxgo/box/go.yml/main?enable=pin","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":10,"reason":"SAST tool detected: CodeQL","details":["Info: SAST configuration detected: CodeQL","Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"15 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0391 / GHSA-6jvc-q2x7-pchv / GHSA-76wf-9vgp-pj7w","Warn: Project is vulnerable to: GO-2022-0635 / GHSA-7f33-f4f5-xwgw","Warn: Project is vulnerable to: GO-2022-0646 / GHSA-f5pg-7wfw-84q9","Warn: Project is vulnerable to: GO-2025-3764 / GHSA-6xp3-p59p-q4fj","Warn: Project is vulnerable to: GO-2024-2606 / GHSA-7jwh-3vrq-q3m8 / GHSA-mrww-27vc-gghv","Warn: Project is vulnerable to: GO-2024-2605 / GHSA-m7wr-2xf7-cm9p","Warn: Project is vulnerable to: GO-2022-0322 / GHSA-cg3q-j54f-5p7p","Warn: Project is vulnerable to: GO-2021-0112 / GHSA-f6mq-5m25-4r72","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2023-2153 / GHSA-m425-mq94-257g / GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2023-1268 / GHSA-gvfj-fxx3-j323"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T08:10:56.203Z","repository_id":34587991,"created_at":"2025-08-17T08:10:56.204Z","updated_at":"2025-08-17T08:10:56.204Z"},"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":["boxgo","gin","go","golang","grpc","grpc-go","mircoservice","web-framework"],"created_at":"2024-09-24T14:15:15.540Z","updated_at":"2026-01-16T15:31:08.535Z","avatar_url":"https://github.com/boxgo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\t\t\t\t\t\t\t____\n\t\t\t\t\t\t\t|  _ \\\n\t\t\t\t\t\t\t| |_) | _____  __\n\t\t\t\t\t\t\t|  _ \u003c / _ \\ \\/ /\n\t\t\t\t\t\t\t| |_) | (_) \u003e  \u003c\n\t\t\t\t\t\t\t|____/ \\___/_/\\_\\\n\n[English](README_en.md) | 简体中文\n\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/boxgo/box?branch=master)](https://pkg.go.dev/github.com/boxgo/box)\n[![Go Report Card](https://goreportcard.com/badge/github.com/boxgo/box?branch=master)](https://goreportcard.com/report/github.com/boxgo/box)\n[![CI Status](https://github.com/boxgo/box/workflows/Go/badge.svg?branch=master)](https://github.com/boxgo/box/actions)\n[![Coverage Status](https://coveralls.io/repos/github/boxgo/box/badge.svg?branch=master)](https://coveralls.io/github/boxgo/box?branch=master)\n[![Release](https://img.shields.io/github/v/release/boxgo/box.svg?style=flat-square)](https://github.com/boxgo/box)\n\n---\n\n\n\n# Box\n\nBox 致力于解决企业级项目开发过程中的各类痛点，帮助你轻松构建稳定、健壮、安全，高性能的应用。\n\n\n\n# Features\n\n* 生命周期管理，模块可挂载至`box启动器`托管启动/停止/前置/后置任务\n\n* 配置功能丰富，支持多配置源、动态更新配置、配置信息注册/查询\n\n* 可选服务协议，支持gRPC、http\n\n* 指标采集，支持自定义指标，易接入Dashboard、报警系统\n\n* 链路跟踪，调用链路还原、查询、诊断\n\n* 规范、强大的日志记录，可动态调整日志级别\n\n* 在线pprof，方便分析线上问题\n\n* 定时任务系统\n\n* 规范错误，收敛错误码与错误消息定义\n\n* 级联超时与取消控制，内建方法使用context扩散\n\n* 简单、友好的接口\n\n* 服务注册与发现（开发中）\n\n* 限流、熔断，降级（开发中）\n\n* 请求表单自动校验（开发中）\n\n* 接口文档自动生成（开发中）\n\n\n\n\n# Installation\n\n```sh\ngo get -u github.com/boxgo/box\n```\n\n## Required\n\ngo version: **go1.12+**\n\ngrpc-go version: **1.26**\n\n## Recommend\n\n建议使用国内源：\n\n1. [goproxy.cn](https://goproxy.cn/)\n2. [goproxy.io](https://goproxy.io/)\n\n\n\n# Qucik Start\n\n1. 编写配置文件\n\n```yaml\n// box.yaml\nbox:\n  name: testBox\n  version: 1.0.0\n\ngin:\n  default:\n    mode: release\n    addr: \":9000\"\n\nlogger:\n  default:\n    level: info\n    outputPaths:\n      - stdout\n    errorOutputPaths:\n      - stderr\n```\n\n2. 编写程序代码\n\n```go\n// main.go\npackage main\n\nimport (\n\t\"github.com/boxgo/box\"\n\t\"github.com/boxgo/box/pkg/server/ginserver\"\n\t\"github.com/gin-gonic/gin\"\n)\n\nfunc main() {\n\tapp := box.New(\n\t\tbox.WithBoxes(\n\t\t\tginserver.Default,\n\t\t),\n\t)\n\n\tginserver.GET(\"/ping\", func(ctx *gin.Context) {\n\t\tctx.Data(200, gin.MIMEPlain, []byte(\"pong\"))\n\t})\n\n\tapp.Run()\n}\n```\n\n3. 启动程序\n\n```sh\n$ go run main.go # 启动程序\n```\n\n通过`go run main.go`命令启动我们的程序，可以看到如上所示界面，这个表格是我们程序所使用到的配置描述。紧跟其后的是程序启动时的配置信息。再往下，我们就看到了`box启动器`开始启动，`box启动器`启动GinServer服务，由于我们没有挂载其他组件，这时候启动器启动完成。\n\n通过 `ctrl + c` 我们看到启动器开始停止工作，然后GinServer被关闭，整个进程退出。\n\n4. 验证程序\n\n```sh\n$ curl http://127.0.0.1:9000/ping\n$ pong\n```\n\n可以看到，请求ping接口已经返回\"pong\"了。\n\n\n\n# Documentation\n\n官方网站：[boxgo.github.io/website](https://boxgo.github.io/website)\n\n# Plan\n\n* 更多的文档\n* 更多的单元测试\n* 更高的代码覆盖率\n* 服务注册与发现\n* 熔断、限流、降级\n* 接口文档生成\n* 请求表单自动校验\n* 一站式管控平台\n\n# Thanks\n感谢 [Jetbrains](https://www.jetbrains.com/?from=box) 为本项目提供License。\n\n[![Jetbrains](./docs/jetbrains.png)](https://www.jetbrains.com/?from=box)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxgo%2Fbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboxgo%2Fbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxgo%2Fbox/lists"}