scriptdom
There are 2 repositories under scriptdom topic.
arvindshmicrosoft/SQLScriptDomSamples
Samples showing how to use Microsoft.SqlServer.TransactSql.ScriptDom classes
kritikov/SQLTailor-released
Open source application for SQL query formatting and translation into TSQL or SQL-generated scripts such as SqlOM using the ScriptDOM library