Files
TrulyMEM-TrueHumanMEM/graph_memory_tui/web/templates/index.html
JianFeeeee 6689f08456 feat: Add embedded SQLite database and web interface
- Implement EmbeddedGraphDB with full Neo4j compatibility
- Add web interface for browser access
- Fix input box display issue
- Add comprehensive database tests (15/15 passed)
- Simplify startup script (3 steps, no Docker needed)
- Add multi-language support
- Add .gitignore for clean repository
- Update documentation

All tests passed. Ready for production.
2026-04-10 15:43:22 +08:00

81 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Graph Memory TUI - Web Interface</title>
<meta charset="utf-8">
<style>
body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
background: #f5f5f5;
}
h1 {
color: #333;
}
.info {
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.api-docs {
margin-top: 20px;
}
.endpoint {
background: #e8f4f8;
padding: 10px;
margin: 10px 0;
border-radius: 4px;
}
code {
background: #f0f0f0;
padding: 2px 6px;
border-radius: 3px;
}
</style>
</head>
<body>
<h1>Graph Memory TUI - Web Interface</h1>
<div class="info">
<h2>Welcome!</h2>
<p>This is the web interface for Graph Memory TUI.</p>
<p>For full functionality, please use the TUI application.</p>
<div class="api-docs">
<h3>API Endpoints</h3>
<div class="endpoint">
<h4>POST /api/chat</h4>
<p>Send a chat message</p>
<code>{"message": "your message"}</code>
</div>
<div class="endpoint">
<h4>POST /api/memory/recall</h4>
<p>Recall memories</p>
<code>{"query_intent": "keywords"}</code>
</div>
<div class="endpoint">
<h4>POST /api/memory/commit</h4>
<p>Commit memories</p>
<code>{"triplets": [...]}</code>
</div>
<div class="endpoint">
<h4>GET /api/memory/introspect</h4>
<p>Get database statistics</p>
</div>
<div class="endpoint">
<h4>GET /api/config</h4>
<p>Get current configuration</p>
</div>
</div>
</div>
</body>
</html>