At the moment, it depends what you are using Mixpanel for. If it's about collecting events and storing them, then we have a JS web library [1] for that and we'll happily store them in our database and let you do things with them. It will handle anonymous users and convert/merge them when they log in.
[1] https://www.npmjs.com/package/@grouparoo/client-web