Procyon

What is Procyon

Understand the core ideas behind Procyon.

What is Procyon

Procyon is a Go application framework focused on clear structure, practical abstractions, and predictable startup.

It is useful when an application needs more than route registration:

  • component registration and constructor injection
  • framework-managed lifecycle
  • endpoint configuration close to handler logic
  • room for configuration, runtime, and framework extensions

Procyon is not trying to hide Go. Application code stays explicit: constructors return Go types, dependencies are normal function parameters, and handlers use ordinary methods.

A small application shape

type HelloController struct{}

func NewHelloController() *HelloController {
    return &HelloController{}
}

func (h *HelloController) ConfigureEndpoints(endpoints http.Endpoints) {
    endpoints.MapGet("/hello", http.Handle(h.sayHello))
}

func init() {
    component.Register(NewHelloController)
}

The framework discovers registered components, creates them through their constructors, and starts the application with procyon.Run().