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

scent-cli

v1.2.2

Published

CLI tool to look up fragrance profiles from Fragrantica

Readme


scent brings the world of fragrances to your terminal. Search any perfume by name and get instant access to its main accords, fragrance pyramid, ratings, and more — all beautifully formatted with color.

✨ Features

  • 🔍 Fuzzy Search — Smart auto-selection for strong matches, interactive picker when unsure
  • 📊 Main Accords — Color-coded intensity bars for every accord
  • 🧪 Fragrance Pyramid — Top, middle, and base notes in a clear visual hierarchy
  • ⭐ Ratings & Votes — Star ratings, vote counts, and gender classification
  • 🔗 Similar Perfumes — Shows "People who like this also like" and "This perfume reminds me of" recommendations
  • 📝 Descriptions — Clean, concise descriptions (auto-skipped ads and disclaimers)
  • ⏳ Caching — Results cached for 24 hours so you never wait twice
  • 🎨 Beautiful Output — Colorful terminal output with chalk

📦 Install

npm install -g scent-cli

Or run directly without installing:

npx scent-cli "Creed Aventus"

🚀 Usage

scent-cli <name> [options]

| Option | Description | |--------|-------------| | -V, --version | Show version number | | -p, --pick | Always show the picker instead of auto-selecting | | -h, --help | Display help |

Examples

# Auto-select the best match
scent-cli "Creed Aventus"

# Force the interactive picker
scent-cli "Bleu de Chanel" --pick

# Quick lookup
scent-cli "Sauvage"

🎯 How It Works

  1. Search — Opens Fragrantica in a headless browser and scrapes results
  2. Select — Picks the best match automatically, or lets you choose from a list
  3. Scrape & Stream — Pulls profile data progressively — accords, notes, and description appear instantly, then similar perfumes load as the page scrolls
  4. Display — Shows everything with beautiful colored terminal output

🧰 Tech Stack

| Package | Role | |---------|------| | Commander | CLI argument parsing | | Playwright | Headless browser for scraping | | Chalk | Terminal colors | | Fuse.js | Fuzzy string matching | | Ora | Loading spinners | | Cheerio | HTML parsing | | TypeScript | Type safety |

📁 Project Structure

src/
├── index.ts      # CLI entry point & orchestration
├── types.ts      # TypeScript interfaces
├── search.ts     # Search & caching logic
├── scraper.ts    # Perfume page scraping
└── display.ts    # Terminal output formatting

📄 License

MIT © Hasin Hayder