You can have something ping your service to help keep it alive, but generally speaking free hosting is meant for environments where a spin-up time is acceptable.
If Render gave professional level hosting away for free for open source, they’d be out of business in a week