{"id":43916821,"url":"https://github.com/zooniverse/subject-set-search-api","last_synced_at":"2026-02-06T21:34:48.402Z","repository":{"id":43125821,"uuid":"359853939","full_name":"zooniverse/subject-set-search-api","owner":"zooniverse","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-17T14:16:25.000Z","size":106,"stargazers_count":0,"open_issues_count":4,"forks_count":2,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-10-18T16:59:03.355Z","etag":null,"topics":["aggregation","metadata"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zooniverse.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-04-20T14:55:17.000Z","updated_at":"2025-10-17T14:16:28.000Z","dependencies_parsed_at":"2024-04-26T19:46:36.118Z","dependency_job_id":"2fa88844-c8f9-4b20-b180-8b6703b5fe4d","html_url":"https://github.com/zooniverse/subject-set-search-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zooniverse/subject-set-search-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zooniverse%2Fsubject-set-search-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zooniverse%2Fsubject-set-search-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zooniverse%2Fsubject-set-search-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zooniverse%2Fsubject-set-search-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zooniverse","download_url":"https://codeload.github.com/zooniverse/subject-set-search-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zooniverse%2Fsubject-set-search-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29177553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T20:14:21.878Z","status":"ssl_error","status_checked_at":"2026-02-06T20:14:21.443Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aggregation","metadata"],"created_at":"2026-02-06T21:34:47.175Z","updated_at":"2026-02-06T21:34:48.396Z","avatar_url":"https://github.com/zooniverse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Production API\n\nBrowse the data, and run SQL queries at\nhttps://subject-set-search-api.zooniverse.org\n\n### Example queries\n\nAll subjects from set 92752 where `subject.metadata.Date` contains 'December'.\n\nhttps://subject-set-search-api.zooniverse.org/subjects/92752?_sort=rowid\u0026Date__contains=December\n\nOr as JSON.\n\nhttps://subject-set-search-api.zooniverse.org/subjects/92752.json?_sort=rowid\u0026Date__contains=December\n\nQueries use the [Datasette JSON API](https://docs.datasette.io/en/stable/json_api.html) with [column filter arguments](https://docs.datasette.io/en/stable/json_api.html#table-arguments).\n## Installation\n\nUse docker and docker-compose, no other way is supported\n\n## Getting Started\n\n## Generate some data\n\nGenerate some test data by writing some csv files to `./data/`. Each file will be named after a subject set ID: `12345.csv`.\n```\nnode src/subject-set.js\n```\n## Building the SQLite db(s)\n\n### Use custom docker image to build the dbs\n\nThe following will build a sqlite `subjects` db with one table for each csv file in the `/data/` directory of this repository. The table names are subject set IDs. One table per subject set.\n\n``` bash\ndocker-compose build\n```\n\n### Run Datasette with the built sql databases from above\n\n``` bash\ndocker-compose up\n```\n\nThis will start datasette and serve all the newly created files at http://127.0.0.1:8001\n\nSee docker-compose.yaml for more information\n\n## Run SQL queries directly against the databases\n\nJSON format\n- http://127.0.0.1:8001/subjects.json?sql=select+*from+[92751]+where+subject_id=58047414\n\nHTML format\n- http://127.0.0.1:8001/subjects?sql=select+*from+[92751]+where+subject_id=58047414\n\n## Manually interact with the sqlite db or datasette via bash\n\n``` bash\ndocker-compose run --rm --service-ports datasette bash\n# do what you want on the file system\n#\n# re-run the builder script manually\nimport-csv-files-to-sqlite.sh\n#\n# use sqlite repl to interact with the database.db file\nsqlite3 /mnt/databases/folder/database.db\n#\n# start datasette in config directoy \u0026 cors mode\ndatasette -h 0.0.0.0 --cors ./databases\n```\n\n## Updates\n\n- 2021.09.29: Intentional rebuild triggered.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzooniverse%2Fsubject-set-search-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzooniverse%2Fsubject-set-search-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzooniverse%2Fsubject-set-search-api/lists"}