The core chainy library