As a developer, I recently ran into some issues implementing Front Chat with verified identity on my site.
It would be super helpful to have a Front Chat NPM package with TypeScript definitions; this may help prevent other developers from trying to send data in the wrong format, and should help speed up integration into React apps.
This comment was adapted from this GitHub issue: https://github.com/frontapp/front-chat-sdk/issues/10#issuecomment-2244286658
Please consider creating an NPM package. It's very rare for a first-party package like this to not be released on NPM, and it means that we need to add a reference to this GitHub repo in our `package.json` manifest. Here are the issues as I see them:
This is non-standard, meaning we'll need to obtain additional exemptions from our security teams to install from a repository directly;
This has poor control over version management, as the best we can do is pin a specific commit in this repository's history;
The repository has development files and a dangling example app that certainly don't need to be present in production environments.
I would instead propose following Stripe's methodology, where they let you install their bootstrap packages from NPM (which has first-class support for scanning by organizations like Snyk), but their code internals then later load a dynamic bundle from their CDN.