A JavaScript widget package for integrating Userback.io npm packages
This repository contains the core package:
- @userback/widget – A lightweight JavaScript widget for collecting user feedback via Userback.io.
It also includes example integrations for popular frameworks like React, Vue, and Vanilla JS to help you quickly get started in your own project.
To get started with installation and usage instructions, visit the @userback/widget package on npm.
After cloning the repo, you can install all dependencies and build the widgets with:
yarn && yarn build
After which you can run an example package using yarn start:widget
or yarn start:react
.
To provide your api token, create a .env
file containing your Userback api key like the following:
VITE_UB_TOKEN=XXXxxxXXX
Test coverage is mainly achieved through playwright and docker compose. In order to run the e2e test suite run the following:
yarn test:docker
Refer to each of the packages listed above for framework specific documentation and examples. For more information about available configuration settings and and functions available, see our Javascript API
- Checkout
develop
against the commit you plan to release. - Build a production build with
yarn build
. - Ensure CI is green and Local testing are successful (eg:
yarn test
). - Update all versions with
yarn version:all (major/minor/patch)
. git commit -m "vX.X.X"
andgit tag vX.X.X
where X.X.X is your new version.yarn publish
to publish all packages to the npm repo.git push && git push --tags
to push the release to github.- Create a github release 🎉