BASE

Remeda

Remeda

Backend / API library · Free

Typed functional JavaScript and TypeScript utilities: they transform collections and objects through composable pipelines.

Also known as: remeda/remeda; remeda

Resource illustration: Remeda

Open resource ↗

What you can use for free

Code and local use under MIT.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Create a typed data transformation pipeline
  • Compose a filtering, mapping, or grouping pipeline and check inferred types

Example workflow

A possible workflow; this is not a report of hands-on testing.

Create a typed data transformation pipeline.

Before you start

  • A data contract or HTTP workflow.
  • A project with a supported runtime.

Steps

  1. Define the source collection and expected result shape.
  2. Compose a filtering, mapping, or grouping pipeline and check inferred types.
  3. Add error handling and an integration check of the result.

Check your result

  • Invalid and missing data are handled predictably.
  • Types and the actual response agree; errors are not hidden.

Choosing Remeda

Create a typed data transformation pipeline

Choose this when

  • Create a typed data transformation pipeline
  • Compose a filtering, mapping, or grouping pipeline and check inferred types

Requirements

  • Choose data-first calls for direct array processing or data-last functions for pipe/piped.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: MIT for the code; dependencies have separate licenses.
  • Lazy operations may not traverse the entire input; do not assume a forEach side effect in a pipeline visits the whole array.

Frequently asked questions

What can you use for free in Remeda?

Code and local use under MIT.

What additional costs might arise with Remeda?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for Remeda?

MIT for the code; dependencies have separate licenses.

How do you get started with Remeda?

Define the source collection and expected result shape. Compose a filtering, mapping, or grouping pipeline and check inferred types. Add error handling and an integration check of the result.

How do the two calling styles differ?

In data-first style, data is the first argument. In data-last style, the function takes parameters and returns a transformer for pipe. Both styles are included.

When might a pipeline process only part of an array?

In the README example, the forEach, unique, and take(3) chain visits only enough elements to obtain three unique results. This comes from lazy execution of compatible operations.

License

MIT for the code; dependencies have separate licenses.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • Remeda
  • API
  • Development

Sources

Other resources