Looks like it is not a feature on fastHTML but a discussed topic. This issue on github offers a solution github. But since fastapi and fastHTML are focusing on diffrent logics there are diffrent tools included.