Can I import an npm library for use in an api controller?

If possible, I’d like to use custom Strapi APIs to replace a set of serverless functions that I run in parallel with Strapi currently. One of these serverless functions uses the googleapis library. Is it possible to include the library in the project’s package.json then import it in the api controller?

This topic has been created from a Discord post (1267478396661792798) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord