* feat: extract pure core api * refactor: centralize core api helpers * build: bundle core api output