Quickstart
Welcome to Lume—the easiest way to automate your data transformations. Lume uses AI to infer how your source data maps to a target schema, generating code so you don’t have to. This guide will help you get started quickly using our TypeScript SDK.
Installing the Lume SDK
Initialize the SDK
1. Create & Run a Flow
We are ingesting data from an API and want to normalize each record to our own internal schema. The data in question contains information about our users. The API gives us the following source data:
You want these fields to match your internal schema, which might look like this:
All we need to do is create a flow with our target schema and run it with our source data to retrieve the transformed data:
And just like that, Lume completely automates the mapping process! Our mapped data will look like this:
That’s it! You didn’t need to write any mapping code. Lume does it all automatically. Of course, you can edit the mapper in the Lume app, and reuse the same flow for future data.
Mapping Data on an Existing Flow
Suppose you already created a Flow and just want to feed new data through it, to leverage the same mapping logic. You can do so with the process
method:
Managing Runs Manually
If you want more control over Run creation, especially for parallel tasks or large transformations, you can manage the runs yourself:
This approach is useful if you have advanced scheduling or concurrency requirements and prefer to manually handle the timing or error checks.
Next steps
As our data transformation needs grow, we will begin creating more flows. Start with Managing Flows and read the rest of our guides to learn more!
See the Typescript Library Overview and the NPM package for more advanced operations.
That’s everything you need for a blazing-fast start with Lume. If you run into any issues or want to share your feedback, reach out to our team. Happy mapping!