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

smart-connections-cli

v0.1.1

Published

CLI to query Smart Connections embeddings from an Obsidian vault

Readme

smart-connections-cli

Give your coding agent semantic search over your Obsidian vault, powered embeddings created by the Smart Connections plugin.

Coding agents like Claude Code, Codex, and others can only discover related notes through manually-created links. This CLI lets them query the embedding vectors that Smart Connections has already computed for every note in your vault — finding semantically related notes from the command line, no Obsidian required.

Zero runtime dependencies. No model inference at query time.

Install

1. Install the CLI

npm install -g smart-connections-cli

2. Install the Agent Skill

The included Agent Skill teaches your coding agent when and how to use the CLI. Install it with npx skills:

npx skills add SamBoyd/smart-connections-cli

This works with any skills-compatible agent (Claude Code, Codex, Cursor, and many more).

Prerequisites

An Obsidian vault with the Smart Connections plugin installed and indexed. The plugin must have run at least once to generate the .smart-env/ directory containing embedding data.

Usage

smart-connections search <file-path> [options]

Arguments

| Argument | Description | |----------|-------------| | file-path | Path to a note relative to the vault root (e.g. Projects/note.md) |

Options

| Option | Default | Description | |--------|---------|-------------| | --vault <path> | current directory | Path to the Obsidian vault | | --limit <n> | 20 | Number of results to return | | --json | off | Output as a JSON array |

Examples

# Find the 10 most related notes
smart-connections search "Projects/my-note.md" --vault ~/Obsidian/MyVault --limit 10

# Output as JSON for piping into other tools
smart-connections search "Projects/my-note.md" --vault ~/Obsidian/MyVault --json

# Use from within the vault directory
cd ~/Obsidian/MyVault
smart-connections search "Projects/my-note.md"

Output

Default (human-readable):

0.8339  20-Projects/experiments/git-retro.md
0.8183  40-Resources/notes/Experiment viability filter.md
0.8178  10-DailyNotes/2026/02/27.md

JSON (--json):

[{"score":0.8339,"path":"20-Projects/experiments/git-retro.md"},{"score":0.8183,"path":"40-Resources/notes/Experiment viability filter.md"}]

License

MIT