{"id":49893135,"url":"https://github.com/daxserver/curator","last_synced_at":"2026-06-03T19:00:14.590Z","repository":{"id":355625033,"uuid":"1228875055","full_name":"DaxServer/curator","owner":"DaxServer","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-02T19:35:07.000Z","size":642,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-02T20:16:17.340Z","etag":null,"topics":["bun","claude-code","drizzle-orm","elysiajs","mapillary","toolforge","typescript","vibe-coding","vue","wikimedia-commons"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/DaxServer.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":"2026-05-04T13:20:44.000Z","updated_at":"2026-06-02T19:34:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/DaxServer/curator","commit_stats":null,"previous_names":["daxserver/containers-bun","daxserver/curator"],"tags_count":64,"template":false,"template_full_name":null,"purl":"pkg:github/DaxServer/curator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaxServer%2Fcurator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaxServer%2Fcurator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaxServer%2Fcurator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaxServer%2Fcurator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaxServer","download_url":"https://codeload.github.com/DaxServer/curator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaxServer%2Fcurator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33876333,"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-03T02:00:06.370Z","response_time":59,"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":["bun","claude-code","drizzle-orm","elysiajs","mapillary","toolforge","typescript","vibe-coding","vue","wikimedia-commons"],"created_at":"2026-05-15T22:01:22.895Z","updated_at":"2026-06-03T19:00:14.585Z","avatar_url":"https://github.com/DaxServer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n# Curator\n\nA full-stack application for browsing [Mapillary](https://www.mapillary.com/) sequences and uploading selected street-level images to [Wikimedia Commons](https://commons.wikimedia.org/).\n\n## Overview\n\nThe Curator application consists of:\n\n1. **Backend**: An [Elysia](https://elysiajs.com/) service (Bun) with a REST API and WebSocket endpoint. [BullMQ](https://bullmq.io/) workers handle background upload tasks. Compiles to a single `curator-server` binary.\n2. **Frontend**: A Vue 3 application with TypeScript and PrimeVue for browsing Mapillary sequences, configuring upload metadata, and monitoring batch progress. Embedded into the binary at build time.\n\nThe application is deployed on [Wikimedia Toolforge](https://wikitech.wikimedia.org/wiki/Portal:Toolforge). The [curator-launcher](https://github.com/DaxServer/curator-launcher) downloads the `curator-server` binary from the latest GitHub release, verifies its Sigstore attestation, and execs into it.\n\n## Deployment\n\n### Build\n\nEvery push to `main` compiles the binary and publishes a GitHub release automatically via the [build workflow](.github/workflows/build.yml). The curator-launcher picks up the latest release at container startup — no manual build step is required.\n\n### Environment Variables\n\nUse `toolforge envvars` to set them up. The OAuth1 application is at [OAuth applications - Wikimedia Meta-Wiki](https://meta.wikimedia.org/wiki/Special:OAuthListConsumers/view/8e7c7bbe93a2623af57eb03f37448b3c).\n\n**Required:**\n\n```bash\nCURATOR_OAUTH1_KEY\nCURATOR_OAUTH1_SECRET\nTOKEN_ENCRYPTION_KEY\nSESSION_SECRET_KEY\nMAPILLARY_API_TOKEN\n```\n\n`SESSION_SECRET_KEY` signs cookie sessions. Rotating it invalidates all active user sessions. Generate with:\n\n```bash\nopenssl rand -hex 32\n```\n\n`TOKEN_ENCRYPTION_KEY` encrypts OAuth access tokens stored in the database using AES-GCM. Generate with:\n\n```bash\nopenssl rand -base64 32\n```\n\n**Optional:**\n\n| Variable | Default | Description |\n|---|---|---|\n| `PORT` | `8000` | HTTP port |\n| `REDIS_HOST` | `localhost` | Redis host |\n| `REDIS_PORT` | `6379` | Redis port |\n| `REDIS_PASSWORD` | — | Redis password |\n| `WCQS_OAUTH_TOKEN` | — | Wikimedia Commons Query Service OAuth token |\n| `DB_URL` | `mysql://curator:curator@localhost/curator` | MySQL connection URL (on Toolforge, automatically derived from `TOOL_TOOLSDB_USER` / `TOOL_TOOLSDB_PASSWORD`) |\n| `GEOCODING_API_URL` | `https://geocoding.daxserver.com/reverse` | Reverse geocoding endpoint |\n| `GEOCODING_CONCURRENCY_LIMIT` | `10` | Max concurrent geocoding requests |\n| `CELERY_CONCURRENCY` | `2` | Upload worker concurrency |\n| `CELERY_MAXIMUM_WAIT_TIME` | `240` | Max worker wait time in seconds |\n| `RATE_LIMIT_DEFAULT_NORMAL` | `4` | Default rate limit (requests) |\n| `RATE_LIMIT_DEFAULT_PERIOD` | `60` | Default rate limit window in seconds |\n| `X_USERNAME` | `DaxServer` | X (Twitter) username for syndication |\n| `X_API_KEY` | — | X API key |\n| `ENABLE_MAINTENANCE` | — | Set to `true` to enable maintenance mode |\n| `TOOL_DATA_DIR` | — | Tool data directory path |\n| `LOG_LEVEL` | — | Pino log level |\n\n### Webservice\n\nThe webservice is run via the [curator-launcher](https://github.com/DaxServer/curator-launcher) image. When deploying for the first time:\n\n```bash\ntoolforge webservice buildservice start --buildservice-image tool-curator/launcher:latest --mount=all\n```\n\nFor subsequent deployments (after a new release is published):\n\n```bash\ntoolforge webservice restart\n```\n\n## Development\n\n### Prerequisites\n\n- [Bun](https://bun.sh) 1.3.14\n\n### Installation\n\n```bash\nbun install\n```\n\n### Running the server\n\n```bash\nDEV_MOCK_AUTH=true DB_URL=mysql://curator:curator@localhost/curator \\\n  CURATOR_OAUTH1_KEY=abc123 CURATOR_OAUTH1_SECRET=abc123 \\\n  SESSION_SECRET_KEY=dev-secret TOKEN_ENCRYPTION_KEY=$(openssl rand -base64 32) \\\n  MAPILLARY_API_TOKEN=dev bun dev\n```\n\n`DEV_MOCK_AUTH=true` bypasses Commons OAuth — every request without an active session is automatically authenticated as a mock user. The frontend shows an amber banner when running under Vite dev mode with mock auth active.\n\nThe backend server will be available at http://localhost:8000 and the Vite dev server at http://localhost:5173.\n\n### Running Tests\n\n```bash\nbun test\n```\n\n### Code Style\n\n```bash\nbun lint\nbun format\n```\n\n### Type Checking\n\n```bash\nbun typecheck\n```\n\n### Database Migrations\n\n```bash\nDB_URL=mysql://curator:curator@localhost/curator bun db:generate\nDB_URL=mysql://curator:curator@localhost/curator bun db:migrate\n```\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaxserver%2Fcurator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaxserver%2Fcurator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaxserver%2Fcurator/lists"}