{"id":47680084,"url":"https://github.com/zoobz-io/sum","last_synced_at":"2026-04-02T13:56:48.847Z","repository":{"id":334780583,"uuid":"1127503921","full_name":"zoobz-io/sum","owner":"zoobz-io","description":"An application framework for Go","archived":false,"fork":false,"pushed_at":"2026-03-27T21:29:39.000Z","size":154,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-28T03:56:30.214Z","etag":null,"topics":["application-framework","framework","go","golang","zoobzio"],"latest_commit_sha":null,"homepage":"https://sum.zoobz.io","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/zoobz-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2026-01-04T02:41:43.000Z","updated_at":"2026-03-27T21:27:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zoobz-io/sum","commit_stats":null,"previous_names":["zoobzio/sum","zoobz-io/sum"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/zoobz-io/sum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoobz-io%2Fsum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoobz-io%2Fsum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoobz-io%2Fsum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoobz-io%2Fsum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoobz-io","download_url":"https://codeload.github.com/zoobz-io/sum/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoobz-io%2Fsum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31307394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["application-framework","framework","go","golang","zoobzio"],"created_at":"2026-04-02T13:56:47.219Z","updated_at":"2026-04-02T13:56:48.840Z","avatar_url":"https://github.com/zoobz-io.png","language":"Go","readme":"# sum\n\n[![CI Status](https://github.com/zoobz-io/sum/workflows/CI/badge.svg)](https://github.com/zoobz-io/sum/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/zoobz-io/sum/graph/badge.svg?branch=main)](https://codecov.io/gh/zoobz-io/sum)\n[![Go Report Card](https://goreportcard.com/badge/github.com/zoobz-io/sum)](https://goreportcard.com/report/github.com/zoobz-io/sum)\n[![CodeQL](https://github.com/zoobz-io/sum/workflows/CodeQL/badge.svg)](https://github.com/zoobz-io/sum/security/code-scanning)\n[![Go Reference](https://pkg.go.dev/badge/github.com/zoobz-io/sum.svg)](https://pkg.go.dev/github.com/zoobz-io/sum)\n[![License](https://img.shields.io/github/license/zoobz-io/sum)](LICENSE)\n[![Go Version](https://img.shields.io/github/go-mod/go-version/zoobz-io/sum)](go.mod)\n[![Release](https://img.shields.io/github/v/release/zoobz-io/sum)](https://github.com/zoobz-io/sum/releases)\n\n**Wire once, run anywhere.** An application framework that unifies HTTP, data, configuration, and services into a single lifecycle.\n\n## Compose and Run\n\n```go\n// Register services by contract type\nk := sum.Start()\nsum.Register[UserService](k, \u0026userImpl{})\nsum.Register[OrderService](k, \u0026orderImpl{})\nsum.Freeze(k)\n\n// Retrieve anywhere by type\nuserSvc := sum.MustUse[UserService](ctx)\n```\n\nServices, configuration, and data stores—all wired through one registry, resolved by type.\n\n## Install\n\n```bash\ngo get github.com/zoobz-io/sum\n```\n\nRequires Go 1.24 or later.\n\n## Quick Start\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"log\"\n\n    \"github.com/zoobz-io/sum\"\n)\n\ntype Greeter interface {\n    Greet(name string) string\n}\n\ntype greeterImpl struct{}\n\nfunc (g *greeterImpl) Greet(name string) string {\n    return \"Hello, \" + name\n}\n\nfunc main() {\n    // Initialize service and registry\n    svc := sum.New(sum.ServiceConfig{Host: \"localhost\", Port: 8080})\n    k := sum.Start()\n\n    // Register services\n    sum.Register[Greeter](k, \u0026greeterImpl{})\n    sum.Freeze(k)\n\n    // Use services anywhere\n    greeter := sum.MustUse[Greeter](context.Background())\n    log.Println(greeter.Greet(\"World\"))\n\n    // Run with graceful shutdown\n    if err := svc.Run(); err != nil {\n        log.Fatal(err)\n    }\n}\n```\n\n## Capabilities\n\n| Capability | Description | Documentation |\n|------------|-------------|---------------|\n| Service Registry | Type-safe service locator with guards | [Registry](https://pkg.go.dev/github.com/zoobz-io/sum#Register) |\n| Lifecycle Management | Singleton service with graceful shutdown | [Service](https://pkg.go.dev/github.com/zoobz-io/sum#Service) |\n| Configuration | Load and register config via fig | [Config](https://pkg.go.dev/github.com/zoobz-io/sum#Config) |\n| Typed Events | Emit and listen with type-safe payloads | [Event](https://pkg.go.dev/github.com/zoobz-io/sum#Event) |\n| Data Stores | Database, KV, and object storage helpers | [Database](https://pkg.go.dev/github.com/zoobz-io/sum#Database) |\n\n## Why sum?\n\n- **Type-safe service registry** — Register and retrieve services by contract type, not strings. Compile-time safety, zero casting.\n- **Unified lifecycle** — One `Run()` handles startup, signal handling, and graceful shutdown.\n- **Integrated data catalog** — Databases, KV stores, and buckets register automatically with the data catalog for observability.\n- **Typed events** — Define events once with `Event[T]`, emit and listen with full type safety.\n- **Minimal ceremony** — No annotations, no reflection magic, no code generation. Just Go.\n\n## The Ecosystem\n\nsum builds on the zoobz-io toolkit:\n\n| Package | Purpose |\n|---------|---------|\n| [rocco](https://github.com/zoobz-io/rocco) | HTTP engine with OpenAPI |\n| [slush](https://github.com/zoobz-io/slush) | Service registry core |\n| [capitan](https://github.com/zoobz-io/capitan) | Event/signal system |\n| [fig](https://github.com/zoobz-io/fig) | Configuration loading |\n| [grub](https://github.com/zoobz-io/grub) | Database/KV/Object storage |\n| [scio](https://github.com/zoobz-io/scio) | Data catalog |\n\n## Documentation\n\n- **Learn**: [Overview](docs/1.learn/1.overview.md) · [Quickstart](docs/1.learn/2.quickstart.md) · [Concepts](docs/1.learn/3.concepts.md) · [Architecture](docs/1.learn/4.architecture.md)\n- **Guides**: [Testing](docs/2.guides/1.testing.md) · [Troubleshooting](docs/2.guides/2.troubleshooting.md) · [Service Registry](docs/2.guides/3.service-registry.md) · [Events](docs/2.guides/4.events.md) · [Data Stores](docs/2.guides/5.data-stores.md)\n- **Reference**: [API](docs/4.reference/1.api.md) · [Types](docs/4.reference/2.types.md) · [pkg.go.dev](https://pkg.go.dev/github.com/zoobz-io/sum)\n\n## Contributing\n\nContributions welcome—see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## License\n\nMIT License - see [LICENSE](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoobz-io%2Fsum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoobz-io%2Fsum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoobz-io%2Fsum/lists"}