# 8treenet/freedom

Freedom是一个基于六边形架构的框架，可以支撑充血的领域模型范式。

Repository: https://github.com/8treenet/freedom
Canonical: https://ross.abutalabs.com/products/freedom
Language: Go
License: Apache-2.0
License Family: permissive
Topics: microservice, freedom, framework, http2-server, go, server, ddd
Last push: 2026-08-24T21:06:17+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 81, longevity 100
- inputs: {"age_days": 2509, "days_push": 9, "days_rel": 44, "gap_med": 38, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2272, forks 237 (observed 2026-08-28T04:06:33.190407+00:00)

## What it is
Freedom is a Go framework built on hexagonal architecture (ports and adapters) that supports domain-driven design with rich domain models. It integrates the Iris web framework and provides dependency injection, code generation, multi-level caching, domain events, and Prometheus monitoring out of the box.

## Use cases
- build microservices in Go with DDD
- structure a Go backend using hexagonal architecture
- implement aggregate roots and domain events in Go
- generate CRUD persistence code from a MySQL or PostgreSQL schema
- create an HTTP/2 (H2C) server with dependency injection
- add multi-level caching with cache breakdown protection
- build an event-driven service with Kafka and domain events
- scaffold a new Go web service with a CLI

## When to choose
- you want to practice DDD or hexagonal architecture in Go
- you need a batteries-included framework with DI, caching, and monitoring
- you want code generation for persistence objects from a database schema
- you are building maintainable enterprise or microservice backends in Go

## When to avoid
- you prefer minimal or unopinionated Go libraries like net/http or chi
- your project is a small service where DDD ceremony adds overhead
- you are not using Go
- you need a framework outside the Iris ecosystem

## Facets
- artifact type: framework
- maturity: active
- function: web-framework, http-server, http-client, middleware, routing, orm, caching, message-queue, monitoring, dependency-audit, cli, plugin-system
- domain: backend, web-development, microservices, developer-tools, apis
- platform: go, windows, cli
- tags: ddd, hexagonal-architecture, domain-driven-design, rich-domain-model, dependency-injection, cqrs, aggregate-root, domain-events, code-generation, iris, http2, h2c, prometheus, aop, kafka, gorm, linux, macos

## Member repositories
- 8treenet/freedom (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:33.190407+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:41:41.882416+00:00, confidence not recorded.
  - readme: https://github.com/8treenet/freedom (fetched 2026-08-28T04:06:33.190407+00:00, sha 992cdae356eb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
