I'm releasing yet another project for the Hive ecosystem: Hivevoice. This is a self-hosted Node.js based app that allows you to create invoices and then get paid in HIVE or HBD tokens from the recipient. This is a 100% free open source app available on GitHub.
I do plan on making a hosted version available shortly, but focused on getting the open source app working first and then focus on that.
As you can see, it's rather basic right now. But it allows for itemised invoice creation, specifying different currencies. Most importantly: it handles converting fiat currency into HIVE/HBD toke equivalents via Coincgecko at their current price. It will also handle adding on tax.
Here is the invoice screen:
Architecture
I have kept Hivevoice purposefully simple. It doesn't use much.
- Hono.js for the API
- SQLite 3 for the database
- Uses Dhive for blockchain streaming
- Aurelia 2 for the front-end with Tailwind for styling
- TypeScript
All you have to do is ensure your environment variables are configured and you're off to the races. Most of this is just running npm install
and then npm start
in the root directory and the ui
directory for the front-end.
You can send an invoice to someone and opt to send a notification via their Hive wallet with a small transfer and memo. This is how it looks when you view your wallet on @peakd
There are also options for paying the invoice too using Keychain and Hivesigner, with the option to pay in HIVE/HBD equivalent.
You can actually see in the console if you're running the Node.js API somewhere like locally when things happen:
And then the invoice in the UI is automatically updated to paid status:
Future plans
Like I said, there are plans for a hosted version the community can use for people who don't want to run it themselves. But for now you'll have to run it yourself until that happens.
I also want to make it look nicer, add more configuration options and invoice functionality. But I also want to always keep it simple. I'm also going to add in Docker configuration and other means of running this out of the box without having to really touch the code, but sit tight for those coming later on.
Happy invoicing.