If you're selling to non-developers? They don't know what npm is. They don't know how the Web works. They will need you to provide them with a one-click solution. Typeform (the product you stated you're competing with) has a visual editor and provides hosting. It's a one-stop shop.
On the other hand, if you're selling to developers - nobody's gonna want to pay for just a form library. A frontend developer can build a form in 10 minutes. Open-source has taken over so much that, nowadays the only money in selling software to developers is in editing tools (like IDE's, AI tools, etc.) or cloud-based solutions. If you're just selling the software itself with no cloud hosting, it's gotta be something really useful and really complex, like a database or an operating system.
I think things like form builders do get somewhat close to the "solutions architect" market. That is, you may be able to sell a version of your software to people who build websites for other people. Take a look at sites like themeforest.net. Creating themes and plugins for content management systems (like wordpress, squarespace, weebly etc.) and selling them to freelancers can earn decent money.