NYT87/coros-connect ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Node.js library in TypeScript that lets me log into COROS and work with my account from code.

I want it to support signing in with email and password, saving and loading the access token so I do not have to log in every time, and handling the basic COROS account actions that matter most, like fetching my profile, listing activities, viewing activity details, downloading activity files, uploading FIT or TCX files, and deleting an activity.

Please make it feel easy to use, with a simple client class and a few clear methods. It should work in Node only, not the browser, and it should let me tweak the service settings if COROS changes things for different regions. If you need to check current docs or examples online to make the login or upload flow work correctly, go ahead and do that.

Also include a small example showing how someone would configure it and call the main methods.

Are you gonna build this?

make sure you review the code using arcumet

Try freeSponsored — opens Arcumet in a new tab