{"id":50675731,"url":"https://github.com/zacharyfmarion/cultural-gravity","last_synced_at":"2026-06-08T15:33:23.400Z","repository":{"id":356639717,"uuid":"1233438332","full_name":"zacharyfmarion/cultural-gravity","owner":"zacharyfmarion","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-09T01:08:23.000Z","size":173,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T03:14:24.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zacharyfmarion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-09T00:53:17.000Z","updated_at":"2026-05-09T01:08:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zacharyfmarion/cultural-gravity","commit_stats":null,"previous_names":["zacharyfmarion/cultural-gravity"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zacharyfmarion/cultural-gravity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacharyfmarion%2Fcultural-gravity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacharyfmarion%2Fcultural-gravity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacharyfmarion%2Fcultural-gravity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacharyfmarion%2Fcultural-gravity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zacharyfmarion","download_url":"https://codeload.github.com/zacharyfmarion/cultural-gravity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacharyfmarion%2Fcultural-gravity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34069494,"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-08T02:00:07.615Z","response_time":111,"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":[],"created_at":"2026-06-08T15:33:22.586Z","updated_at":"2026-06-08T15:33:23.389Z","avatar_url":"https://github.com/zacharyfmarion.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cultural Gravity\n\nA daily movie guessing game that uses offline OpenAI embeddings to rank cultural similarity.\n\n## Scripts\n\n- `pnpm install`\n- `pnpm dev`\n- `pnpm build`\n- `pnpm typecheck`\n- `pnpm validate:puzzles`\n- `pnpm seed:local`\n- `pnpm update:daily`\n- `pnpm validate:generated`\n\n## Layout\n\n- `apps/arcade`: the playable web app.\n- `packages/game-core`: shared puzzle, scoring, state, validation, and shell primitives.\n- `packages/prototype-registry`: active game registration.\n- `prototypes/pop-culture-path`: the embedding-backed movie game.\n- `scripts/cultural-gravity.mjs`: syncs TMDB, updates cached embeddings, and writes daily static game data.\n- `.github/workflows/cultural-gravity-daily.yml`: daily GitHub Actions data update and Pages deploy.\n\nThe browser never calls OpenAI or TMDB. It loads static JSON from `apps/arcade/public/data`.\n\n## Publishing Setup\n\nAdd these repository secrets in GitHub:\n\n- `OPENAI_API_KEY`\n- `TMDB_API_KEY`\n\nEnable GitHub Pages with source set to **GitHub Actions**. The scheduled workflow restores the movie/vector cache, syncs TMDB, embeds only missing or changed movies with `text-embedding-3-large`, generates a rolling 7-day set of daily rank files, commits the static data, and deploys the Vite build.\n\nCache durability has two layers:\n\n- GitHub Actions cache is the fast path for normal daily runs.\n- A GitHub release named `state-cache` stores `cultural-gravity-cache-v1-text-embedding-3-large-1024.tar.gz` as the durable source of truth. The workflow restores from this release if the Actions cache is missing, then replaces the asset after a successful validation.\n\nThe release cache contains TMDB movie metadata and embedding vectors only. It does not contain API keys or user data.\n\nDefault catalog and answer filters are deliberately different:\n\n- Guess catalog: release year `1900+`, at least `10` TMDB votes, and popularity `\u003e= 0.1`.\n- Daily answers: release year `1990+`, at least `2,000` TMDB votes, and popularity `\u003e= 8`.\n- The full guess catalog can include obscure movies as guesses, but answers are restricted to modern, moderately popular movies.\n- `apps/arcade/public/data/answer-history.json` records past answers, and the daily generator skips repeats.\n\nLocal fallback:\n\n- `pnpm seed:local` regenerates a tiny 63-movie dataset from the current seed corpus.\n- `pnpm update:daily` requires both API keys and builds the scaled dataset.\n- `node scripts/cultural-gravity.mjs restore-state|validate-state|save-state` manages the durable release-backed cache.\n\nThe workflow enriches up to `2,000` new TMDB movies per run by default. Raise `CG_TMDB_DETAIL_LIMIT` after the first successful deploy if you want the catalog to fill faster.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacharyfmarion%2Fcultural-gravity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzacharyfmarion%2Fcultural-gravity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacharyfmarion%2Fcultural-gravity/lists"}