{"id":50973318,"url":"https://github.com/diyclassics/new-titles","last_synced_at":"2026-06-19T04:32:18.321Z","repository":{"id":353667308,"uuid":"1220321961","full_name":"diyclassics/new-titles","owner":"diyclassics","description":"ISAW Library monthly new-titles discovery: classifier, interactive review, publication HTML, and map.","archived":false,"fork":false,"pushed_at":"2026-05-13T19:59:22.000Z","size":2664,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-13T21:36:10.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://diyclassics.github.io/new-titles/","language":"HTML","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/diyclassics.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-04-24T19:25:19.000Z","updated_at":"2026-05-13T19:59:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/diyclassics/new-titles","commit_stats":null,"previous_names":["diyclassics/new-titles"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/diyclassics/new-titles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diyclassics%2Fnew-titles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diyclassics%2Fnew-titles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diyclassics%2Fnew-titles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diyclassics%2Fnew-titles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diyclassics","download_url":"https://codeload.github.com/diyclassics/new-titles/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diyclassics%2Fnew-titles/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.813Z","updated_at":"2026-06-19T04:32:18.315Z","avatar_url":"https://github.com/diyclassics.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# new-titles\n\nLibrary new-acquisitions discovery for a scholarly community: ingest, classify, map, deliver.\n\nThe flagship deliverable is **[nt-map](apps/nt-map/)**, an interactive map of recent ISAW Library acquisitions deployed to GitHub Pages. Sibling packages handle data ingest, classification, and the monthly CMS-ready HTML fragment that has historically lived on the ISAW website.\n\n## Repository layout\n\n```\napps/\n  nt-map/         Interactive map (Vite + React + react-leaflet) — public deliverable\n  nt-website/     Monthly standalone HTML fragment for the CMS (post-launch)\npackages/\n  nt-data/        Zod schemas, gazetteer, ingest pipeline; canonical acquisitions.json\n  nt-classify/    Region classifier (Python + scikit-learn, post-launch)\n  nt-recommend/   Scholar-aware recommendations (post-launch, types only today)\ndocs/\n  plans/          Design notes\n.github/workflows/\n  ci.yml          Lint, typecheck, validate, build (PRs and main)\n  deploy-map.yml  Build nt-map → GitHub Pages on push to main\n```\n\nEach app/package has its own `README.md` with details specific to that workspace.\n\n## Stack\n\n- **Monorepo:** pnpm workspaces (`pnpm-workspace.yaml`); Node ≥ 22, pnpm ≥ 10.\n- **TypeScript everywhere except `nt-classify`** (Python 3.12 + `uv`). One Python package, the rest TypeScript.\n- **Tooling:** [Biome](https://biomejs.dev/) for lint + format (`biome.json`), shared `tsconfig.base.json`, project-wide TS strict mode.\n- **Schemas:** [Zod](https://zod.dev/) — `acquisitions.json` is parsed at app boot; corrupt data fails loudly rather than rendering partial state.\n- **Map app (`nt-map`):** Vite 6, React 19, react-leaflet 5, `leaflet.markercluster`. AWMC/CAWM ancient-world basemap by default (configurable via env). URL hash drives view, month, selected record, search, and category filters — every visible state is shareable.\n- **Data (`nt-data`):** ingest is currently stubbed; vendored Pleiades subset acts as the gazetteer.\n- **CI:** lint (Biome) + typecheck (`tsc`) + Zod-validate `acquisitions.json` + build, plus Python lint/test once `nt-classify` lands.\n- **Deploy:** GH Pages via `actions/deploy-pages` from `apps/nt-map/dist`. Pages rebuild automatically on every push to `main`.\n\n## Setup\n\nYou need Node ≥ 22, pnpm ≥ 10, and (for `nt-classify`, post-launch) [`uv`](https://github.com/astral-sh/uv).\n\n```bash\npnpm install\n```\n\nThat installs everything across the workspace. Subsequent commands are `pnpm` filters that target individual packages.\n\n## Common commands\n\nRun from the repo root:\n\n```bash\npnpm dev:map           # nt-map dev server → http://localhost:5173\npnpm build             # build every package\npnpm typecheck         # tsc --noEmit across the workspace\npnpm lint              # Biome check on the whole repo\npnpm format            # Biome format --write\npnpm validate          # Zod-validate packages/nt-data/acquisitions.json (CI gate)\npnpm test              # run tests across the workspace (most are stubs today)\n```\n\nTo target a single package:\n\n```bash\npnpm --filter nt-map dev\npnpm --filter nt-map build\npnpm --filter @nt/data validate\n```\n\n## Map app at a glance\n\n`apps/nt-map` reads `@nt/data/acquisitions-YYYY-MM.json` (one chunk per month, code-split by Vite) and renders a clustered Leaflet map. Selection, view (map/list), month, search query, and category filter all live in the URL hash, so:\n\n- Sharing a URL preserves the exact view including a deep-linked marker.\n- Browser back/forward navigates state history.\n- Mobile users get a full-screen list ↔ map toggle; the same URL semantics apply.\n\nFor implementation details see `apps/nt-map/README.md`.\n\n## Deployment\n\n`nt-map` is the only currently-deployed surface. `.github/workflows/deploy-map.yml` builds the app on every push to `main` and publishes `apps/nt-map/dist` to GitHub Pages. The site is reachable at the repo's GH Pages URL; the Vite base path is set automatically by the workflow.\n\n`nt-website` (monthly HTML fragment) and `nt-classify` (region classifier) are post-launch.\n\n## Data flow\n\n```\nlibrarian export (CSV / JSON)\n        ↓                     packages/nt-data/data/exports/  (gitignored)\n   nt-data ingest\n        ↓\nacquisitions-YYYY-MM.json     ← canonical record set; consumed by all apps\n        ↓\n   nt-classify predict        (post-launch)\n        ↓\nclassifications-YYYY-MM.json  ← keyed by acquisition id; sibling file, never merged in\n        ↓\n   nt-map (browser)           ← lazy-loads month data on demand\n   nt-website (build script)  ← emits monthly HTML fragment (post-launch)\n```\n\nShelflist exports under `packages/nt-data/data/exports/` are local-only — the librarian's catalog system is the source of truth.\n\n## Conventions\n\n- **Inclusive terminology:** allowlist/blocklist, not whitelist/blacklist.\n- **Branch per session:** work happens on a descriptive branch, merged to `main` when stable.\n- **No backend:** everything is built artifacts + a static frontend. New per-scholar surfaces post-launch will be served as static pre-rendered routes.\n- **Commit style:** one logical change per commit, terse subject lines, body for the *why* when it isn't obvious from the diff.\n\n## Where to look next\n\n- `apps/nt-map/README.md` — map app specifics (env vars, base path, deploy)\n- `packages/nt-data/README.md` — schemas, gazetteer, ingest\n- `packages/nt-classify/README.md` — classifier plan\n- `apps/nt-website/README.md` — monthly fragment plan\n- `docs/plans/` — design notes and longer-form thinking\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiyclassics%2Fnew-titles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiyclassics%2Fnew-titles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiyclassics%2Fnew-titles/lists"}