Procyon

Comparisons

Compare Procyon with common Go application styles.

Comparisons

Procyon sits between a minimal HTTP router and a full application platform. It keeps Go code explicit while adding a component model and runtime structure.

Compared with net/http

net/http is a standard library foundation. It is a good fit when you want full control and only need request routing, handlers, and middleware.

Procyon adds conventions for larger applications:

Areanet/httpProcyon
Routingmanual handler registrationendpoint configuration on components
Dependencieswired manuallyconstructor injection
Startupapplication-ownedframework-managed
Lifecycleapplication-ownedcomponent lifecycle hooks

Compared with a router

Routers focus on matching requests to handlers. Procyon includes endpoint mapping, but also gives the application a component container and runtime lifecycle.

Use a router when the app is mostly HTTP handler wiring. Use Procyon when you also want component discovery, dependency wiring, lifecycle hooks, and a common application shape.

Compared with hand wiring

Hand wiring is simple at first and still a good choice for small programs. Procyon becomes useful when the dependency graph grows, when startup needs a repeatable shape, or when framework extensions should plug into the same container.