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

@openeos/pos-icons

v0.1.1

Published

Konsistente, KI-generierte Food & Drink Icons für Kassensysteme

Readme

@openeos/pos-icons

Consistent, AI-generated food & drink icons for point-of-sale systems.

Features

  • Flat/minimal design, white background
  • 256x256px PNG icons
  • React component <PosIcon />
  • Search function by name, aliases, and category
  • TypeScript types

Installation

pnpm add @openeos/pos-icons

Usage

React Component

import { PosIcon } from '@openeos/pos-icons';

<PosIcon id="pommes" size={64} />
<PosIcon id="bier" size={128} className="rounded" />

Search Function

import { searchIcons, getIcon, getAllIcons } from '@openeos/pos-icons';

// Search by keyword
const results = searchIcons('pom');
// → [{ id: 'pommes', terms: [...], icon256: 'pommes.png' }]

// Get single icon by ID
const icon = getIcon('bier');

// Get all icons
const all = getAllIcons();

Without React (plain JS/HTML)

import { searchIcons, getIcon } from '@openeos/pos-icons';

// Get icon entry
const icon = getIcon('pommes');

// Path to PNG in node_modules
const iconPath = `node_modules/@openeos/pos-icons/icons/256/${icon.icon256}`;

// Example: create <img> dynamically
const img = document.createElement('img');
img.src = iconPath;
img.width = 64;
img.height = 64;
img.alt = 'Pommes';
document.body.appendChild(img);

Or directly in HTML:

<img src="node_modules/@openeos/pos-icons/icons/256/pommes.png" width="64" height="64" alt="Pommes" />

Directly from GitHub (without NPM)

Icons can also be used directly via GitHub raw URL without installation:

<img src="https://raw.githubusercontent.com/OpenEOS-Project/pos-icon-database/main/icons/256/pommes.png" width="64" height="64" alt="Pommes" />

Base URL: https://raw.githubusercontent.com/OpenEOS-Project/pos-icon-database/main/icons/256/{id}.png

Available Icons

5 products (5/5 icons generated)

Food

| Icon | Name | ID | Aliases | |:----:|------|-----|---------| | | Pommes | pommes | pommes frites, french fries, fries, fritten | | | Currywurst | currywurst | curry wurst, curry sausage | | | Hamburger | hamburger | burger, cheeseburger |

Drinks

| Icon | Name | ID | Aliases | |:----:|------|-----|---------| | | Wasser | wasser | water, mineralwasser, sprudel | | | Apfelschorle | apfelschorle | apple spritzer, apfelsaft gespritzt |

Generating Icons

Icons are generated using the OpenAI API (gpt-image-1).

Setup

cp .env.example .env
# Add your OPENAI_API_KEY to .env
pnpm install

Generate all missing icons

pnpm run generate

Generate a single icon

node scripts/generate-icons.mjs --product pommes

Force regenerate (overwrite)

node scripts/generate-icons.mjs --product pommes --force

Rebuild search index

pnpm run build-index

Update README icon table

The icon table in this README is auto-generated from data/products.json:

pnpm run build-readme

Project Structure

icons/
  1024/          # Master icons (1024x1024, AI-generated)
  256/           # POS icons (256x256, resized)
data/
  products.json  # Product database
  index.json     # Search index (auto-generated)
prompts/
  master-prompt.txt  # AI style prompt
scripts/
  generate-icons.mjs  # OpenAI icon generator
  build-index.mjs     # Search index builder
  build-readme.mjs    # README table generator
src/
  index.ts       # Main exports
  search.ts      # Search function
  PosIcon.tsx    # React component
  types.ts       # TypeScript types

Publishing to NPM

Initial Setup

  1. NPM Login:

    npm login
  2. Create organization (once):

    Since the package is scoped under @openeos/, an NPM organization openeos is required. Create one at https://www.npmjs.com/org/create.

First Publish

pnpm run generate            # Generate icons (OpenAI API)
pnpm run build-index         # Build search index
pnpm run build-readme        # Update README
pnpm publish --access public

--access public is required for scoped packages, otherwise NPM will attempt to create a paid private package. prepublishOnly automatically runs build-index + build, but icons must be generated beforehand.

Publishing Updates

npm version patch   # 0.1.0 → 0.1.1 (or: minor / major)
pnpm publish --access public

License

CC0-1.0 – Public Domain