Lately my articles have focused mainly on the Feedybacky portal, while the plugin that introduced the name to the web ecosystem in the first place was last in the "spotlight" on March 14 last year, almost 15 months ago. It is true that the JavaScript plugin for websites was pushed slightly to the back burner during that time because of another part of the whole project, but that does not mean nothing happened to it. Today we will go through version 2.0, which appeared last Thursday on GitHub and in the NPM registry.

First, a short explanation of what the plugin is, for those who have not come across the project before. It is a JavaScript package that you can deploy on your website to let users report suggestions and problems while they use your application. Its distinguishing feature is that the plugin does not take up much space on the page (visually as well), and at the same time, besides the user's message, it can automatically attach a screenshot of the current screen, the browser type and version, the operating system, the screen resolution and a few other details that help diagnose the report. So it is a contact form "on steroids", designed for support requests about web software.

The more observant among you may notice that version 2.0.1 is already available, with an extra "one" at the end. Well, many AAA games (Cyberpunk 2077 among them) had a "day 0 patch" too, right? :) Seriously though, this tiny additional update "cleaned up" a few small things right away, which is why it was published almost immediately.

Let us start with the smaller changes. First of all, many people pointed out that from the moment the user submits a message to the moment a success or failure notice appears, quite a while can pass, and it is not clear whether anything is happening or the operation is being processed at all. Of course, how long this takes depends on the connection speed, the size of the data sent (mainly because of the screenshot) and the correctness of the configuration. This version adds an extra message that takes the "nervousness" out of the wait. You can change the message itself with the "requestPending" key.

The message that appears while a report is being sent.

The second, smaller change (or rather a set of them) is a fix to how the "emailField" and "expandMessageLink" parameters are interpreted, and the plugin no longer scrolls the page to the top after taking a screenshot and sending a report. These are small modifications, but I believe they make the plugin more comfortable to use.

Let us move on to the more significant changes, which are largely tied to the arrival of the portal.

API parameters and additional checkboxes

As you probably remember, until now the plugin was initialized more or less like this (in the minimal version):

var feedybacky = new Feedybacky('feedybacky-container', {
    onSubmitUrl: 'https://myendpointforrequest.com',
});

The code is simple and elegant, but we can see that the developer has to provide something that receives the POST request sent to that address and probably processes the report. Until now, the message with the data could either be sent to a chosen endpoint or handled internally by a JavaScript function you wrote yourself. My colleagues on the team and I knew, however, that many people would like to have everything in a "package": not only the plugin, but also a place where reports end up, which they would not have to build themselves and could treat as a kind of "serverless" service. And this is where the Feedybacky portal comes in: https://feedybacky.com.

The feedybacky.com home page

The service I have already mentioned several times in articles on LinkedIn and Twitter has become a reality. For now it is available as a closed beta, but it has already been successfully battle-tested on projects of Wilda Software and several other companies, and it is constantly being polished. The application not only provides a place for submitted reports, but also makes it easier to manage that information, track its status and discuss it within the team and between client and contractor. So the plugin and the portal together should already provide a satisfying environment for support teams, help desks or whole IT departments, especially during the rollout of a new software version. And the system will be extended and developed further, also based on suggestions from users.

Why am I telling you all this? Because if you want to integrate the plugin with the portal, you can now do it like this:

var feedybacky = new Feedybacky('feedybacky-container', {
    apiKey: 'Twój klucz API',
    projectSymbol: 'Symbol Twojego projektu w Feedybacky',
    termsUrl: 'Link do regulaminu Twojej strony',
    privacyPolicyUrl: 'Link do polityki prywatności Twojej strony'
});

As you can see, a few parameters were added, but you no longer have to provide the address, which is built into the plugin. The placeholder values in the example are in Polish: they stand for your API key, your project symbol in Feedybacky, the link to your website's terms and the link to its privacy policy. Integrating with the portal is also possible in earlier versions of the plugin, but it takes a slightly different approach:

var feedybacky = new Feedybacky('fyby-container', {

   onSubmitUrl: 'https://api.feedybacky.com/issue',

   beforeSubmit: (payload) => {
       payload.add('apiKey', 'Twój klucz API');
       payload.add('projectSymbol', 'Symbol Twojego projektu w Feedybacky');
       payload.add('termsUrl', 'Link do regulaminu Twojej strony');
       payload.add('privacyPolicyUrl', 'Link do polityki prywatności Twojej strony');
   },

});

The API key and the symbol of the project you created are available from your account in the Feedybacky portal. The whole process is fairly intuitive and is described in a kind of "Quick Start Guide", but the last two parameters may raise questions. Remember that a user can attach material containing personal data to a report. Therefore, when the message is sent to the portal, the person reporting has to read two additional consents, confirming that they understand what they are doing and agree to it. And these consents are where links to the website on which the plugin is installed will appear.

The plugin with the new checkboxes.

So this is a measure related solely to the processing of personal data, and therefore, unfortunately, necessary. If you still want to send reports to another address of your choice, the additional checkboxes will not appear.

Last but not least, some of you probably noticed right away that the Feedybacky logo has changed. It now looks like this. 

The new Feedybacky logo.


Of course, you can still change it in your instance of the plugin with CSS directives if you see a need.

Do I have to integrate the plugin with the Feedybacky portal?

Although, as you have probably noticed, I recommend this solution, it is by no means required. The "onSubmitUrl" and "onSubmit" parameters are still honored, so you can do with the report whatever you see fit, and nothing stops a developer from writing their own web service to receive the POST requests. So if you have used that approach until now, you are welcome to stay with it. I still encourage you to take an interest in the Feedybacky portal in the future, since the integration will keep being developed.

How can I install the plugin on my website?

As before, you can install the plugin in at least two ways:

  • download the ZIP directly from GitHub and copy it to the folder with your own website
  • install it from the NPM registry with the command "npm install --save feedybacky"

And if you do not like adding extra files to your website code, you can use a CDN, as follows:

<script src="https://cdn.jsdelivr.net/npm/feedybacky@2.0.1/js/feedybacky.min.js" integrity="sha384-84KGD4yOPhNpd8TJbjKeVll5+VcpF7Ezt+cuN6WCCeDQPs4SwxyO2SHt9Xuqsz+4" crossorigin="anonymous"></script>

The full installation instructions are available on the getting started page mentioned earlier and, in more technical detail, in the official plugin documentation.

I warmly invite you to try the new version of the plugin and the portal itself. If you have any questions or doubts, the comments section and the official email feedybacky@wildasoftware.pl are at your disposal.

Best regards, Jakub Rojek