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

contextify-cli

v1.0.0

Published

A simple tool to help you create detailed context files in your repository's directory structure.

Readme

Contextify

Contextify is a CLI tool designed to facilitate Context-Driven Development by automatically generating and maintaining CONTEXT.md files throughout your codebase. It uses Google Gemini to analyze your code and create hierarchical documentation, making it easier for AI agents and human developers to understand the project structure.

Features

  • Bottom-Up Generation: Starts from the deepest subdirectories and bubbles up context to the root, ensuring high-level documentation reflects low-level details.
  • Automatic Updates: Smartly updates existing CONTEXT.md files, preserving manual developer notes while refreshing technical details.
  • Respects Ignore Files: Honors .gitignore and supports a custom .contextignore to exclude specific files or folders from analysis.
  • Large File Handling: Automatically truncates files larger than 200KB to fit within the context window, keeping the most relevant parts (head and tail).
  • Gemini Powered: Uses Google's Gemini models for high-quality summarization.

Installation

npm install -g contextify
# OR run directly with npx
npx contextify run

Usage

1. Initialization

First, you need to set your Google Gemini API Key. You can do this via the CLI or by setting an environment variable.

contextify init

Follow the prompts to enter your API Key.

Alternatively, set GEMINI_API_KEY in your environment or a .env file.

2. Run Contextify

Navigate to the root of your project and run:

contextify run

This will:

  1. Traverse your directory tree (bottom-up).
  2. Read file contents (respecting ignores).
  3. Read existing CONTEXT.md files from subdirectories.
  4. Generate or Update the CONTEXT.md for the current directory using Gemini.

Configuration

  • .gitignore: Files listed here are ignored.
  • .contextignore: Add this file to your project root to ignore specific files/folders only for Contextify (e.g., if you want to ignore documentation files but keep them in git).

requirements

  • Node.js >= 18
  • Google Gemini API Key