{"id":13490959,"url":"https://github.com/scratchdata/scratchdata","last_synced_at":"2026-06-01T13:00:49.752Z","repository":{"id":180246423,"uuid":"664816265","full_name":"scratchdata/scratchdata","owner":"scratchdata","description":"Scratch is a swiss army knife for big data.","archived":false,"fork":false,"pushed_at":"2024-07-19T17:29:04.000Z","size":14278,"stargazers_count":1116,"open_issues_count":16,"forks_count":53,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-23T05:12:29.380Z","etag":null,"topics":["bigquery","clickhouse","data-warehouse","duckdb","hacktoberfest","motherduck","olap","redshift","snowflake"],"latest_commit_sha":null,"homepage":"https://www.scratchdata.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scratchdata.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-10T20:15:01.000Z","updated_at":"2025-05-20T10:02:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"d77f896b-197f-4843-9109-cd8417a0cc00","html_url":"https://github.com/scratchdata/scratchdata","commit_stats":null,"previous_names":["scratchdata/scratchdb","scratchdata/scratchdata"],"tags_count":44,"template":false,"template_full_name":null,"purl":"pkg:github/scratchdata/scratchdata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scratchdata%2Fscratchdata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scratchdata%2Fscratchdata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scratchdata%2Fscratchdata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scratchdata%2Fscratchdata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scratchdata","download_url":"https://codeload.github.com/scratchdata/scratchdata/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scratchdata%2Fscratchdata/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33775864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bigquery","clickhouse","data-warehouse","duckdb","hacktoberfest","motherduck","olap","redshift","snowflake"],"created_at":"2024-07-31T19:00:52.391Z","updated_at":"2026-06-01T13:00:49.499Z","avatar_url":"https://github.com/scratchdata.png","language":"Go","funding_links":[],"categories":["Go","Integrations","hacktoberfest"],"sub_categories":["ETL and Data Processing"],"readme":"# Scratch Data\n\nScratch Data is a wrapper that lets you stream data into and\nout of your analytics database.\nIt takes arbitrary JSON as input and lets you perform analytical queries.\n\n## Quickstart\n\n### 1. Run the server\n\nClone the repo:\n```bash\n$ git clone git@github.com:scratchdata/scratchdata.git\n$ cd scratchdata\n```\n\nStart the service:\n``` bash\n$ go run . \n```\n\nWith no configuration, this will automatically set up a local DuckDB \ndatabase ready for reading and writing.\n\n#### Run with custom config\n\nCreate a `config.yaml` file with all of your settings and run:\n\n``` bash\n$ go run . config.yaml\n```\n\n### 2. Insert JSON data\n\n``` bash\n$ curl -X POST \"http://localhost:8080/api/data/insert/events?api_key=local\" \\\n    --data '{\"user\": \"alice\", \"event\": \"click\"}'\n```\n\nThe \"events\" table and columns are automatically\ncreated.\n\n### 3. Query\n\n```bash\ncurl -G \"http://localhost:8080/api/data/query\" \\\n     --data-urlencode \"api_key=local\" \\\n     --data-urlencode \"query=select * from events\" \n```\n\n## Other Features\n\n### Share Data\n\nYou can share data as CSV or JSON by creating \"share links\".\n\n``` bash\n$ curl -X POST \"http://localhost:8080/api/data/query/share?api_key=local\" \\\n    --data '{\"query\": \"select * from events\", \"duration\": 120}'\n```\n\nThis will produce a query ID that expires in 120 seconds. From there, send the following link to users:\n\n```\nhttp://localhost:8080/share/\u003cquery_id\u003e/data.csv\nhttp://localhost:8080/share/\u003cquery_id\u003e/data.json\n```\n\n### Copy Data\n\nYou can set up multiple databases and copy data between them.\nYou can run a SQL query against your source database and \nScratch will automatically create a table and insert data into\na destination.\n\n``` bash\n$ curl -X POST \"http://localhost:8080/api/data/copy?api_key=local\" \\\n    --data '{\"query\": \"select * from events\", \"destination_id\": 3, \"destination_table\": \"events\"}'\n```\n\n## Next Steps\n\nTo see the full list of options, look at:\nhttps://docs.scratchdata.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscratchdata%2Fscratchdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscratchdata%2Fscratchdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscratchdata%2Fscratchdata/lists"}