A Next.js application for visualizing graph data using D3.js, built to work with Zep. This is designed to serve as a reference implementation of Graph Visualization for Zep users in their applications.
Zep is a memory layer for AI assistants and agents that continuously learns from user interactions and changing business data. Zep ensures that your Agent has a complete and holistic view of the user, enabling you to build more personalized and accurate user experiences.
- Interactive graph visualization of knowledge graphs built with Zep
- Force-directed layout with D3.js
- Zoom and pan functionality
- Node and edge highlighting
- Node and edge inspection
- Dark and light mode support
- Custom node colors based on entity types
- Edge labeling
- Next.js 15 with App Router
- React 19
- D3.js for graph visualization
- Tailwind CSS for styling
- Shadcn UI for UI components
- Zep Cloud SDK
- Node.js 18+ installed
- A Zep API key (if connecting to Zep Cloud)
- Clone the repository:
git clone https://github.com/getzep/zep-graph-visualization.git
cd zep-graph-visualization
- Install dependencies:
npm install
# or
yarn install
# or
pnpm install
- Set up environment variables:
Create a .env.local
file in the root directory with the following variables:
ZEP_API_KEY=your_zep_api_key
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the application.
The application provides an interactive graph visualization of knowledge triplets from Zep. You can:
- Click on nodes to see their details
- Click on edges to see relationship information
- Zoom in/out using the mouse wheel
- Pan the graph by dragging
- Toggle between dark and light modes