transform
A polyglot web converter.
A web-based polyglot converter that bundles dozens of code and data format transformations, including CSS, GraphQL, JSX, React, Go, Rust, and Flow, into a single self-hostable interface.
Transform is a web-based tool for converting code and data between different formats. The project describes itself as a polyglot converter, meaning it handles conversions across many different languages and formats in a single interface. Based on the repository topics, the supported conversions span areas such as CSS, GraphQL, JSX, React, React Native, Go, Rust, and Flow. The idea is that instead of hunting for a separate online converter for each format pair, you can find them all in one place.
The tool runs as a web application hosted publicly, but the repository also supports self-hosting. Getting your own instance running requires Yarn for dependency management and a standard build step, after which the application starts with a single command. For development, there is a hot-reload dev server as well.
Architecturally, the README explains that each conversion route is its own file in the pages directory. Adding a new transformer means creating a file there and registering it in the routes configuration. This keeps each transformation self-contained and makes contributions straightforward.
The project has accumulated a number of contributors who have added individual transformers over time. It was featured on Product Hunt and is deployed on Vercel for the public instance. The source code is MIT-licensed.
The README is quite sparse on feature documentation and does not list all supported conversions or describe what each transformer does in detail. The topics and description give the broadest picture of scope, but the complete catalog of what the tool can convert is not captured in the README text.
Where it fits
- Convert JSX to plain JavaScript in the browser without installing anything or hunting for a separate tool.
- Transform a GraphQL schema to TypeScript types in seconds using the hosted public instance.
- Self-host your own instance of the converter for your team by running Yarn install and a single build command.
- Add a new conversion route to the project by creating one file in the pages directory and registering it in the routes config.