mybrowser.fyi-project icon indicating copy to clipboard operation
mybrowser.fyi-project copied to clipboard

Publish as an npm package?

Open andreasvirkus opened this issue 6 years ago • 3 comments

Any other notes

Hi, would you be willing to publish this as an npm package? I understand (from our last conversation in the past) that you are not planning on open-sourcing this, but how about a small npm module that would return the JSON for people who already have their own issue reporting system and would like to integrate this behind the scenes/automatically for the user?

Best, andreas

andreasvirkus avatar Jan 24 '19 19:01 andreasvirkus

I'm certainly putting some work into this project later in the year and something on my radar is providing a way of people being able to make use of the data.

Not sure what the best approach is yet.

In the meantime, I know it's not perfect, but you can get pure JSON for any report by appending /json to the end of a report URL, like this: https://mybrowser.fyi/report/5c4a29b7d311ab00145494b0/json

Andy-set-studio avatar Jan 24 '19 21:01 Andy-set-studio

Thanks, but that way I'd still require the user to visit an external site and share a report URL with me. Whereas ideally I'd ask them to click "Report an issue" in my app, which would send me info about their session, along with their browser/device details.

andreasvirkus avatar Jan 25 '19 08:01 andreasvirkus

Ah I see, so you're suggesting an NPM package that does the browser reporting for you, on site? I reckon in that context, you're better off using a system like Sentry

Andy-set-studio avatar Jan 25 '19 09:01 Andy-set-studio