How dataojitori/nocturne_memory works
Nocturne Memory is an MCP long-term-memory server with a browser dashboard. Agents use MCP tools to create, read, search, and update namespaced memories; the backend persists and indexes them, while people browse memories and audit or manage changes in the dashboard. The repository also includes heartbeat integrations. The graph uses README claims and indexed imports as evidence; several domain modules are indexed but not excerpted, so their internal call paths are left unspecified.
Main entry points: web_app.py Web API · mcp_server.py MCP tools · api.js Dashboard API client · App.jsx Dashboard shell
Components 25
Agent interface
- MCP tools
backend/mcp_server.py - Boot views
backend/system_views.py - Web API
backend/web_app.py - Browse endpoints
backend/api/browse.py - Review endpoints
backend/api/review.py - Settings endpoints
backend/api/settings.py
Memory services
- Memory graph
backend/db/graph.py - Search index
backend/db/search.py - Glossary
backend/db/glossary.py - Presets
backend/db/presets.py - Change snapshots
backend/db/snapshot.py - Database manager
backend/db/database.py - Memory models
backend/db/models.py - Namespace context
backend/db/namespace.py
Dashboard
- Dashboard API client
frontend/src/lib/api.js - Dashboard shell
frontend/src/App.jsx - Memory explorer
frontend/src/features/memory/MemoryBrowser.jsx - Review and audit
frontend/src/features/review/ReviewPage.jsx - Maintenance
frontend/src/features/maintenance/MaintenancePage.jsx - Settings
frontend/src/features/settings/SettingsDrawer.jsx
Operations
- Configuration
backend/config.py - Bearer authentication
backend/auth.py - Heartbeat engine
desktop_pet/heartbeat_engine.py - Heartbeat integrations
desktop_pet/antigravity_heartbeat.py
Other components
- MCP client
Connections 27
- MCP client → MCP tools: calls tools
README.md - MCP tools → Memory graph: reads and writes
backend/mcp_server.py - MCP tools → Boot views: uses views
backend/mcp_server.py - MCP tools → Web API: starts dashboard
backend/mcp_server.py - MCP tools → Change snapshots: records changes
backend/mcp_server.py - Web API → Browse endpoints: routes to
backend/web_app.py - Web API → Review endpoints: routes to
backend/web_app.py - Web API → Settings endpoints: routes to
backend/web_app.py - Web API → Bearer authentication: configures auth
backend/web_app.py - Browse endpoints → Memory graph: uses services
backend/api/browse.py - Browse endpoints → Namespace context: uses context
backend/api/browse.py - Review endpoints → Change snapshots: reads changes
backend/api/review.py - Settings endpoints → Namespace context: uses context
backend/api/settings.py - Memory graph → Database manager: persists through
- Search index → Database manager: indexes through
backend/db/search.py - Database manager → Memory models: creates schema
backend/db/database.py - Dashboard shell → Memory explorer: renders
frontend/src/App.jsx - Dashboard shell → Review and audit: renders
frontend/src/App.jsx - Dashboard shell → Maintenance: renders
frontend/src/App.jsx - Dashboard shell → Settings: renders
frontend/src/App.jsx - Memory explorer → Dashboard API client: requests data
frontend/src/features/memory/MemoryBrowser.jsx - Review and audit → Dashboard API client: requests review
frontend/src/features/review/ReviewPage.jsx - Maintenance → Dashboard API client: requests actions
frontend/src/features/maintenance/MaintenancePage.jsx - Settings → Dashboard API client: requests settings
- Dashboard API client → Web API: HTTP requests
- Configuration → Database manager: configures database
backend/db/__init__.py - Heartbeat integrations → Heartbeat engine: uses engine
desktop_pet/antigravity_heartbeat.py