Home / Companies / Wundergraph / Blog / Post Details
Content Deep Dive

TypeScript Plugin Support for Cosmo Connect

Blog post from Wundergraph

Post Details
Company
Date Published
Author
Milinda Dias
Word Count
1,559
Language
English
Hacker News Points
-
Summary

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.