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

@fayz-ai/inventory

v0.4.6

Published

Fayz SDK inventory context — the stock ledger domain, its repository port and adapters, and the store

Readme

@fayz-ai/inventory

The inventory bounded context: what a product, a stock movement, a count and a recipe are, the rules about them, and where they are stored.

Status: beta — extracted from @fayz-ai/plugin-inventory, which composes it and still re-exports every name it had. Pre-1.0: minor APIs may change before 1.0.

Shaped like every context in the SDK (docs/platform/PATTERNS.md). There is no entry file: each module is imported by its path. The screens stay in @fayz-ai/plugin-inventory.

Install

npm install @fayz-ai/inventory

Modules

| Import | What it holds | |---|---| | @fayz-ai/inventory/domain/product | Product, its classification and fichas, derivedProductType, marginPercent, stockValue | | @fayz-ai/inventory/domain/movement | StockMovement, the one movement vocabulary (MOVEMENT_TYPES, normalizeMovementType) and what a movement does to the ledger and the shelf | | @fayz-ai/inventory/domain/stock | StockPosition, StockLocation, stockHealth, isLowStock, the summary, the restock queue and the panel rows | | @fayz-ai/inventory/domain/count | StockCountSession, StockCountItem and the variance arithmetic (lineVariance, summarizeCount) | | @fayz-ai/inventory/domain/recipe | Recipe, RecipeIngredient, recipe cost and CMV, explodeRecipe | | @fayz-ai/inventory/domain/consumption | the cross-context boundary a sale uses to consume a recipe exactly once | | @fayz-ai/inventory/domain/usage-audit | UsageAuditEntry and the correction and approval inputs | | @fayz-ai/inventory/domain/reference-data | the default measurement units and stock location a tenant starts with | | @fayz-ai/inventory/data/provider | InventoryDataProvider, the repository port | | @fayz-ai/inventory/data/supabase | createSupabaseInventoryProvider — writes the ledger only through its RPCs | | @fayz-ai/inventory/data/mock | createMockInventoryProvider, the same contract in memory | | @fayz-ai/inventory/data/tables | the physical table names, for registries that edit them directly | | @fayz-ai/inventory/store | createInventoryStore, createInventoryDataProvider |

import { isLowStock } from '@fayz-ai/inventory/domain/stock'
import { normalizeMovementType } from '@fayz-ai/inventory/domain/movement'

normalizeMovementType('saída') // 'exit'
isLowStock(2, 5)              // true

Words used here are defined in GLOSSARY.md.