{"id":50973302,"url":"https://github.com/diyclassics/random-zotero","last_synced_at":"2026-06-19T04:32:17.596Z","repository":{"id":355680111,"uuid":"126884299","full_name":"diyclassics/random-zotero","owner":"diyclassics","description":"Simple webapp for displaying a single random entry from a Zotero library","archived":false,"fork":false,"pushed_at":"2026-06-16T19:11:01.000Z","size":114,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-16T21:09:32.400Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://diyclassics.github.io/random-zotero/","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/diyclassics.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":"2018-03-26T20:11:20.000Z","updated_at":"2026-06-16T19:09:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/diyclassics/random-zotero","commit_stats":null,"previous_names":["diyclassics/random-zotero"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/diyclassics/random-zotero","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diyclassics%2Frandom-zotero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diyclassics%2Frandom-zotero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diyclassics%2Frandom-zotero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diyclassics%2Frandom-zotero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diyclassics","download_url":"https://codeload.github.com/diyclassics/random-zotero/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diyclassics%2Frandom-zotero/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34517748,"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-19T02:00:06.005Z","response_time":61,"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-19T04:32:17.172Z","updated_at":"2026-06-19T04:32:17.579Z","avatar_url":"https://github.com/diyclassics.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Random Zotero\n\nStatic page that displays a random entry from the public Zotero group library [*Annotated Bibliography of Digital Classics*](https://www.zotero.org/groups/625742/annotated_bibliography_of_digital_classics/library) (group `625742`).\n\nThe library is a public Zotero group, so the page calls the Zotero API directly from the browser — no backend, no API key, no build step.\n\n## How it works\n\nOn every page load, the browser:\n\n1. Reads the current item count from the `Total-Results` header of `api.zotero.org/groups/625742/items/top?limit=1`.\n2. Picks a random offset `0..total-1`.\n3. Fetches one item at that offset with the MLA bib HTML included (`include=bib\u0026style=mla`).\n4. Renders the citation in the page.\n\nTwo requests per visit, regardless of library size.\n\n## Local development\n\nNo build step. Open `index.html` directly, or serve the folder over HTTP:\n\n```\npython3 -m http.server 8000\n# then visit http://localhost:8000\n```\n\n## Deployment\n\nHosted on GitHub Pages, served from the `main` branch root. Pushing to `main` deploys.\n\n## Previous Flask version\n\nThe pre-rewrite Flask version is preserved at tag [`v0.1-flask`](../../tree/v0.1-flask).\n\n---\n\n*Written by Patrick J. Burns and Joseph Hartnett, October 2018; rewritten as a static site in May 2026.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiyclassics%2Frandom-zotero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiyclassics%2Frandom-zotero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiyclassics%2Frandom-zotero/lists"}