finds.dev

go-macaron/macaron

Package macaron is a high productive and modular web framework in Go.

View on GitHubHomepage ↗

★ 3,546GoApache-2.0updated Feb 2026

// the take

Macaron is a middleware-based web framework for Go, heavily inspired by Martini and built around dependency injection via reflection. It powered Gogs and Grafana before those projects grew beyond it. The maintainers themselves now recommend you use Flamego instead.

The middleware ecosystem is genuinely broad — session, CSRF, i18n, binding, WebSockets, OAuth2, all as separate pluggable packages rather than one monolithic import. The suburl and nested group router support is clean and was ahead of its time when Gogs needed it. Test coverage is solid for a framework this age, with test files alongside every core source file. The explicit maintenance announcement in the README is honest — they didn't just quietly abandon it.

Dependency injection via reflection (the inject package) is the core abstraction, and it's a bad idea — function signatures become your config, type collisions are silent bugs waiting to happen, and it makes the call stack nearly impossible to trace in a debugger. The framework predates Go modules and the import path (`gopkg.in/macaron.v1`) shows it. Officially in maintenance mode means security fixes only, no new features, shrinking community. Flamego exists and solves the same problems without the reflection-based DI, so picking Macaron for a new project today is choosing a dead end.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
3,546
Forks
286
Language
Go
License
Apache-2.0
Last commit
16 Feb 2026

// nearby

If macaron isn't quite it.

All repos →