Minne (Swedish for "memory") is a personal knowledge management system and save-for-later application for capturing, organizing, and accessing your information. Inspired by the Zettelkasten method, it uses a graph database to automatically create connections between your notes without manual linking overhead.
To test Minne out, enter this read-only demo deployment to view and test functionality out.
- Search & Chat Interface - Find content or knowledge instantly with full-text search, or use the chat mode and conversational AI to find and reason about content
- Manual and AI-assisted connections - Build entities and relationships manually with full control, let AI create entities and relationships automatically, or blend both approaches with AI suggestions for manual approval
- Hybrid Retrieval System - Search combining vector similarity, full-text search, and graph traversal for highly relevant results
- Scratchpad Feature - Quickly capture thoughts and convert them to permanent content when ready
- Visual Graph Explorer - Interactive D3-based navigation of your knowledge entities and connections
- Multi-Format Support - Ingest text, URLs, PDFs, audio files, and images into your knowledge base
- Performance Focus - Built with Rust and server-side rendering for speed and efficiency
- Self-Hosted & Privacy-Focused - Full control over your data, and compatible with any OpenAI-compatible API that supports structured outputs
For a while I've been fascinated by personal knowledge management systems. I wanted something that made it incredibly easy to capture content - snippets of text, URLs, and other media - while automatically discovering connections between ideas. But I also wanted to maintain control over my knowledge structure.
Traditional tools like Logseq and Obsidian are excellent, but the manual linking process often became a hindrance. Meanwhile, fully automated systems sometimes miss important context or create relationships I wouldn't have chosen myself.
So I built Minne to offer the best of both worlds: effortless content capture with AI-assisted relationship discovery, but with the flexibility to manually curate, edit, or override any connections. You can let AI handle the heavy lifting of extracting entities and finding relationships, take full control yourself, or use a hybrid approach where AI suggests connections that you can approve or modify.
While developing Minne, I discovered KaraKeep (formerly Hoarder), which is an excellent application in a similar space – you probably want to check it out! However, if you're interested in a PKM that offers both intelligent automation and manual curation, with the ability to chat with your knowledge base, then Minne might be worth testing.
- Quick Start
- Features in Detail
- Configuration
- Tech Stack
- Application Architecture
- AI Configuration
- Roadmap
- Development
- Contributing
- License
The fastest way to get Minne running is with Docker Compose:
# Clone the repository
git clone https://github.com/perstarkse/minne.git
cd minne
# Start Minne and its database
docker compose up -d
# Access at http://localhost:3000Required Setup:
- Replace
your_openai_api_key_hereindocker-compose.ymlwith your actual API key - Configure
OPENAI_BASE_URLif using a custom AI provider (like Ollama)
For detailed installation options, see Configuration.
Search - Use when you know roughly what you're looking for. Full-text search finds items quickly by matching your query terms.
Chat Mode - Use when you want to explore concepts, find connections, or reason about your knowledge. The AI analyzes your query and finds relevant context across your entire knowledge base.
Minne automatically processes content you save:
- Web scraping extracts readable text from URLs
- Text analysis identifies key concepts and relationships
- Graph creation builds connections between related content
- Embedding generation enables semantic search capabilities
Explore your knowledge as an interactive network with flexible curation options:
Manual Curation - Create knowledge entities and relationships yourself with full control over your graph structure
AI Automation - Let AI automatically extract entities and discover relationships from your content
Hybrid Approach - Get AI-suggested relationships and entities that you can manually review, edit, or approve
The graph visualization shows:
- Knowledge entities as nodes (manually created or AI-extracted)
- Relationships as connections (manually defined, AI-discovered, or suggested)
- Interactive navigation for discovery and editing
Minne ships with an opt-in reranking stage powered by fastembed-rs. When enabled, the hybrid retrieval results are rescored with a lightweight cross-encoder before being returned to chat or ingestion flows. In practice this often means more relevant results, boosting answer quality and downstream enrichment.
- Enabling reranking downloads and caches ~1.1 GB of model data on first startup (cached under
<data_dir>/fastembed/rerankerby default). - Initialization takes longer while warming the cache, and each query consumes extra CPU. The default pool size (2) is tuned for a singe user setup, but could work with a pool size on 1 as well.
- The feature is disabled by default. Set
reranking_enabled: true(orRERANKING_ENABLED=true) if you’re comfortable with the additional footprint.
Example configuration:
reranking_enabled: true
reranking_pool_size: 2
fastembed_cache_dir: "/var/lib/minne/fastembed" # optional override, defaults to .fastembed_cache- Backend: Rust with Axum framework and Server-Side Rendering (SSR)
- Frontend: HTML with HTMX and minimal JavaScript for interactivity
- Database: SurrealDB (graph, document, and vector search)
- AI Integration: OpenAI-compatible API with structured outputs
- Web Processing: Headless Chrome for robust webpage content extraction
Minne can be configured using environment variables or a config.yaml file. Environment variables take precedence over config.yaml.
SURREALDB_ADDRESS: WebSocket address of your SurrealDB instance (e.g.,ws://127.0.0.1:8000)SURREALDB_USERNAME: Username for SurrealDB (e.g.,root_user)SURREALDB_PASSWORD: Password for SurrealDB (e.g.,root_password)SURREALDB_DATABASE: Database name in SurrealDB (e.g.,minne_db)SURREALDB_NAMESPACE: Namespace in SurrealDB (e.g.,minne_ns)OPENAI_API_KEY: Your API key for OpenAI compatible endpointHTTP_PORT: Port for the Minne server (Default:3000)
RUST_LOG: Controls logging level (e.g.,minne=info,tower_http=debug)DATA_DIR: Directory to store local data (e.g.,./data)OPENAI_BASE_URL: Base URL for custom AI providers (like Ollama)RERANKING_ENABLED/reranking_enabled: Set totrueto enable the FastEmbed reranking stage (defaultfalse)RERANKING_POOL_SIZE/reranking_pool_size: Maximum concurrent reranker workers (defaults to2)FASTEMBED_CACHE_DIR/fastembed_cache_dir: Directory for cached FastEmbed models (defaults to<data_dir>/fastembed/reranker)FASTEMBED_SHOW_DOWNLOAD_PROGRESS/fastembed_show_download_progress: Show model download progress when warming the cache (defaulttrue)
surrealdb_address: "ws://127.0.0.1:8000"
surrealdb_username: "root_user"
surrealdb_password: "root_password"
surrealdb_database: "minne_db"
surrealdb_namespace: "minne_ns"
openai_api_key: "sk-YourActualOpenAIKeyGoesHere"
data_dir: "./minne_app_data"
http_port: 3000
# rust_log: "info"# Clone and run
git clone https://github.com/perstarkse/minne.git
cd minne
docker compose up -dThe included docker-compose.yml handles SurrealDB and Chromium dependencies automatically.
nix run 'github:perstarkse/minne#main'This fetches Minne and all dependencies, including Chromium.
Download binaries for Windows, macOS, and Linux from the GitHub Releases.
Requirements: You'll need to provide SurrealDB and Chromium separately.
git clone https://github.com/perstarkse/minne.git
cd minne
cargo run --release --bin mainRequirements: SurrealDB and Chromium must be installed and accessible in your PATH.
Minne offers flexible deployment options:
main: Combined server and worker in one process (recommended for most users)server: Web interface and API onlyworker: Background processing only (for resource optimization)
Once Minne is running at http://localhost:3000:
- Web Interface: Full-featured experience for desktop and mobile
- iOS Shortcut: Use the Minne iOS Shortcut for quick content capture
- Content Types: Save notes, URLs, audio files, and more
- Knowledge Graph: Explore automatic connections between your content
- Chat Interface: Query your knowledge base conversationally
Minne uses OpenAI-compatible APIs. Configure via environment variables or config.yaml:
OPENAI_API_KEY(required): Your API keyOPENAI_BASE_URL(optional): Custom provider URL (e.g., Ollama:http://localhost:11434/v1)
- Access the
/adminpage in your Minne instance - Select models for content processing and chat from your configured provider
- Content Processing Requirements: The model must support structured outputs
- Embedding Dimensions: Update this setting when changing embedding models (e.g., 1536 for
text-embedding-3-small, 768 fornomic-embed-text)
Current development focus:
- TUI frontend with system editor integration
- Enhanced reranking for improved retrieval recall
- Additional content type support
Feature requests and contributions are welcome!
# Run tests
cargo test
# Development build
cargo build
# Comprehensive linting
cargo clippy --workspace --all-targets --all-featuresThe codebase includes extensive unit tests. Integration tests and additional contributions are welcome.
I've developed Minne primarily for my own use, but having been in the selfhosted space for a long time, and using the efforts by others, I thought I'd share with the community. Feature requests are welcome.
Minne is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for details.
