In this paper, a distributed optimization problem is investigated via input feedforward passivity. First, an inputfeedforward-passivity-based continuous-time distributed algorithm is proposed. It is shown that the error system of the proposed algorithm can be interpreted as output feedback interconnections of a group of input feedforward passive (IFP) systems. Second, a novel distributed derivative feedback algorithm is proposed based on the passivation of IFP systems. Then, based on this IFP framework, the distributed algorithms are studied over directed and uniformly jointly strongly connected (UJSC) weight-balanced topologies, and convergence conditions of a suitable coupling gain are derived for the IFP-based algorithm. While most works for directed topologies require the knowledge of the smallest nonzero eigenvalue of the graph Laplacian, the passivated algorithm is independent of any graph information and robust over UJSC weight-balanced digraphs with any positive coupling gain. Finally, numerical examples are presented to demonstrate the proposed distributed algorithms.Index Terms-Continuous-time algorithms, input feedforward passivity, weight-balanced digraphs, uniformly jointly strongly connected topologies, derivative feedback.A preliminary version of this work is submitted to the 58th IEEE Conference on Decision and Control, Nice, France [1].