npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mycelium-mind

v0.2.4

Published

Mycelium Mind is a fully offline, schema-driven, multi-vault compiler pipeline and wiki engine built on top of **Obsidian** and **MkDocs**, powered by local LLMs via an OpenAI-compatible API.

Downloads

1,190

Readme

Mycelium Mind 🧠

Mycelium Mind is a fully offline, schema-driven, multi-vault compiler pipeline and wiki engine built on top of Obsidian and MkDocs, powered by local LLMs via an OpenAI-compatible API.

It is designed to ingest raw documents, synthesize them into structured metadata-rich cards (conforming to the Open Knowledge Format (OKF) standard), dynamically construct interactive relationships between concepts, and compile them into static, publishable documentation sites.


🎨 Design & Core Principles

  1. Local & Offline First: Designed to run entirely on your local machine using local LLMs (e.g. via oMLX, llama.cpp, Ollama, or LM Studio) through standard OpenAI-compatible API endpoints.
  2. Strict Schema Validation & Auto-Injection: Vault entities are governed by markdown-defined schema specifications. Common system metadata such as timestamp and tags are automatically injected into the schema definitions and processed frontmatter at compile-time to reduce LLM prompt size and guarantee schema consistency.
  3. Isolated LLM Invocations: To prevent context window overflow, each raw inbox document is processed individually. Entity syntheses are batched and compiled incrementally to scale to large vaults.
  4. Git-Backed Version Control: The compiler performs local git commits and tags directly inside the directory of each target wiki, ensuring clean revision history local to the vault itself.
  5. Decoupled Architecture: Each CLI command operates independently. Folder structures are dynamically inspected, allowing you to easily add new schemas, collections, or custom overview scripts.

🛠️ Quick Start Guide

1. Prerequisites & Installation

Clone the repository and install the dependencies:

# Clone the repository
git clone https://github.com/pkcpkc/mycelium-mind.git
cd mycelium-mind

# Install Node & Python runtimes via mise
mise install

# Install project dependencies (automatically installs Node and Python environment/requirements)
npm install

# Manually trigger Python setup if needed (re-creates .venv and installs requirements.txt)
npm run setup

2. Configure Your Local Model Endpoint

Create a .env file in the root of the repository:

# Base model settings
BASE_MODEL_API_URL="http://localhost:8000/v1"
BASE_MODEL_API_KEY="your-api-key"
BASE_MODEL_NAME="your-local-llm-model-name" # Used for general text synthesis & compilation (defaults to 'agentic')

# Specific model configurations (fall back to BASE configs if not defined)
OCR_MODEL_NAME="ocr"                           # Used for OCR on images & PDFs (defaults to BASE_MODEL_NAME)
# OCR_MODEL_API_URL="http://localhost:8000/v1"
# OCR_MODEL_API_KEY="your-api-key"

IMAGE_MODEL_NAME="agentic"                     # Reserved for image-specific tasks (defaults to BASE_MODEL_NAME)
# IMAGE_MODEL_API_URL="http://localhost:8000/v1"
# IMAGE_MODEL_API_KEY="your-api-key"

3. Initialize a Wiki Vault

Initialize a new vault structure in your chosen directory:

# Using global alias 'mm'
mm init ./my-first-wiki

[!NOTE] This command populates folder structures, base prompts, default collection schemas (concepts, persons, times), and initializes a local git repository inside the vault folder.

4. Sync the Inbox

Drop some raw text files or articles into ./my-first-wiki/inbox/, then trigger the compiler sync:

mm sync ./my-first-wiki

This runs the main ingestion pipeline:

  1. Summarizes inbox documents into wiki/summaries/.
  2. Archives raw sources into dated directories inside wiki/assets/.
  3. Batches and synthesizes entity cards inside wiki/collections/.
  4. Runs sandboxed overview scripts to compile timelines and graphs.
  5. Dynamically builds index tables and relationship clouds.
  6. Commits the changes local to the vault's git repository.

🔌 Semantic Search & AI Integration (MCP / RAG)

Mycelium Mind features a built-in Model Context Protocol (MCP) server that exposes your offline wiki as an active semantic vector database. This allows AI assistants in clients like OpenCode, Cursor, or Claude Desktop to search and reference your wiki directly.

To start the RAG server:

# Start SSE server (default, on port 8179)
mm rag ./my-first-wiki

# Start stdio server (for IDE-spawned integrations)
mm rag ./my-first-wiki --transport stdio

See MCP & RAG Search Server Documentation for full IDE integration guides and JSON configurations.

💡 Best Practices

For the most efficient and robust workflow, follow these best practices when managing your wiki vault:

  1. Schema & Plugin Setup: Setup or copy your plugins from the built-in library (using mm collection [name] or mm overview [name]) or create your own custom schemas under plugins/collections/.
  2. Inbox Ingestion & Sync: Drop raw documents into the inbox/ directory and run mm sync. It is highly recommended to use the --pr flag (e.g., mm sync ./my-wiki --pr) to compile changes on a separate git branch and automatically create a pull request.
  3. Browsing & Publishing: Compile your static wiki site using mm publish to deploy anywhere (e.g., GitHub Pages), or use Obsidian locally to browse your interactive graph and markdown pages.
  4. Manual Edits & Overrides: If you edit your markdown pages manually or via Obsidian, run mm overrides (e.g., mm overrides ./my-wiki or mm overrides ./my-wiki --pr to automatically branch and create a PR). This updates the frontmatter and concerned collection entities according to your changes, and preserves them to be correctly replayed during any future mm resync.

📚 Documentation & Guides

For in-depth guides, layout maps, scripting specifications, and references, see the detailed documentation folders: