The Internal Revenue Service has released the source code for Direct File, its free online federal tax-filing service, on GitHub. According to the repository, Direct File is a government service that allows taxpayers to electronically file their federal tax returns for free directly with the IRS.

The service uses an interview-based approach designed to work across mobile phones, laptops, tablets, and desktop computers. It is available in both English and Spanish and incorporates accessibility features for taxpayers with varying abilities and access needs.
Direct File translates the Internal Revenue Code into plain-language questions that taxpayers can answer without external instructions or publications. Their responses are then converted into standard tax forms and transmitted to the IRS’s Modernized e-File (MeF) API. According to the source material, the questions, logic, test cases, and scenarios may be useful for others developing products that need to accurately interpret United States tax law for Tax Year 2024. These elements were developed in close collaboration with the IRS Office of Chief Counsel.
The codebase includes the Fact Graph, a declarative, XML-based knowledge graph designed to reason about incomplete information, such as partially completed tax returns. Written in Scala, it runs on the JVM backend and is transpiled via Scala.js to run on the client side. According to the repository, the Fact Graph is not domain-specific and may be useful to other revenue agencies and as a reference for business rules engine implementations.
While Direct File only handles federal tax returns, it facilitates state and local filing obligations by allowing taxpayers to optionally import their federal return data into third-party tools for state and local taxes without reentering information. This is enabled through a State API that transfers standard MeF XML and an enriched JSON format with additional data elements identified as useful to state revenue agencies.
The IRS developed Direct File with an in-house team of technologists supported by the U.S. Digital Service (USDS), General Services Administration (GSA), and vendor teams including TrussWorks, Coforma, and ATI.
The repository has been archived and is no longer actively maintained. According to the GitHub page, the code is provided for historical reference and may contain unpatched or unknown vulnerabilities and should not be used in production systems. Additionally, not all source code, documentation, and metadata used in development is included, as material considered personally identifiable information, federal tax information, or sensitive government data has been exempt from release.
Key facts
- Direct File is a free IRS service for electronically filing federal tax returns directly with the agency
- The service uses an interview-based format with plain-language questions and works on mobile and desktop devices
- Code was developed with collaboration from IRS Office of Chief Counsel, USDS, GSA, and vendor teams
- The Fact Graph component uses Scala and may be useful for other revenue agencies’ business rules engines
- The repository is archived and no longer maintained; code should not be used in production systems
