[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114706":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":32,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":16,"starSnapshotCount":16,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},114706,"nomad-library","Chrisgpresents\u002Fnomad-library","Chrisgpresents","Your public library's DVDs, Blu-rays and games on one browsable shelf. library.nomadovernormal.com","https:\u002F\u002Flibrary.nomadovernormal.com",null,"JavaScript",68,8,51,78,0,1,11,14,4,51.76,"GNU Affero General Public License v3.0",false,"main",[26,27,28,29,30,31],"blu-ray","cloudflare-pages","dvd","library","movies","public-library","2026-11-21 21:42:39","2026-11-23 18:32:23","\u003Cimg src=\"public\u002Ficons\u002Ficon-192.png\" alt=\"Nomad Library logo\" width=\"96\">\n\n# Nomad Library\n\nYour public library's DVDs, Blu-rays and games on one shelf you can actually browse, with ratings, trailers, filters and a watchlist. Free, no ads.\n\n**Live:** https:\u002F\u002Flibrary.nomadovernormal.com\n**Made by** [Nomad Over Normal](https:\u002F\u002Fwww.youtube.com\u002F@NomadOverNormal)\n\n## Help make it better\n\n- **Something broken, or your library doesn't work?** [Open an issue](https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library\u002Fissues\u002Fnew\u002Fchoose), or use the Feedback button on the site. Problems sent through the site get posted here (without names or emails), so this is one list.\n- **Want to fix something?** Read [CONTRIBUTING.md](CONTRIBUTING.md). Issues labeled [`good first issue`](https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library\u002Flabels\u002Fgood%20first%20issue) are a good place to start, and [`library-request`](https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library\u002Flabels\u002Flibrary-request) lists the catalog systems people are waiting on.\n- **Found a security problem?** Please [report it privately](https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library\u002Fsecurity\u002Fadvisories\u002Fnew), not in a public issue.\n\nThe library copier (the part that copies catalogs so shelves open instantly) lives in [nomad-library-data](https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library-data). New catalog systems are added there as readers.\n\n## Biggest things we need help with\n\nCounts are people who asked, through the site's Feedback button and the YouTube comments on the launch video.\n\n1. **More library catalog systems (US and Canada).** 48 people are waiting. Each catalog product needs a small reader in [nomad-library-data\u002Freaders](https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library-data\u002Ftree\u002Fmain\u002Freaders) that copies its DVDs, Blu-rays and games into a static file. Evergreen and Koha run whole statewide networks, so one reader can open hundreds of libraries. The hard part: every product shapes its pages differently, some sit behind bot walls this project won't get around, and readers have to stay slow and gentle on library servers. [Library requests by system](https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library\u002Flabels\u002Flibrary-request)\n2. **Libraries outside North America.** 74 people are waiting, in Germany, the UK, France, Denmark, Belgium, Switzerland, Australia and more. Often one platform serves a whole region (Bibliotheca OPEN, bibliotek.dk, Prism), so one reader can open a country. We need people who know which system their library runs and how discs are labeled in their language. Records carry local titles, so matching needs the original title, year or barcode.\n3. **Matching each disc to the right film.** Catalogs give the disc's year, edition notes and sometimes a translated title, and the browser has to guess which IMDb title it is. Same-name films (Cosmos 1980 and 2019) get the wrong rating, trailer or cover. Matching runs in the visitor's browser against compact rating files, so better rules (runtime, director, barcode, TV or film) have to stay small and fast. [#16](https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library\u002Fissues\u002F16)\n4. **Cover art for every title.** Some catalogs have no covers (CARL, Spydus), tiny ones, or ones that fail for part of the shelf. A fallback needs a source whose terms allow it, and a reliable film match first. [#4](https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library\u002Fissues\u002F4) [#18](https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library\u002Fissues\u002F18)\n5. **A directory of libraries that work.** Most people don't know their catalog link and paste the homepage. Working links are already saved per library, so a searchable list by state or ZIP is mostly a data and design job, plus people with local knowledge filling the gaps. [#21](https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library\u002Fissues\u002F21)\n6. **Which branch has the copy.** \"On the shelf\" can mean a branch 30 minutes away. Each reader would need to keep holdings per branch. [#17](https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library\u002Fissues\u002F17)\n\n**Bigger ideas (open an issue to talk first):** books, music CDs and audiobooks are the most requested addition (36 people), but there's no IMDb for them, so ratings, covers and matching need new sources, and book catalogs are about 10 times the size. [#10](https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library\u002Fissues\u002F10) [#12](https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library\u002Fissues\u002F12)\n\n## Run it on your computer\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library && cd nomad-library\nnpm install\nnpm run data          # downloads the ratings files from the live site (about 1,260 small files)\ncp .dev.vars.example .dev.vars\nnpm run db            # creates a local database\nnpm run dev           # http:\u002F\u002Flocalhost:8788\nnpm test              # needs Google Chrome; the network is mocked\n```\n\n## How it works\n\n- Hosting: Cloudflare Pages. pages.dev forwards to the custom domain from a script in the page. Functions only run on \u002Fapi\u002F* and \u002Ft (public\u002F_routes.json), so static files never count against the request limit.\n\n- `functions\u002Fapi\u002Fsearch.js` relays the library's public gateway (no key). Shelves are subject\u002Ftag queries that work at every library.\n- Ratings: `tools\u002Fbuild_index.py` turns IMDb's free datasets into `public\u002Fix\u002F*.json` shards; the browser matches them (Workers Free allows only 10 ms CPU, so matching never runs on the server). The disc year is a ceiling, most-voted wins, subtitles must match.\n- Accounts: passkeys + a backup code (`functions\u002Fapi\u002Fauth\u002F[action].js`), D1 `nomad-library`, signed cookie sessions. No email. Secret AUTH_SECRET (locally from `.dev.vars`).\n- Trailers: `\u002Ft?q=` finds the top YouTube result on first tap and caches it 120 days.\n- Deploy (maintainer only): `tools\u002Fdeploy.sh` publishes a clean export of `main`. Retry on upload timeouts.\n- Passkeys are tied to the domain. Move to the custom domain BEFORE launch, or pages.dev passkeys stop working there (backup codes still work).\n\n## Library copies (since 10.11.26)\n- A library opens from a static file `snap\u002F\u003Cslug>.json.gz` on Cloudflare Pages (https:\u002F\u002Fnomad-library-copies.pages.dev\u002Fsnap\u002F, project nomad-library-copies; GitHub Pages capped at 1 GB), made by the copier in the `nomad-library-data` repo on GitHub Actions. No Worker serves catalog data. The browser keeps its own copy in IndexedDB (6 libraries, used at once whatever its age, refreshed in the background).\n- A library with no copy browses live (`\u002Fapi\u002Fsearch`). The first visitor's browser sends one `POST \u002Fapi\u002Fwant` (once per device per day); the copier reads `GET \u002Fapi\u002Fwant` and copies requested libraries, oldest request first.\n- `functions\u002Fapi\u002Fsnap.js` is the OLD path. The `nomad-library-crawler` Worker was deleted and the D1 `chunks` data cleared on 10.11.26 (SQL backups in ~\u002Fnomad-library-backups\u002F). Rollback: deploy tag `pre-static-copies`; every library then browses live, because the old copies are gone.\n- Tests: `node test\u002Fbrowser.mjs` (real Chrome, whole network mocked; set FIXTURE_DIR to a folder of catalog files for the large-catalog runs). The copier has its own: `node test\u002Fe2e.mjs` in nomad-library-data.\n- Limits checked against official docs 10.11.26: Workers Free 100,000 requests\u002Fday and 10 ms CPU per request; static files are free and unlimited; GitHub Pages 1 GB site, 100 GB\u002Fmonth soft bandwidth, 10 builds\u002Fhour soft.\n\n## Any other catalog (since 10.11.26 night)\n- `public\u002Fcatalog.js` (used by the page and by `functions\u002Fapi\u002Flibrary.js`) reads a catalog link, names its system (Aspen, Vega, Encore, Polaris, SirsiDynix Enterprise, Evergreen, Koha, Sierra, CARL, Spydus, Apollo, Atriuum) and builds a title-search link. A catalog it doesn't know still works if the pasted link is a search (its `q=`\u002F`searchterm=` value becomes the title).\n- A non-BiblioCommons library opens the nationwide shelf (`lib=shelf`, `public\u002Fshelf.json`), and \"Check at \u003Clibrary>\" opens that catalog's search in the visitor's own browser, so catalogs that block programs still work. Never a web search.\n- A library website (not the catalog) is read for its catalog. If nothing is found, the page asks for the catalog link; \"Skip\" still opens movies.\n- Catalog links given for libraries in the directory are stored in D1 `catalogs` and served by `\u002Fapi\u002Fcatalogs`, so the next visitor from that library goes straight to movies. Hand-added ones: `public\u002Fcatalogs.json` (\"Name|ST\": link).\n\n## Other catalog systems we copy ourselves (since 11.1.26)\n- Vega (*.iiivega.com, and libraries' own domains that run Vega), Polaris PowerPAC, SirsiDynix Enterprise and CARL \u002F LS2 PAC are copied by readers in `nomad-library-data\u002Freaders\u002F\u003Csystem>.mjs`. Library ids are `\u003Csystem>.\u003Chost>[_\u003Cscope>]` (e.g. `vega.sdpl.na5.iiivega.com`, `polaris.catalog.slcolibrary.org_1-1033-0-0-1`); BiblioCommons slugs never have a dot, which is how everything tells them apart (`isReaderLib`, `readerId` in `public\u002Fcatalog.js`, mirrored from each reader's `libFromUrl`).\n- Paste flow: a readable catalog with a copy opens like any library (hold buttons link to the record at the library; no live shelf check, so the copy's shelf status stands and reader copies refresh every 2 days). Without a copy yet: `POST \u002Fapi\u002Fwant {lib, name, url}` (D1 `libs.url` keeps the link the copier needs), the visitor browses the popular shelf with Check at, and the page switches to the library's own shelf by itself once the copy exists (`upgradeGuest`). A catalog the copier gives up on (bot wall) stops promising (`guest.noCopy`).\n- Custom-domain Vega (catalog.dclibrary.org): `\u002Fapi\u002Flibrary` asks the site's `\u002Flookup` + `config.js` for the real `\u003Ccode>.\u003Cregion>.iiivega.com`.\n- Genres: these catalogs rarely carry genre headings, so the copier adds IMDb's genres to every matched title (`public\u002Fix\u002Fgenres.json`, `tools\u002Fbuild_genres.py`).\n- Not readable (measured 11.1.26): Aspen Discovery (Cloudflare blocks or an Anubis proof-of-work wall on every host tried), Great River's Enterprise (Cloudflare challenge).\n\n## License and name\n\nThe code is free software under the [GNU AGPL v3](LICENSE): you can use it, change it and run your own copy, and if you run a changed copy as a public website you have to share your changes under the same license. The Nomad Library name and logo aren't covered by that license, see [BRAND.md](BRAND.md). Ratings come from IMDb's datasets (personal and non-commercial use), which is why those files aren't in this repo.\n\nThanks to everyone who has [contributed](https:\u002F\u002Fgithub.com\u002FChrisgpresents\u002Fnomad-library\u002Fgraphs\u002Fcontributors). See [CREDITS.md](CREDITS.md).\n","Nomad Library 是一个开源的网页应用，用于将公共图书馆的DVD、蓝光光盘和游戏资源整合到统一、可浏览的在线书架中。它支持按类型、评级、年份等多维度过滤，提供预告片、用户评分和收藏清单功能，所有数据通过静态文件在客户端处理，不依赖后端服务。项目采用 JavaScript 构建，部署于 Cloudflare Pages，强调隐私友好与零广告。适用于希望便捷访问本地图书馆音像资源的普通读者，尤其适合北美地区使用 Evergreen、Koha 等主流ILS系统的公共图书馆用户。",2,"2026-11-24 04:49:27","CREATED_QUERY"]