it's not that complicated, i derived and mostly copied the libraries it uses from @fiatjaf and @mattn to build that but yes it could be easier