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

fragrance-notes

v1.2.0

Published

A comprehensive collection of fragrance notes with high-quality images and metadata for perfume enthusiasts and developers.

Readme

🌸 Fragrance Notes Library

npm version License: MIT Semantic Release

A comprehensive, developer-friendly library containing 540+ fragrance notes with high-quality images and metadata. Perfect for perfume enthusiasts, developers building fragrance apps, or anyone interested in the olfactory world.


✨ Features

  • 540+ Fragrance Notes: A vast collection of scents from Absinthe to Ylang-Ylang.
  • High-Quality Images: Each note comes with a descriptive, high-resolution image.
  • Rich Metadata Included: Includes slugs, fragrance families, note types, aliases, tags, accords, and image URLs.
  • Compact Source Data: The package keeps a lean canonical note dataset and hydrates integration-ready metadata at runtime.
  • Easy Integration: Simple API to retrieve notes by name or as a complete list.
  • Lightweight: Optimized for performance with minimal dependencies.

🚀 Installation

Install the package via NPM:

npm install fragrance-notes

Or using Yarn:

yarn add fragrance-notes

📖 Usage

Get All Notes

Retrieve the entire library of fragrance notes with their metadata and public image URLs.

const { getAllNotes } = require('fragrance-notes');

const allNotes = getAllNotes();
console.log(allNotes[0]);
/*
{
  name: 'Absinth',
  slug: 'absinth',
  family: 'other',
  fragranceFamily: 'other',
  fragranceFamilies: ['other'],
  noteType: 'other',
  accords: ['Other'],
  tags: ['absinth', 'other', 'fragrance-note'],
  description: 'Absinth is a other fragrance note with characteristics that fit Other.',
  image: './images/absinth.jpg',
  imagePath: '/path/to/project/node_modules/fragrance-notes/assets/images/absinth.jpg',
  imageUrl: 'https://cdn.jsdelivr.net/gh/asifnawaz/[email protected]/assets/images/absinth.jpg'
}
*/

The source assets/notes.json stores only compact canonical note fields such as slug, name, image, family, families, and type. The library derives integration-friendly fields like fragranceFamily, accords, tags, description, imagePath, and imageUrl at runtime.

Find a Specific Note

Search for a note by its name (case-insensitive).

const { getNoteByName } = require('fragrance-notes');

const tonkaBean = getNoteByName('Tonka Bean');
if (tonkaBean) {
  console.log(`Found: ${tonkaBean.name}`);
  console.log(`Family: ${tonkaBean.fragranceFamily}`);
  console.log(`Image URL: ${tonkaBean.imageUrl}`);
}

Filter Notes by Family

const { getAllFamilies, getNotesByFamily } = require('fragrance-notes');

const families = getAllFamilies();
const floralNotes = getNotesByFamily('floral');

console.log(families);
console.log(floralNotes[0]);

Find a Note by Slug

const { getNoteBySlug } = require('fragrance-notes');

const note = getNoteBySlug('african-neroli');
console.log(note?.aliases);

Next.js Example

Use the returned imageUrl with next/image instead of loading files from node_modules directly.

import Image from 'next/image';
import { getNoteByName } from 'fragrance-notes';

const note = getNoteByName('Tonka Bean');

export default function NoteCard() {
  return (
    <Image
      src={note.imageUrl}
      alt={note.name}
      width={400}
      height={400}
    />
  );
}

Add cdn.jsdelivr.net to your Next.js image remote patterns configuration.


📂 Project Structure

fragrance-notes/
├── assets/
│   ├── images/       # 540+ JPG images of fragrance notes
│   └── notes.json    # Metadata for all notes
├── src/
│   └── index.js      # Main library entry point
├── .github/
│   └── workflows/    # Automated release workflows
└── README.md         # Documentation

🛠️ Development & Contributing

This project uses Semantic Release for automated versioning and package publishing.

Commit Message Format

To trigger a release, please follow the Conventional Commits specification:

  • fix: ... triggers a patch release (e.g., 1.0.1)
  • feat: ... triggers a minor release (e.g., 1.1.0)
  • perf: ... triggers a patch release
  • BREAKING CHANGE: ... triggers a major release (e.g., 2.0.0)

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.


🤝 Support

If you find this library useful, please consider giving it a ⭐ on GitHub!