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

@butttons/obi

v0.0.3

Published

Read-only CLI for Obsidian vaults. Structured data for LLM consumption.

Readme

obi

Read-only CLI that surfaces structured data from Obsidian vaults for LLM consumption. Default output is TOON, with --json fallback.

System Requirements

  • Binary users: No dependencies -- standalone executable
  • Package manager: Bun runtime required
  • Supported OS: macOS, Linux, Windows

Installation

Option 1: Package Manager

Requires Bun runtime.

bun add -g @butttons/obi

Option 2: Pre-built Binary

Download the latest binary for your platform from the releases page:

# macOS (ARM64)
curl -L https://github.com/butttons/obi/releases/latest/download/obi-darwin-arm64 -o obi
chmod +x obi
sudo mv obi /usr/local/bin/

# macOS (Intel)
curl -L https://github.com/butttons/obi/releases/latest/download/obi-darwin-x64 -o obi
chmod +x obi
sudo mv obi /usr/local/bin/

# Linux
curl -L https://github.com/butttons/obi/releases/latest/download/obi-linux-x64 -o obi
chmod +x obi
sudo mv obi /usr/local/bin/

# Windows
# Download obi-windows-x64.exe from the releases page and add to PATH

Option 3: Build from Source

git clone https://github.com/butttons/obi.git
cd obi
bun install
bun run build
sudo mv dist/obi /usr/local/bin/

Updating

Package Manager

bun add -g @butttons/obi@latest

Binary

Re-run the curl command from Option 2 to download the latest release.

Usage

# List available vaults
obi vaults

# Vault structure
obi map --vault Work

# Read a note
obi read "Projects/my-project.md"

# Search vault content
obi search "deployment"

# Filter by frontmatter
obi query --type worker --tag billing

Commands

Orientation

| Command | Description | |---|---| | obi vaults | List all available vaults with paths and note counts | | obi map | Vault structure: folders and files with frontmatter metadata | | obi context | Current workspace state: active file, recent files, search, tabs | | obi schema | Property types, types in use, tags in use |

Navigation

| Command | Description | |---|---| | obi read <path> | Frontmatter, body, outgoing and incoming links | | obi read <path> -s "Heading" | Extract only the section under a heading | | obi toc <path> | Heading tree for a note | | obi links <path> | Outgoing links, incoming links, 2-hop connections | | obi list [folder] | Folder contents with title, type, tags |

Query

| Command | Description | |---|---| | obi query --type <value> | Filter notes by frontmatter fields | | obi query --tag <value> | Filter by tag | | obi query -f key=value | Generic frontmatter filter (repeatable) | | obi search <term> | Content search with file, line, and context | | obi recent [--limit N] | Notes sorted by updated_at | | obi unread | Notes where read: false in frontmatter |

Global Flags

| Flag | Description | |---|---| | --json | Output JSON instead of TOON | | --vault <name> | Target vault by name |

Vault Resolution

  1. OBI_VAULTS_PATH env var pointing to the vaults parent directory
  2. Falls back to ~/Library/Mobile Documents/iCloud~md~obsidian/Documents
  3. If neither exists, errors with setup instructions

When --vault is omitted:

  1. If cwd is inside a vault, uses that vault
  2. Otherwise uses default_vault from global config
  3. Otherwise errors listing available vaults

Config

Global

~/.config/obi/config.json

{
  "default_vault": "Work",
  "vaults": {
    "Work": { "ignore": ["templates/"] }
  }
}

Per-Vault

<vault>/.obsidian/obi.json

{
  "ignore": ["templates/"]
}

Per-vault config wins over global when both exist.

Build

# npm distribution
bun run build:npm

# compiled binary
bun run build

# all platforms
bun run build:all

License

MIT