library.js in the /nodebb-plugin-namePlugin
file.js in /nodebb-plugin-namePlugin/static/lib
Now I must do a lot of operation in my library.js and I must check when user is created. So I use the hook and It's everything ok, but, after I must my check in library I need to send a message to my file.js to change background color of a component. The proble is that I used this to communicate:
You have to create an acp page for managing your plugin.
For a basic example just look at how the quickstart plugin implements its panel, and look for plugins that have a panel similar to what you want to do.