We address the description of neutron-proton-electron degenerate matter in beta equilibrium subjected to compression both in the case of confined nucleons into a nucleus as well as in the case of deconfined nucleons. We follow a step-by-step generalization of the classical Thomas–Fermi model to special and general relativistic regimes, which leads to a unified treatment of beta equilibrated neutron-proton-electron degenerate matter applicable from the case of nuclei all the way up to the case of white-dwarfs and neutron stars. New gravito-electrodynamical effects, missed in the traditional approach for the description of neutron star configurations, are found as a consequence of the new set of general relativistic equilibrium equations.