{"id":31546825,"url":"https://github.com/mvuorre/psyarxivdb","last_synced_at":"2026-05-14T21:38:09.539Z","repository":{"id":287076295,"uuid":"959074007","full_name":"mvuorre/psyarxivdb","owner":"mvuorre","description":"Datasette serving PsyArXiv preprint metadata","archived":false,"fork":false,"pushed_at":"2026-03-31T12:53:49.000Z","size":345,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-05-04T21:45:49.404Z","etag":null,"topics":["data","datasette","open-science","preprints","psyarxiv"],"latest_commit_sha":null,"homepage":"https://psyarxivdb.vuorre.com/","language":"Python","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/mvuorre.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2025-04-02T08:19:27.000Z","updated_at":"2026-03-31T12:53:53.000Z","dependencies_parsed_at":"2025-11-10T17:04:36.964Z","dependency_job_id":null,"html_url":"https://github.com/mvuorre/psyarxivdb","commit_stats":null,"previous_names":["mvuorre/osfdatasette","mvuorre/psyarxivdb"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mvuorre/psyarxivdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvuorre%2Fpsyarxivdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvuorre%2Fpsyarxivdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvuorre%2Fpsyarxivdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvuorre%2Fpsyarxivdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvuorre","download_url":"https://codeload.github.com/mvuorre/psyarxivdb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvuorre%2Fpsyarxivdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33044464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["data","datasette","open-science","preprints","psyarxiv"],"created_at":"2025-10-04T15:56:00.499Z","updated_at":"2026-05-14T21:38:09.533Z","avatar_url":"https://github.com/mvuorre.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PsyArXivDB\n\nA [Datasette](https://datasette.io/) instance serving [PsyArXiv](https://psyarxiv.com/) preprint data from the [Open Science Framework](https://osf.io/) (OSF) API. Updated daily.\n\nBrowse PsyArXiv preprints at \u003chttps://psyarxivdb.vuorre.com\u003e.\n\n[Comments](https://github.com/mvuorre/psyarxivdb/issues) welcome. Thanks to OSF, PsyArXiv, and all researchers sharing their work.\n\n## Development\n\nBefore getting started, get a copy of a current database file from Matti to speed up the setup \u0026 avoid unnecessarily stressing the OSF API.\n\n### Prerequisites\n\n- Computer etc.\n- Python 3.9-3.13\n- [UV](https://github.com/astral-sh/uv)\n\n### Setup and use\n\n```bash\n# Clone the repository\ngit clone https://github.com/mvuorre/psyarxivdb\ncd psyarxivdb\n\n# Create .venv with the repo-pinned Python 3.13 and install dependencies\nuv sync --frozen\n\n# Optional: activate the environment in your shell\nsource .venv/bin/activate\n\n# Harvest and process PsyArXiv data\nmake harvest    # Fetch raw data from OSF API\nmake ingest     # Process into normalized tables\n\n# Check status\nmake status\n\n# Dump processed preprints table as compressed csv\nmake dump\n\n# Run daily update of database\nmake daily-update\n\n# Show all available commands\nmake help\n```\n\nTo rebuild the small precomputed tables used by the dashboard without doing a full ingest, including the precomputed `coauthor_edges` table, run:\n\n```bash\nmake refresh-dashboard-summaries\n```\n\n### Local copy workflow\n\nThe simplest local development flow is:\n\n1. Pull a fresh copy of the database from the VPS.\n2. Run Datasette locally against that copy.\n3. Point any local apps at `http://127.0.0.1:8001`.\n\nCreate a local `.env` file with the VPS connection details. `.env` is gitignored.\n\n```bash\ncp .env.example .env\n```\n\nThen edit `.env` so it contains:\n\n```bash\nDEV_DB_HOST=user@your-vps\nDEV_DB_REMOTE_PATH=/path/to/preprints.db\n```\n\nThen pull the latest copy:\n\n```bash\nmake pull-db\n```\n\nThis copies `DEV_DB_REMOTE_PATH` from the VPS to `data/preprints.db` using `rsync`.\n\nKeep it simple: run this when the VPS database is not being updated.\n\nIf you pulled an older copy of the database or you changed the dashboard summary-table logic, refresh those tables once:\n\n```bash\nmake refresh-dashboard-summaries\n```\n\nThen serve the local copy with Datasette:\n\n```bash\nmake datasette-local\n```\n\nThis serves `data/preprints.db` on `http://127.0.0.1:8001` with the Datasette metadata in `datasette/metadata.yml` and production-like query limits, including `sql_time_limit_ms=5000`.\n\nIf `make datasette-local` says Datasette is not installed, run:\n\n```bash\nuv sync --frozen\n```\n\n### Project Structure\n\n- `data/preprints.db` - SQLite database with all data\n- `osf/` - Core library (harvester, ingestor, database)\n- `scripts/` - CLI tools (`harvest.py`, `ingest.py`)\n- `tools/` - Admin utilities (`show_status.py`, `fix_gaps.py`, `refresh_dashboard_summaries.py`)\n- `datasette/` - Metadata configuration for web interface\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvuorre%2Fpsyarxivdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvuorre%2Fpsyarxivdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvuorre%2Fpsyarxivdb/lists"}