- fix export path for lib
- api is imported from `./src` because it has no dependency (and can be used in node/service-worker