Abstract In aerospace industry, optimizing designs has become inevitable in terms of weight and performance requirements. Topology optimization is the most suitable optimization type for use in the conceptual design phase. Even though academic topology optimization algorithms have a modular structure (open to development), they are often useable for a regular design domain. Alternatively, commercial topology optimization software products, on the other hand, are very useful in terms of their solution speed, accuracy, and ability to handle complex or irregular design domains. However, the user is restricted with the optimization algorithms available in the software, and these software do not usually have a modular structure. In this study, a modular topology optimization framework that combines useful features of the academic codes (e.g., modularity) and the commercial software tools (e.g., capability of easily handling complex design domains) is developed. The developed framework is tested on two popular academic topology optimization problems, followed by aerospace bracket design problem. It is observed that the proposed framework usually provides lower objective function values and converges to the optimum result in fewer iterations than the Altair Optistruct topology optimization software.