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/pos

v0.20.1

Published

Fayz SDK POS layer — the operator surface: one page, touch and keyboard, parameterised per vertical

Readme

@fayz-ai/pos

The operator surface: one page, touch and keyboard at the same time.

npm license

Status: alpha — under active development, APIs will change.

@fayz-ai/admin is the shell for the back office. @fayz-ai/pos is the shell for the shift: the screen a waiter uses at the Saturday rush and a cashier uses with the muscle memory of ten years on a Bematech terminal. Same contract, opposite principles — no rail, no breadcrumb, no deep navigation, no table density. Everything the operator needs is on one page, because leaving that page mid-service is the failure this package exists to prevent.

It is not a restaurant package. A restaurant has tables and tabs that stay open for three hours; a bookstore has a counter and a sale that is born and dies at the register. Both are the same screen with a different PosAppConfig — the screen never reads "mesa", it reads what the config called the thing.

What's inside

  • App configPosAppConfig: the position surface (floor / list / none), the sale cycle (open_tab / immediate), vocabulary, action bar, payment methods
  • The one pagePosScreen: position map, live ticket, catalogue, fixed action bar, open-tickets dock
  • Ticket engineticketReducer, totalsOf: adding an item is an append, so two waiters ringing the same table sum instead of overwriting each other
  • MoneyformatCents, splitEvenly, serviceChargeCents: cents only, and a split that never loses nor invents a centavo
  • Keyboard runtimecreateKeymap: bindings declared once, dispatched by the runtime and drawn on the button by the UI
  • Theme@fayz-ai/pos/theme: touch size as a token (≥19mm floor), pastel as category identity, position status on its own accent+icon+word axis

Install

npm install @fayz-ai/pos

Peer deps: react (^18/^19), lucide-react, zustand. Pulls in @fayz-ai/core.

Usage

import { PosScreen } from '@fayz-ai/pos'

<PosScreen
  config={restaurantConfig}
  categories={categories}
  items={items}
  positions={positions}
  terminalName="Caixa 1"
  onAction={handleAction}
/>

The running dogfood app is FayaLabs/chef-pos — a restaurant profile, a real PWA and the E2E suite. It is where a vertical's configuration belongs; this package stays the engine.

Part of the Fayz SDK