The IRS has published the source of it's Direct File service.
https://github.com/IRS-Public/direct-file