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

mindgrove

v0.1.0

Published

🌿 Analyze, classify, and auto-link any markdown vault. Role detection, sophistication scoring, and bidirectional similarity linking for knowledge bases at scale.

Readme

🌿 mindgrove

Analyze, classify, and auto-link any markdown vault. Role detection, sophistication scoring, and bidirectional similarity linking β€” for knowledge bases at scale.

npm version license


Why this exists

When your markdown vault hits 500+ files, it becomes a graveyard. Notes pile up with no metadata, no connections, no way to know what's related to what.

mindgrove crawls your vault, analyzes every file, and does three things automatically:

  1. Tags β€” injects rich YAML frontmatter: role, domain, sophistication score, capabilities, techniques
  2. Scores β€” rates each note's complexity from standard β†’ elite using a weighted scoring engine
  3. Links β€” builds a similarity matrix across all files and writes bidirectional [[wikilinks]] between related notes

Built from a real workflow used to manage 1,300+ AI system prompts in Obsidian. Extracted into a universal library with zero vault-specific assumptions.


Works everywhere markdown lives

| Environment | YAML Frontmatter | Wikilinks | Visual Graph | |---|---|---|---| | Obsidian | βœ… | βœ… | βœ… Graph View | | Foam (VS Code) | βœ… | βœ… | βœ… Foam Graph | | Logseq | βœ… | βœ… | βœ… Graph View | | Dendron | βœ… | βœ… | βœ… Tree View | | Plain markdown folder | βœ… | βœ… | β€” (data is there, use any renderer) |

No matter where your notes live β€” mindgrove enriches them. The [[wikilinks]] it writes are understood by every major PKM tool, so your graph appears automatically next time you open the vault.


Install

npm install -g mindgrove

Or as a library in your project:

npm install mindgrove

CLI Usage

# Analyze any markdown folder
mindgrove analyze ./my-vault

# Works directly on your Obsidian vault
mindgrove analyze /path/to/obsidian-vault

# With custom options
mindgrove analyze ./my-vault --threshold 20 --max-connections 8

# Dry run β€” analyze only, no file writes
mindgrove analyze ./my-vault --dry-run

# Skip linking (just tag files, no wikilinks)
mindgrove analyze ./my-vault --no-linking

What gets written to your files

Each markdown file gets a YAML frontmatter block injected (or updated):

---
type: note
analyzed: 2026-04-18 21:00
role: prompt-engineer
domain: ai-ml
sophistication: advanced
size-category: large
char-count: 4821
token-estimate: 1206
capabilities:
  - reasoning
  - code-generation
  - optimization
techniques:
  - chain-of-thought
  - role-playing
  - constraints
tools:
  - web-search
  - code-execution
Connected Notes:
  - "[[RAG Specialist Agent]] (score: 22 | chain-of-thought, ai-ml)"
  - "[[Meta Orchestrator]] (score: 18 | role-playing)"
status: active
---

Open your vault in Obsidian after running mindgrove β€” every connected note pair appears as an edge in Graph View automatically.


Library Usage

import { analyzeVault } from 'mindgrove';

const result = await analyzeVault('./my-vault', {
  similarityThreshold: 15,
  maxConnectionsPerFile: 12,
  enableLinking: true,

  // Extend with your own patterns
  customRoles: {
    'finance-agent': /trading|portfolio|equity/i,
  },
  customDomains: {
    'fintech': /\bfinance\b|\btrading\b|\bstocks\b/i,
  },
});

console.log(`Processed: ${result.processed} files`);
console.log(`Connections: ${result.connections} links written`);

Configuration

| Option | Default | Description | |---|---|---| | similarityThreshold | 15 | Min score to create a link | | maxConnectionsPerFile | 12 | Cap links per file | | enableLinking | true | Run Phase 2 similarity linking | | excludeFolders | ['.obsidian', 'Templates', ...] | Folders to skip | | domainDetection | 'content' | 'content' or 'path' | | customRoles | {} | Add your own role patterns | | customDomains | {} | Add your own domain patterns | | customCapabilities | {} | Add your own capability patterns | | customTechniques | {} | Add your own technique patterns | | dryRun | false | Analyze without writing files | | reportFormat | 'markdown' | 'text', 'json', or 'markdown' |


Sophistication scoring

mindgrove scores every note from standard β†’ elite based on a weighted formula:

score = (techniques Γ— 2) + (constraints Γ— 1.5) + (capabilities Γ— 1) + (tools Γ— 1)

| Score | Label | |---|---| | 25+ | elite | | 18–24 | advanced | | 12–17 | sophisticated | | 6–11 | intermediate | | 0–5 | standard |

Filter by sophistication: elite in Obsidian's search to instantly surface your best notes.


Real-world example

This library was extracted from a personal Obsidian vault containing 1,300+ AI system prompts. Running mindgrove analyze on that vault:

  • Tagged all 1,300 files with role/domain/sophistication in ~4 minutes
  • Found 847 high-quality similarity connections above threshold 15
  • Wrote bidirectional [[wikilinks]] into every connected pair
  • Enabled Obsidian Graph View filtering by sophistication: elite to instantly surface the best prompts

Project structure

mindgrove/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ index.js            ← public API exports
β”‚   β”œβ”€β”€ config.js           ← fully overridable DEFAULT_CONFIG
β”‚   β”œβ”€β”€ analyzer.js         ← Phase 1 (tag) + Phase 2 (link) orchestrator
β”‚   β”œβ”€β”€ similarity.js       ← weighted scoring matrix engine
β”‚   β”œβ”€β”€ linker.js           ← bidirectional wikilink writer
β”‚   β”œβ”€β”€ frontmatter.js      ← YAML generator (preserves existing user fields)
β”‚   └── detectors/
β”‚       β”œβ”€β”€ role.js           ← 3-tier role detection
β”‚       β”œβ”€β”€ capabilities.js   ← 14 capability patterns
β”‚       β”œβ”€β”€ techniques.js     ← 12 prompt-engineering technique patterns
β”‚       β”œβ”€β”€ tools.js          ← 10 tool patterns
β”‚       β”œβ”€β”€ domain.js         ← content-based domain detection
β”‚       └── sophistication.js ← weighted scorer
β”œβ”€β”€ cli/index.js            ← mindgrove analyze <path>
β”œβ”€β”€ sample-vault/           ← 6 ready-to-run sample markdown files
β”œβ”€β”€ examples/
β”‚   └── ai-prompt-vault.js  ← real-world 1300-file use case
└── obsidian/               ← original Obsidian Templater script (inspiration)

License

MIT Β© Kevork @ Nexacrawl