Build, visualize, and explore knowledge graphs with an interactive web interface. Perfect for research synthesis, systems mapping, or stakeholder analysis.
Live demo β an interactive ecosystem map of the author's public projects, built with this kit.
Quick Start β’ Templates β’ Documentation
- π― 4 Pre-built Templates - Research, Systems Mapping, Ecosystem Mapping, Generic
- π¨ Interactive Visualization - Click, explore, and navigate your knowledge graph
- π€ AI Integration - Optional Gemini chat for insights and exploration
- π Provenance Tracking - Track where each concept came from
- π§ Fully Configurable - Customize entity types, relationships, and visuals via YAML
- π» Simple Setup - Interactive wizard walks you through everything
cd knowledge-graph-kit
python setup_wizard.pyThe wizard will:
- Help you choose a template
- Configure AI integration (optional)
- Set up your project
- Launch the viewer
Takes 2-5 minutes.
# 1. Choose and copy a template
cp -r templates/research ./my-project
# 2. Install dependencies
pip install -r requirements.txt
# 3. Initialize
cd my-project
python init.py
# 4. Start the server
python server.py # Basic
# or
python start_server.py # With AI chatOpen http://localhost:8000/viewer.html in your browser.
Choose the template that fits your use case:
For: Academic papers, literature reviews, systematic analysis
Entities: Concepts, Researchers, Papers
Use Cases: Literature synthesis, concept mapping, citation networks
For: Systems thinking, complex systems analysis, organizational systems
Entities: Components, Teams, Specifications
Use Cases: Systems thinking, dependency mapping, impact analysis, systems documentation
For: Stakeholder analysis, value flows, organizational networks
Entities: Elements, Stakeholders, Insights
Use Cases: Ecosystem analysis, power mapping, value chain visualization
For: Custom domains not covered above
Entities: Fully customizable
Use Cases: Anything else - you define the schema
See full template comparison β
from core.graph_manager import GraphManager
# Initialize
gm = GraphManager('config.yaml')
# Add entities
gm.add_entity('primary', {
'id': 'design-thinking',
'label': 'Design Thinking',
'type': 'methodology',
'description': 'User-centered, iterative innovation process',
'source_papers': ['paper-001']
})
# Add relationships
gm.add_relationship('design-thinking', 'human-centered-design', 'relates-to')
# Save
gm.save()See a real systems map of the Knowledge Graph Kit codebase itself:
cd examples/systems-map-example
python build_map.py
python server.py
# Opens at http://localhost:8000/viewer.htmlIncludes: 20 components, 39 relationships, full documentation
View example documentation β
| Feature | Description |
|---|---|
| Interactive Graph | Drag, zoom, and explore nodes |
| Smart Search | Find entities by name or description |
| Click-through Navigation | Navigate between related entities |
| Show Connections | Focus on subgraphs |
| Breadcrumb Trail | Track your exploration path |
| Document Panel | View source documents inline |
| AI Chat | Ask questions about your graph (optional) |
your-project/
βββ config.yaml # Configuration
βββ _data/
β βββ entities.json # Your knowledge graph
βββ viewer.html # Interactive visualization
βββ server.py # HTTP server
βββ README.md # Template docs
All templates use YAML configuration:
domain: research
entity_types:
primary:
name: concepts
types: [methodology, framework, technology]
contributors:
name: researchers
sources:
name: papers
relationships:
types: [extends, builds-on, challenges]
visualization:
colors:
methodology: "#3498db"
framework: "#9b59b6"See the Generic template guide for all config options β
Enable Gemini AI chat for:
- Asking questions about your graph
- Finding patterns and connections
- Getting synthesis insights
Setup:
- Get API key from Google AI Studio
- Run setup wizard and choose "Enable Gemini"
- Or manually: copy
gemini_config.template.jsontogemini_config.jsonand add your key
- Template Comparison - Detailed comparison of all templates
- Examples - Code examples for common tasks
- Template READMEs - In each template directory
- Python 3.7+
- PyYAML
- google-generativeai (for AI features)
pip install -r requirements.txt- Build cumulative knowledge from papers
- Track concept evolution across sources
- Identify research gaps
- Generate literature reviews
- Map system dependencies and relationships
- Understand complex systems and feedback loops
- Analyze system dynamics and interactions
- Track ownership and specifications
- Map stakeholder relationships
- Analyze power structures
- Trace value flows
- Identify collaboration opportunities
Contributions welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE for details.
Built for researchers, architects, and analysts who need to understand complex, interconnected systems.
