electricitymaps / bloom-contrib

Making carbon footprint data available to everyone.

Home Page:https://www.bloomclimate.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need clarification: Are integration running in a browser or in Node.JS?

steren opened this issue · comments

The README should clearly state the environment under which integrations are running.

First, it's JS.

But also, do they run on mobile client in a browser context? on the client in a JS execution environment? server-side in Node.js? Can any NPM package be used (even the ones using native
code?)

Clarifying this upfront will help developer select which tool they can use.

You're right we should clarify that.
On mobile it runs under React-Native, which can mean different things depending on the platform.
In principle node code works, but not always :/
For example, the fetch API is implemented differently on Android and iOS (and differently than node and browser as well). One example is that it doesn't handle setting custom cookies.
I'm not sure how to best express that in the README, but we should address this somehow.

Closing this due to inactivity.