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

@oiyonet/brain-graph

v1.0.0

Published

Zero-dependency local-first Markdown & Obsidian graph engine, wikilink auditor, and orphan detector. Powered by OIYO Lab.

Readme

@oiyonet/brain-graph

npm version License: MIT Powered by OIYO

Zero-dependency local-first Markdown & Obsidian second brain graph auditor, wikilink validator, and orphan detector. 100% zero-dependency.

Developed by OIYO Lab to keep knowledge bases, Obsidian vaults, and AI-native second brains clean, topologically connected, and free from link rot.


🌟 Why Brain Graph?

As second brains (company-brain, personal Obsidian vaults, documentation sites) grow to hundreds or thousands of Markdown files:

  1. Broken Wikilinks ([[...]]): Renaming or moving notes causes silent link breaks, causing AI agents and humans to miss crucial context.
  2. Orphan Notes: Valuable insights become isolated nodes with zero incoming links, getting lost forever.
  3. Frontmatter Schema Drift: Required metadata (title, status, topics) disappears without automated CI linting.

@oiyonet/brain-graph parses and audits your entire vault in <50ms with zero npm dependencies.


📦 Installation

# Global CLI
npm install -g @oiyonet/brain-graph

# Or run instantly via npx
npx @oiyonet/brain-graph audit --vault ./my-vault

🚀 CLI Commands

1. Full Second Brain Audit

brain-graph audit --vault ./company-brain --required title,status

Output:

🧠 Second Brain Graph Audit: /workspace/company-brain

📊 Graph Metrics:
   • Total Notes: 482
   • Total Links: 1,842
   • Graph Density: 0.0079
   • Orphan Notes: 14
   • Broken Links: 3

❌ Broken Links (3):
   • [wikilink] projects/auth/plan.md:14 -> [[Legacy OAuth Spec]]

🏝️ Top Orphan Notes (0 incoming links) [Total: 14]:
   • archive/old-draft.md
   • scratch/unlinked-idea.md

2. Find Orphan Notes

brain-graph orphans --vault ./my-notes

3. Find Broken Links

brain-graph broken --vault ./my-notes

4. Discover Central Knowledge Hubs

brain-graph hubs --vault ./my-notes

5. Auto-Fix Renamed Wikilinks

Batch updates all references across every markdown file:

brain-graph fix-link --from "Old Note Title" --to "New Note Title" --vault ./my-notes
# ✅ Fixed link [[Old Note Title]] -> [[New Note Title]]: 12 occurrences updated across 5 file(s).

💻 Programmatic Node.js / TypeScript API

import { BrainGraph } from '@oiyonet/brain-graph';

const graph = new BrainGraph({
  vaultPath: './company-brain',
  requiredFrontmatterKeys: ['title', 'status'],
});

const audit = graph.scan();
console.log(`Found ${audit.brokenLinks.length} broken links!`);

🌐 Powered by OIYO Lab

@oiyonet/brain-graph is an open-source tool developed and maintained by OIYO Lab. Explore our companion developer tools at tools.oiyo.net and deep technical engineering articles on blog.oiyo.net.

License

MIT © OIYO Lab