The advanced business logic framework

Trailblazer is an architectural style that provides a modern approach to implementing business logic.

It makes complex application workflows simple, reliable and self-documenting.

Trailblazer

The pattern

Let Us Take Care of the Flow Control!

Each function of your application is encapsulated into an activity. This activity structures and orchestrates the necessary steps using a modern workflow approach. Depending on the complexity of your function, a step can range from an ad-hoc Ruby method to another nested activity entirely.

Lifecycles and long-running processes can be implemented by chaining activities in workflows.

Features

Framework agnostic

The Trailblazer gems work with any Ruby framework. We provide glue code for Rails and Hanami, but there are TRB-powered apps in Roda, Grape, Sinatra and many more out there.

Legacy ready

You can start using Trailblazer in existing, massive applications today. Refactorings can be applied step-wise, legacy code can be minimized as you go. Remember: Rome wasn’t build in one day, either.

It's real!

Trailblazer is in use in thousands of production applications. Our patterns have evolved over a decade of engineering, our gems are mature and battle-tested. And: we will never stop innovating.

Trailblazer Trailblazer

Our tools

Editor

EDITOR helps visualizing existing and modelling complex business processes. Can be exported...

New developer tools such as tracing improve debugging, undestanding and can step-through an execution and track long-running processes.

Code

Want some code?

CONTROLLER They end up as lean HTTP endpoints. No business logic is to be found in the controller, they instantly delegate to their respective operation.

Oh, and did we say there won’t be controller tests anymore? That’s right. Only unit and integration tests.


class Application::Policy < Pundit::Policy
    def create?
        user.can_create?(model)
     end
end

HAPPY PEOPLE WHO USE TRAILBLAZER

BRYAN "HEC" HEENAN

FOUNDER/DIRECTOR at BRANDSCOPE, INC.

Trailblazer saved our butt! As is typical of a fast growing startup, the demand for quick turnaround of additional features had lead to our code-base becoming unstructured and buggy. Implementing new features was becoming both difficult and dangerous, and performance was starting to suffer. While investigating ways to refactor/rewrite I chanced across Nick and Trailblazer. After extensive research and comparison, we decided to adopt Trailblazer. What a fantastic decision this was.

Hello hello early birds

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque ac ligula convallis, mollis velit eu, porta odio. Proin nibh ipsum, bibendum eu auctor volutpat, consectetur vitae erat. Duis condimentum dapibus hendrerit.