Object based Cursor API inspired by the Gmail team.