How peaceful-world-x/arxivhub works
ArXivHub is a paper-discovery and navigation hub for the web and a browser userscript. The main web workflow accepts an arXiv identifier, normalizes it into a paper route, fetches paper metadata and TLDR content, and presents document links plus categorized external tools. The catalog, citation/metric integrations, personalization, and userscript are separate product capabilities. Source evidence is partial; unsampled implementation relationships are omitted rather than inferred.
Main entry points: p.$id.tsx Paper view · router.tsx Route dispatch · tool-card.tsx Tool cards · tool-grid.tsx Tool grid
Components 24
Web experience
- Web app entry
web/src/main.tsx - Route dispatch
web/src/router.tsx - Home search
web/src/routes/index.tsx - ID search
web/src/components/search-bar.tsx - Paper view
web/src/routes/p.$id.tsx - Catalog view
web/src/routes/catalog.tsx - About view
web/src/routes/about.tsx - Shared shell
web/src/components/shell.tsx
Paper services
- arXiv metadata
web/src/lib/arxiv.ts - TLDR retrieval
web/src/lib/arxiv-tldr.ts - Metric cache
web/src/lib/paper-metric-cache.ts - Semantic Scholar
web/src/lib/semantic-scholar.ts - Citation detail
web/src/lib/semantic-scholar-page.ts - alphaXiv metrics
web/src/lib/alphaxiv.ts - OpenAlex citations
web/src/lib/openalex-citations.ts
Tool catalog
- Tool grid
web/src/components/tool-grid.tsx - Tool cards
web/src/components/tool-card.tsx - Sortable card
web/src/components/sortable-tool-card.tsx - Tool directory
web/src/lib/tools.ts - Paper navigation
web/src/lib/paper-navigation.ts - User preferences
web/src/lib/store.ts
Browser script
- ArXiv browser script
ArXivHub.user.js
Other components
- Researcher
- External research tools
Connections 26
- Researcher → Web app entry: opens
- Web app entry → Route dispatch: starts
web/src/main.tsx - Route dispatch → Home search: routes
web/src/routeTree.gen.ts - Route dispatch → Paper view: routes
web/src/routeTree.gen.ts - Route dispatch → Catalog view: routes
web/src/routeTree.gen.ts - Route dispatch → About view: routes
web/src/routeTree.gen.ts - Home search → ID search: renders
web/src/routes/index.tsx - ID search → Paper view: navigates
web/src/components/search-bar.tsx - Paper view → arXiv metadata: fetches paper
web/src/routes/p.$id.tsx - Paper view → TLDR retrieval: fetches summary
web/src/routes/p.$id.tsx - Paper view → Paper navigation: builds links
web/src/routes/p.$id.tsx - Home search → Tool grid: renders
web/src/routes/index.tsx - Paper view → Tool grid: renders
web/src/routes/p.$id.tsx - Tool grid → Tool cards: renders
web/src/components/tool-grid.tsx - Tool grid → Sortable card: renders
web/src/components/tool-grid.tsx - Tool cards → Tool directory: builds tool link
web/src/components/tool-card.tsx - Tool cards → User preferences: reads settings
web/src/components/tool-card.tsx - Paper view → Tool directory: builds quick links
web/src/routes/p.$id.tsx - Tool cards → External research tools: opens destination
web/src/components/tool-card.tsx - Paper view → Shared shell: renders
web/src/routes/p.$id.tsx - Citation detail → Semantic Scholar: uses service
web/src/lib/semantic-scholar-page.ts - Semantic Scholar → Metric cache: caches metrics
web/src/lib/semantic-scholar.ts - alphaXiv metrics → Metric cache: caches metrics
web/src/lib/alphaxiv.ts - OpenAlex citations → Metric cache: caches citations
web/src/lib/openalex-citations.ts - Researcher → ArXiv browser script: installs
- ArXiv browser script → External research tools: adds paper links