# scratchdata/scratchdata

Scratch is a swiss army knife for big data.

Repository: https://github.com/scratchdata/scratchdata
Canonical: https://ross.abutalabs.com/products/scratchdata
Homepage: https://www.scratchdata.com
Language: Go
License: AGPL-3.0
License Family: copyleft
Topics: clickhouse, data-warehouse, hacktoberfest, olap, bigquery, redshift, snowflake, duckdb, motherduck
Last push: 2024-07-19T17:29:04+00:00

## Health v2 (maintenance only)
Score: 19/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 82
- inputs: {"age_days": 1150, "days_push": 775, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1120, forks 53 (observed 2026-08-28T04:03:39.553189+00:00)

## What it is
Scratch Data is a self-hosted Go service that acts as a wrapper around analytics databases like DuckDB, ClickHouse, BigQuery, Snowflake, and Redshift. It accepts arbitrary JSON via an HTTP API, auto-creates tables, and lets you run SQL queries, share results as CSV/JSON links, and copy data between databases.

## Use cases
- stream json events into an analytics database without schema setup
- query a data warehouse over a simple http api
- share query results as expiring csv or json links
- copy data between clickhouse, snowflake, bigquery and other warehouses
- spin up a local duckdb analytics endpoint quickly
- ingest event data with automatic table creation

## When to choose
- you want a lightweight self-hosted layer to stream JSON into OLAP databases
- you need a simple REST API in front of a data warehouse
- you want automatic schema creation from arbitrary JSON payloads
- you need to move query results between different analytics databases

## When to avoid
- you need a full-featured ETL orchestration platform with scheduling and transforms
- you require transactional OLTP database workloads
- you need a managed cloud service with enterprise support
- AGPL-3.0 licensing is incompatible with your usage

## Facets
- artifact type: service
- maturity: active
- function: database, etl, http-server, api-framework, streaming
- domain: databases, analytics, big-data
- platform: go, self-hosted, cross-platform
- tags: olap, clickhouse, duckdb, data-warehouse, json-ingestion, sql-api, share-links, data-copy, data-engineering, docker

## Member repositories
- scratchdata/scratchdata (main) score 19

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:39.553189+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:41:07.437615+00:00, confidence not recorded.
  - readme: https://github.com/scratchdata/scratchdata (fetched 2026-08-28T04:03:39.553189+00:00, sha d670b73607e8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
