Add API + tests for Swarm

`split` not used