TypeScript Plugin Support for Cosmo Connect
Blog post from Wundergraph
Cosmo Connect has introduced support for writing router plugins in TypeScript, allowing teams that primarily use TypeScript to integrate custom logic into their GraphQL routers without needing to deploy separate services or learn Go, which was the only supported language for plugins until now. This enhancement facilitates the incorporation of small logic pieces or legacy API integrations directly within the router, behaving like a subgraph but without the operational costs. TypeScript plugins operate similarly to Go plugins, with no new capabilities but offering greater accessibility to teams already familiar with TypeScript. They can be published and managed through Cosmo Cloud, undergoing the same schema checks as Go plugins, and are supported in the Cosmo Cloud Plugin Registry. The development of TypeScript support followed Go due to the need for additional infrastructure since there was no existing runtime equivalent to the go-plugin library used for Go plugins.