Custody arrangements?

Backstory- my kids are 2, and 4. Their dad & I have never been married, but are splitting up. We obviously need some sort of custody arrangement, and I was hoping to get some ideas from other parents who have been through this. What works best for y’all?