Create, customize, and share beautiful interactive graphs for any domain. Transform complex relationships into stunning visual networks.
Watch the full demo: Mode switching, node creation, and graph editing in action!
Ask natural language questions and get intelligent insights about your graph using Gemini AI!
- Dual Mode System: Toggle between View Mode (explore) and Edit Mode (create & modify)
- Drag-and-Drop Nodes: Intuitive force-directed physics simulation
- Custom Archetypes: Define categories with unique colors and descriptions
- Rich Node Data: Add names, descriptions, market sizes, and business models
- Gemini Integration: Ask natural language questions about your graph
- Smart Analysis: Get insights about node relationships, patterns, and structure
- Contextual Answers: AI understands your graph's archetypes, connections, and metadata
- Suggested Questions: Quick-start prompts to explore your graph
- Secure: API key stored locally in browser, never sent to our servers
- Connect Mode (π): Dedicated toolbar button for easy linking
- Shift+Click: Quick keyboard shortcut for power users
- Right-Click Menus: Quick access to edit and delete options
- Visual Feedback: Gold highlights show connection creation in progress
- Saved Graphs (π): Manage multiple named graphs locally
- Auto-Save: Never lose work - changes persist automatically
- JSON Import/Export: Back up and share as JSON files
- URL Sharing: Entire graph encoded in sharable links with QR codes
- No Backend Required: Works completely offline
- Interactive Tutorial: Step-by-step guide for new users
- Real-Time Notifications: Success/error feedback for all actions
- Search & Filter: Find nodes instantly by name or archetype
- Help Modal: Quick reference for all features
- Business Ecosystems & Value Chains
- Social Networks & Relationship Mapping
- Knowledge Graphs & Concept Maps
- Project Dependencies & Workflows
- Organizational Charts & Team Structures
- Node.js 16+ and npm
-
Clone the repository
git clone https://github.com/yourusername/graph-creator.git cd graph-creator -
Install dependencies
npm install
-
Run locally
npm run dev
Open
http://localhost:5173in your browser. -
Build for production
npm run build
π Complete User Guide: For detailed step-by-step instructions, see USER_GUIDE.md
Includes:
- How to create, edit, and delete nodes (with screenshots)
- How to connect nodes (Shift+Click explained)
- JSON import/export format and examples
- AI assistant usage guide
- Troubleshooting common issues
- Start Fresh: Click π "New Graph" button, name your graph, and start with a clean slate.
- Toggle Edit Mode: Click the mode toggle button at the top
- Add Nodes: Click β button and fill in node details
- Create Connections:
- Option A: Click Connect Mode (π), then click two nodes.
- Option B: Hold Shift, click first node, then second node.
- Connection arrow appears!
- Customize Archetypes: Click π¨ to create custom categories with colors
- Save Your Work:
- πΎ "Save to Browser" - Saves to localStorage (automatic)
- π "Saved Graphs" - View and manage all your saved graphs
- π€ "Save as JSON File" - Downloads a
.jsonbackup file
- Share: Click π to generate a shareable link with QR code
Edit a Node:
- Right-click the node β Select "βοΈ Edit Node"
- Or: Click Tutorial button (β) for visual guide
Delete a Node:
- Right-click the node β Select "ποΈ Delete Node"
- Connect Nodes: Toggle Connect Mode (π) OR Hold
Shift, then click two nodes sequentially to link them. Delete a Connection:
- Right-click directly on the connection line β Confirm deletion
Export (π€):
- Click the export button to download your graph as JSON
- Use this for backups or sharing files
Import (π₯):
- Click the import button to see JSON format documentation
- Download the template:
graph-template.json - Modify it with your data
- Format includes:
{ "name": "Graph Name", "nodes": [{id, name, archetype, outbound, inbound, ...}], "links": [{source, target, type}], "archetypes": [{id, name, color, description}] } - Full example in the modal that appears when you click π₯
- Create New Graph: Click π - Prompts for a name and saves current work
- Saved Graphs: Click π - Load previous graphs or delete old ones
- Save Progress: Click πΎ - Saves to browser localStorage
- Export Backup: Click π€ - Downloads JSON file to your computer
- Load from URL: Share links contain the entire graph - just open the link!
- Browser Storage: All saved graphs persist in localStorage
- Get API Key: Visit Google AI Studio to get a free Gemini API key
- Open AI Chat: Click the π€ floating button in the bottom right
- Enter API Key: Paste your key (stored securely in your browser)
- Ask Questions: Try these examples:
- "What are the main hubs in this graph?"
- "Which nodes have the most connections?"
- "Explain the different archetypes"
- "What insights can you provide about this ecosystem?"
- Get Insights: The AI analyzes your graph structure, connections, and metadata
Note: Your API key is stored locally in browser localStorage and never sent to our servers. Each request goes directly from your browser to Google's Gemini API.
Shift + Click: Create connection between nodesRight Click: Open context menu (Edit Mode only)
- Auto-Save: Graphs automatically save when you make changes
- URL Sharing: The entire graph is compressed and encoded in the URL - no server needed!
- Mobile Friendly: Works great on tablets and phones with touch support
- Frontend: React 18 + TypeScript
- Visualization: D3.js v7
- Build Tool: Vite
- State Management: Custom React hooks
- Styling: CSS Modules with Glassmorphism
- Compression: Pako (gzip)
- QR Codes: qrcode library
src/
βββ components/
β βββ Editor/ # Editor-specific components
β β βββ EditorToolbar.tsx
β β βββ NodeForm.tsx
β β βββ ArchetypeManager.tsx
β β βββ SavedGraphsModal.tsx
β β βββ NewGraphModal.tsx
β β βββ ShareModal.tsx
β βββ Graph.tsx # Main D3 visualization
β βββ InfoPanel.tsx # Node details panel
β βββ Controls.tsx # Search & filters
β βββ Tutorial.tsx # User onboarding
βββ hooks/
β βββ useGraphEditor.ts # State management
βββ utils/
β βββ graphStorage.ts # LocalStorage utilities
β βββ shareUtils.ts # URL encoding/decoding
βββ types/
β βββ graph.ts # TypeScript definitions
βββ App.tsx # Main application
This tool prioritizes visual excellence and user experience:
- Dark Mode First: Designed for modern OLED screens
- Glassmorphism: Premium frosted-glass UI panels
- Neon Glow Effects: D3 filters create stunning node halos
- Smooth Animations: Micro-interactions enhance engagement
- Responsive: Adapts beautifully to all screen sizes
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
New to web development? Check out our comprehensive Beginner's Guide that explains:
- How this application was built from scratch
- The logic behind each feature
- Technology stack explained in simple terms
- Step-by-step code walkthrough
- Tips and resources to learn more
Perfect for students and aspiring developers! π
- Built with β€οΈ using React and D3.js
- AI powered by Google Gemini
- Inspired by network graph tools and knowledge management systems
- Travel & Tourism Ecosystem template included as example
- π§ Email: your-email@example.com
- π Issues: GitHub Issues
- π Docs: See
DEPLOYMENT.mdfor hosting guide andBEGINNERS_GUIDE.mdfor learning resources


