datastream logo

datastream

Streams made easy. Commonly used stream patterns for Web Streams API and NodeJS Stream. Modular, composable, and lightweight.

Get started

Strong community

  • 100k+

    Weekly downloads

  • Lightweight

    Fewer dependencies

  • 96%+

    Test coverage

Everything you need for stream processing

Show me the code!

Build a complete data pipeline in just a few lines:

  import { pipeline, createReadableStream } from '@datastream/core'
import { csvParseStream } from '@datastream/csv'
import { validateStream } from '@datastream/validate'
import { gzipCompressStream } from '@datastream/compress'

const streams = [
  createReadableStream(csvData),
  csvParseStream({ header: true }),
  validateStream(schema),
  gzipCompressStream()
]

await pipeline(streams)

Packages

Explore the available stream packages.

Ready to get started?

Install datastream in seconds and start building stream pipelines today.

Read the docs