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

nia-vault

v0.1.0

Published

CLI app for querying local notes via Nia semantic search

Downloads

516

Readme

nia-vault

A CLI application for querying your local notes and files using AI-powered semantic search via Nia.

Features

  • Semantic Search: Query your notes using natural language
  • Multiple Folders: Search across multiple synced folders
  • Seamless Integration: Automatically uses credentials from nia-sync
  • Flexible Sync: Sync folders on-demand or before searches

Prerequisites

  • Node.js >= 18.0.0 or Bun
  • nia-sync >= 2.0.0 installed and configured
# Install nia-sync
pip install nia-sync

# Authenticate with Nia
nia login

# Add folders to sync
nia add ~/Documents/notes
nia start

Installation

# With Bun (recommended)
bun install -g nia-vault

# With npm
npm install -g nia-vault

# With pnpm
pnpm install -g nia-vault

After installation, the vault command is available globally.

Quick Start

# Initialize nia-vault (select which folders to search)
vault init

# Ask a question
vault ask "Summerize meeting notes from last week"
vault ask "What are my notes about project planning?"

# Find files and open in your editor
vault find "meeting notes from last week"

Commands

vault init

Interactive setup wizard that detects your nia-sync configuration and lets you select which folders to include in searches.

vault ask "<question>"

Query your notes using semantic search.

Options:

| Flag | Description | | ------------------- | ---------------------------------------------------------- | | -f, --folder <id> | Search specific folder only | | -s, --sync | Sync folders before searching | | -p, --plain | Disable terminal markdown rendering (outputs raw markdown) | | --no-stream | Disable streaming (wait for full response) |

vault find "<query>"

Search for files matching your query and open the selected file in your editor.

vault find "meeting notes from last week"

This command:

  1. Searches your indexed folders for files matching the query
  2. Displays an interactive file picker
  3. Opens the selected file in your default editor ($VISUAL or $EDITOR, falling back to vi)

vault sync

Manually trigger a sync of all folders.

vault folders

List, add, or remove folders from search scope.

vault config

View or reset configuration.

Configuration

nia-sync Configuration (read-only)

nia-vault reads the API key from ~/.nia-sync/config.json. This file is managed by nia-sync.

nia-vault Configuration

Location: ~/.config/nia-vault/config.json

{
  "selectedFolders": ["folder-id-1", "folder-id-2"]
}

This file only stores which folders are included in searches. The API key is always read from nia-sync.

Troubleshooting

| Error | Solution | | ------------------------- | -------------------------------------------------- | | nia-sync not configured | Run nia login to authenticate | | No configuration found | Run vault init to set up | | Invalid API key | Run nia login to re-authenticate | | No synced folders found | Run nia add ~/path to add folders | | No folders selected | Run vault folders to select folders | | Editor not found | Set $EDITOR or $VISUAL environment variable | | No matching files found | Try a different query or ensure folders are synced |

Contributing

Adding a Changeset

When making changes that should be included in a release, please add a changeset:

bun changeset

This will prompt you to describe your changes. Choose the appropriate version bump:

  • patch (0.0.x): Bug fixes, small improvements, documentation updates
  • minor (0.x.0): New features, non-breaking changes
  • major (x.0.0): Breaking changes

The changeset file should be committed with your PR.

Development Workflow

# Clone the repository
git clone https://github.com/chenxin-yan/nia-vault.git
cd nia-vault

# Install dependencies
bun install

# Run in development mode
bun run dev

# Build the project
bun run build

License

MIT