Vendure US Sales Tax Plugin
GitHub Repo
Overview of the project
Vendure is an open source e-commerce platform, built for extensibility and with modern tooling (TypeScript/Node/NestJS/GQL/Postgres Stack). I've been using Vendure for a project of my own for the past few months. Most of the code I produced was closed-source, but I wanted to try making an open source plugin for Vendure and publishing it on npm. Since Vendure has no US tax capabilities built in, and no existing plugins for this purpose, I decided to make a plugin that calls an API (from a company called Ninja API) to determine sales tax based on zipcode, and integrates this data into Vendure's order/checkout process.
Some more info on Vendure, from their website: "Vendure provides the solid foundation for any commerce application: inventory management, orders, customers, taxes, promotions and more. Our battle-tested, stable core powers start-ups, direct-to-consumer brands, Fortune 500 enterprises and everything in between."
Developers extend the functionality of Vendure by creating plugins, which can extend Vendure's GraphQL APIs, change the SQL data model, define custom logic, call external systems respond to Vendure system events, etc. In this case, I created a plugin which integrates into Vendure's order flow, and calls an external API for tax information, feeding this data back into Vendure's API/model of tax.
For more technical details/ code for my Vendure plugin, check out the github or npm.