Skip to content

Repository files navigation

@subsquid/file-store

license

Squid SDK store for writing indexed onchain data to local or S3 files as CSV, Parquet, or JSON.

Install

npm i @subsquid/file-store

What it does

@subsquid/file-store is a Squid SDK store implementation that persists the output of a squid processor to a filesystem as a dataset. You define tables with typed columns, and the store batches records and writes them to a destination as the processor runs. It supports local folders and Amazon S3 (and S3-compatible storage) as targets, with CSV, Parquet, and JSON as output formats via the companion packages:

  • @subsquid/file-store-csv for CSV output
  • @subsquid/file-store-parquet for Parquet output
  • @subsquid/file-store-json for JSON and JSONL output
  • @subsquid/file-store-s3 for writing to Amazon S3 and S3-compatible storage

This makes it a good fit when you want analytics-ready files or a data-lake dataset instead of a relational database.

Documentation

Full guides and API reference for the Squid SDK are at docs.sqd.dev. See the SDK documentation for how the store fits into a squid project.

Community

Questions and discussion happen in the SQD developers Telegram.

License

Licensed under GPL-3.0-or-later.

About

Squid SDK store: write indexed data to local or S3 files (CSV, Parquet, JSON).

Topics

Resources

Stars

2 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages