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

@nbaglivo/ctx

v0.1.2

Published

Build curated markdown context files from tagged notes

Readme

ctx

Build curated markdown context files from tagged notes. Scans a directory of markdown files with YAML frontmatter, filters by tags, and produces a single merged context file — ideal for feeding to AI assistants.

Install

npm install -g @nbaglivo/ctx

Or run directly:

npx @nbaglivo/ctx --tags job-hunting

Usage

ctx --context <name>        Resolve tags from a named context in context.json
ctx --tags <a,b,c>          Comma-separated tags to match
ctx --list                  Show all tags found across files
ctx --list-contexts         Show named contexts from context.json
ctx --dir <path>            Notes directory to scan (default: cwd)
ctx --output <path>         Output file (default: .claude-context.md)

Flags can be combined:

ctx --context job-hunting --tags AI

When neither --context nor --tags is given, only files tagged global are included.

context.json

Place a context.json in your notes root to define named contexts:

{
  "contexts": {
    "job-hunting": {
      "tags": ["job-hunting", "projects", "search-profile"]
    },
    "writing": {
      "tags": ["writing-style", "philosophy"]
    }
  }
}

Each context maps a name to a set of tags. The format is extensible — future fields like description, output, or excludeTags can be added per context.

Frontmatter format

Your markdown files should have YAML frontmatter with a tags field:

---
tags: [job-hunting, projects]
title: Selected Contributions
---

Your content here...

Tags can be a YAML array ([a, b]) or a single string (tags: global).

Development

npm install
npm run build        # build with tsup
npm run typecheck    # type-check with tsc
npm run dev          # watch mode

Release

Push a version tag to trigger the release workflow:

npm version patch
git push --follow-tags

This runs CI checks and publishes to npm via GitHub Actions (requires NPM_TOKEN secret).