{"id":18052444,"url":"https://github.com/simonskodt/cite-network","last_synced_at":"2026-05-11T05:41:53.687Z","repository":{"id":260169261,"uuid":"878933393","full_name":"simonskodt/cite-network","owner":"simonskodt","description":"Academic research citation network using Neo4J graph-based database","archived":false,"fork":false,"pushed_at":"2025-01-17T20:27:26.000Z","size":946,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T15:14:41.926Z","etag":null,"topics":["neo4j","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/simonskodt.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}},"created_at":"2024-10-26T14:07:48.000Z","updated_at":"2025-01-17T20:28:10.000Z","dependencies_parsed_at":"2025-01-17T19:40:15.643Z","dependency_job_id":null,"html_url":"https://github.com/simonskodt/cite-network","commit_stats":null,"previous_names":["simonskodt/cite-network"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonskodt%2Fcite-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonskodt%2Fcite-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonskodt%2Fcite-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonskodt%2Fcite-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonskodt","download_url":"https://codeload.github.com/simonskodt/cite-network/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247301628,"owners_count":20916545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["neo4j","spring-boot"],"created_at":"2024-10-30T23:11:45.146Z","updated_at":"2026-05-11T05:41:53.673Z","avatar_url":"https://github.com/simonskodt.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Academic Citation Network\n\nAn interactive graph-based explorer showing how academic papers cite each other. Built at Università della Svizzera italiana to integrate Spring Boot, Neo4j, and D3.js.\n\n---\n\n## Screenshots\n\n**Dark mode — 20 papers, 29 citation edges**\n\n\u003cimg src=\"./resources/screenshots/ui-dark-loaded.png\" alt=\"Citation network in dark mode\" width=\"800\"/\u003e\n\n**Light mode**\n\n\u003cimg src=\"./resources/screenshots/ui-light-loaded.png\" alt=\"Citation network in light mode\" width=\"800\"/\u003e\n\n**Search results — results appear in sidebar; click to add papers individually or press Add all**\n\n\u003cimg src=\"./resources/screenshots/ui-search-results.png\" alt=\"Author search showing Add all to graph button\" width=\"800\"/\u003e\n\n---\n\n## Features\n\n| Feature | Description |\n|---|---|\n| Force-directed graph | D3.js v7 simulation with directional citation arrows, colour-coded by decade |\n| Search | By title (partial match), author, publication year, or institution |\n| Selective graph building | Search results appear in the sidebar only — click a result to add it to the graph, or press **Add to graph** / **Add all to graph** |\n| Source filter tabs | Filter sidebar results by **All**, **Seed**, or **Added** (user-created) papers |\n| Expand on demand | **Cited by this** / **Citing this** buttons load connected papers around the selected node |\n| Draw citation edges | Hold a node for ~400 ms, then drag to another node to create a citation link |\n| Add new paper | Press **+ New** to create a paper (title, year, DOI, authors); optionally paste free text and let AI extract details |\n| Bulk import | Open **Bulk** to fetch papers by DOI via CrossRef, or paste free-text references for AI parsing; preview and confirm before committing |\n| Find online | Click **Find online** in the detail panel to open the DOI URL in a new tab |\n| AI integration | Configure an OpenAI or Anthropic key in **Settings** to enable AI-powered text parsing |\n| Light / dark mode | Toggle with the sun/moon button — preference saved in `localStorage` |\n| Node detail panel | Click any node to see its DOI, year, authors, and expand/remove actions |\n| Zoom \u0026 pan | Mouse scroll, +/− buttons, or ⊡ to fit the full graph |\n| Configurable sample size | Set how many seed papers to load (1–20) next to the **Load** button |\n\n---\n\n## Tech stack\n\n| Layer | Technology |\n|---|---|\n| Backend | Spring Boot 3.3.5, Spring WebFlux (reactive, Netty) |\n| Database | Neo4j 5 via Spring Data Neo4j (reactive repositories, Flux/Mono) |\n| Frontend | Vanilla JS + D3.js v7, served as a static classpath resource |\n| Dev server | `mock-server.js` — Node.js mock with 20 papers, no Neo4j needed |\n| Tests | JUnit 5, Mockito, `@WebFluxTest`, `@DataNeo4jTest` + embedded neo4j-harness |\n| CI | GitHub Actions — compile → test → package, with JUnit XML report upload |\n\n---\n\n## Data model\n\n```\n(Paper)-[:CITES]-\u003e(Paper)\n(Paper)-[:WRITTEN_BY]-\u003e(Author)\n(Author)-[:AFFILIATED_WITH]-\u003e(Institution)\n```\n\n### Entities\n\n| Node | Key properties |\n|---|---|\n| `Paper` | `paperId`, `title`, `publicationYear`, `doi` |\n| `Author` | `authorId`, `name` |\n| `Institution` | `institutionId`, `name`, `location` |\n\n### Original ER model\n\n\u003cimg src=\"./resources/screenshots/er-model.png\" alt=\"ER Model\" width=\"280\"/\u003e\n\n---\n\n## REST API\n\n| Method | Path | Description |\n|---|---|---|\n| `GET` | `/papers?limit={n}` | First *n* papers (default 20) |\n| `GET` | `/papers/title/{title}` | Paper whose title contains the query |\n| `GET` | `/papers/author/{name}` | Papers by author name |\n| `GET` | `/papers/year/{year}` | Papers by publication year |\n| `GET` | `/papers/institution/{name}` | Papers by institution |\n| `GET` | `/papers/{id}/cited-by` | Papers that this paper cites |\n| `GET` | `/papers/{id}/citing` | Papers that cite this paper |\n| `POST` | `/papers` | Create a paper (JSON body) |\n| `POST` | `/papers/{citingId}/cites/{citedId}` | Add a citation edge |\n| `DELETE` | `/papers/{id}` | Delete a paper |\n| `GET` | `/authors/coauthors/{name}` | Co-authors of the given author |\n\n---\n\n## Running\n\n### Option A — Frontend only (no Neo4j required)\n\nA Node.js mock server serves the UI and fakes all API endpoints with 20 sample papers and 29 citation edges.\n\n```bash\nnode mock-server.js\n# Open http://localhost:8080\n```\n\nIn Claude Code the **cite-network-ui** launch configuration (`.claude/launch.json`) starts this automatically from the Preview panel.\n\n### Option B — Full stack (Spring Boot + Neo4j)\n\n**Prerequisites:** Java 23+, Maven, Neo4j 5.\n\n1. Set Neo4j credentials in `src/main/resources/application.properties`:\n\n   ```properties\n   spring.neo4j.uri=bolt://localhost:7687\n   spring.neo4j.authentication.username=neo4j\n   spring.neo4j.authentication.password=your-password\n   ```\n\n2. Start the app:\n\n   ```bash\n   mvn spring-boot:run\n   # Open http://localhost:8080\n   ```\n\n### Option C — Docker Compose\n\n```bash\ndocker-compose up\n# Open http://localhost:8080\n```\n\n---\n\n## Tests\n\nTests use the embedded Neo4j harness — **no external database required**.\n\n```bash\nmvn verify\n```\n\n| Layer | Annotation | Tests |\n|---|---|---|\n| Repository | `@DataNeo4jTest` + harness | Cypher queries against a real in-process Neo4j |\n| Service | `@ExtendWith(MockitoExtension.class)` | Business logic with mocked repositories |\n| Controller | `@WebFluxTest` + `@MockBean` | HTTP routing, status codes, response shapes |\n\n---\n\n## CI\n\nGitHub Actions runs on every push and every PR targeting `main`:\n\n```\nCheckout → Set up JDK 23 → Compile → Test → Upload surefire reports (7 days)\n         → Package → Upload JAR artifact (14 days) → Test summary\n```\n\nThe embedded Neo4j harness means CI needs no database service container.\nTest results are uploaded as surefire XML artifacts and rendered as a job summary via `test-summary/action@v2`.\n\n---\n\n## Contributing\n\nSee [CONTRIBUTIONS.md](./resources/CONTRIBUTIONS.md) for contribution guidelines.\n\n## License\n\nMIT — see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonskodt%2Fcite-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonskodt%2Fcite-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonskodt%2Fcite-network/lists"}