An interactive web-based tool for visualizing knowledge graphs using D3.js and ForceGraph. This application allows you to upload entities and relationships data to create dynamic, interactive network visualizations.
- Interactive Graph Visualization: Powered by ForceGraph with D3.js force simulation
- File Upload Support: Load entities (JSON) and relationships (JSON/CSV) from local files
- Node Clustering: Automatic clustering with color-coded visualization
- Graph Controls:
- Zoom to fit
- Center graph
- Reset graph
- Toggle cluster coloring
- Dark/Light Mode: Toggle between light and dark themes
- Interactive Elements:
- Click nodes and links to view details
- Hover effects and connection highlighting
- Responsive layout
- Open
index.htmlin a web browser - Upload your data files:
- Entities: JSON file containing node data
- Relationships: JSON or CSV file containing edge data
- Click "Generate Graph" to visualize your knowledge graph
[
{
"id": "unique_id",
"name": "Entity Name",
"entity_type": "type",
"attributes": {},
"topic_name": "topic",
"created_at": "timestamp",
"updated_at": "timestamp"
}
][
{
"id": "relationship_id",
"source_entity_id": "source_id",
"target_entity_id": "target_id",
"description": "relationship description",
"weight": 1.0,
"meta": {},
"document_id": "doc_id",
"chunk_id": "chunk_id",
"last_modified_at": "timestamp"
}
]- Modern web browser with JavaScript enabled
- Internet connection (for D3.js and ForceGraph CDN dependencies)
- JSON data files in the specified format
- D3.js v7 - Data visualization library
- ForceGraph - Force-directed graph visualization
- HTML5/CSS3/JavaScript - Core web technologies
This project is open source and available under the MIT License.