--- import GraphMotif from '../GraphMotif.astro'; ---

The idea

A graph, not a chain.

Express-style frameworks make ordering your job — what runs here, what runs there, where you wire it. Green Tea inverts it. You ask for the highest-level thing you need, and its dependencies resolve transitively.

  • Need an ACL check on a user? The ACL is a step that itself needs the user. Ask for the ACL — the user is pulled in for you.
  • Add a friends provider, then ask for friends — and the user arrives with the friend list.

This is pure composition. DI frameworks resolve a graph of services; Green Tea resolves your request pipeline the same way — the steps a route runs are computed from what it asks for, not the order you wrote them in.