I use npm packages on node and it works well. But I am building website and I want to use those packages on it. How it works, should i write backend to be able to use npm installed packages on website? For example I got package for summing 2 numbers, I want to input my numbers on website through input fields and than use my package to calculate it and than result will display on website.
I saw some "hacks" how to use npm installed packages on website but I want to know right way to use it