General framework for cosmological dark matter bounds using N-body simulations | Synapse