← All projects

Project 04 · June 2025

Graph Explorer.

Query and visualize relationships across 500+ entities

High-level architecture

Users and sourcesFrontend and toolingExpress backendDatabasetokenRESTJSON datasetsCypherloadusersUser / adminBrowses, queries, adds dataPublic company dataSource websitesReact SPAD3 force-directed graphSelenium crawlersScrape and normalise to JSONAuth middlewareJWT, bcrypt, rolesGraph REST APICIN / DIN lookup, queriesImport scriptJSON to nodes and edgesNeo4jCompanies, directors, links
PersonService I builtData storeExternal / separate serviceOne deployable unit

Overview

Interactive graph-based DBMS explorer using Neo4j, Node.js, Selenium, React, and D3.js to visualize and query relationships across 500+ companies with automated data extraction and dynamic node-link exploration.

What I built

  • 01Full-stack graph application to query and visualize 500+ interconnected entities
  • 02REST APIs and automated ingestion pipelines that convert unstructured data into Neo4j graph formats
  • 03Interactive node-link visualizations built with React and D3.js

Deep dive

How it works under the hood

  1. 01

    Why a graph database

    The data is companies, directors and the links between them. Questions like which other companies share a director with this one are multi-hop joins in a relational model but a single traversal in Neo4j. Companies and directors are nodes keyed by CIN and DIN, and directorships are relationships, so the query matches the shape of the question.

  2. 02

    From websites to a graph

    Selenium crawlers collect company and director records from public sources and normalise them into JSON datasets. An import script turns those into nodes and relationships in Neo4j, so the pipeline from unstructured pages to a queryable graph is repeatable instead of a manual load.

  3. 03

    API and access control

    An Express REST API exposes lookups by CIN and DIN, secondary-company discovery and a set of predefined analytical queries, each backed by Cypher. Authentication uses JWT with bcrypt-hashed passwords, and role middleware restricts data entry to admins while authenticated users can browse and query.

  4. 04

    Rendering 500+ connected entities

    The frontend draws the result as a D3 force-directed graph with zoom, drag and node selection. Rather than a static picture, selecting a node drives further lookups, so exploring the network is a matter of following links.