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 🙏

© 2025 – Pkg Stats / Ryan Hefner

storeos

v1.1.1

Published

storeOS - A library for building ecommerce fully opensource stores with Stripe integration.

Downloads

84

Readme

storeOS — Open, lightweight storefront utilities

npm GitHub License

storeOS is an open, lightweight package for building storefronts and managing store data in Next.js. It includes Stripe-ready helpers and a modular, easy-to-use API.

Open-source commitment

We maintain storeOS as a transparent, community-focused project. Contributions, issues, and suggestions are welcome. The goal is a small, practical toolkit that makes building and operating storefronts straightforward.

Project overview

storeOS provides utilities for product browsing, category management, carts, orders, and Stripe integration. The library emphasizes readable code, predictable variable names, and modular APIs so you can use only what you need.

Key features

  • Product browsing and retrieval (pagination and filtering).
  • Category management and lookup helpers.
  • Order creation and processing flows.
  • Cart operations: add, remove, fetch.
  • Stripe helpers for payments and price formatting.
  • Minimal, configurable logger with environment-driven log levels.

Install (npm)

Install from npm:

npm install storeos

Quick usage example

Minimal Next.js example to fetch and render products:

import * as Store from "storeos";
import { formatMoney } from "storeos/divisas";
import Image from "next/image";
import Link from "next/link";

export async function ProductList() {
  const products = await Store.productBrowse({ first: 6 });

  return (
    <ul>
      {products.map((product) => (
        <li key={product.id}>
          <Link href={`/product/${product.metadata?.slug ?? product.id}`}>
            <article>
              {product.images?.[0] && (
                <Image
                  src={product.images[0]}
                  width={300}
                  height={300}
                  alt={product.name}
                />
              )}
              <h2>{product.name}</h2>
              {product.default_price?.unit_amount != null && (
                <p>
                  {formatMoney({
                    amount: product.default_price.unit_amount,
                    currency: product.default_price.currency,
                    locale: "en-US",
                  })}
                </p>
              )}
            </article>
          </Link>
        </li>
      ))}
    </ul>
  );
}

Usage notes

  • Authored as an ESM package with TypeScript types in dist.
  • Primary exports include the main entry and helper modules: divisas, internal, sk, db.
  • Peer dependencies include React and Next.js; consult package.json when integrating.

Debugging and logging

Control debug output with the LOG_LEVEL environment variable:

  • ERROR — critical issues only.
  • WARN — noteworthy but non-fatal issues.
  • LOG — standard operational messages.
  • DEBUG — verbose debugging and timing details.

Core Values — #codebase

  • Simplicity: keep APIs small and predictable.
  • Clarity: readable code and clear variable names to reduce onboarding friction.
  • Composability: functions and modules that are easy to compose or replace.
  • Stability: sensible defaults and a conservative public surface area.
  • Documentation-first: practical examples and clear docs.

Roadmap — make the codebase easier

Short-term priorities:

  • Improve variable naming and reduce ambiguous identifiers across modules.
  • Simplify core APIs so common flows require fewer parameters.
  • Add small, focused wrappers for common Next.js + Stripe patterns.
  • Improve TypeScript types and developer DX (better hints, smaller generics).
  • Expand examples and cookbooks for common storefront tasks.

Long-term goals:

  • More adapters (payment providers, headless backends).
  • Better test coverage and CI checks focused on stability.
  • CLI utilities for scaffolding common storefront pages.

Contributing

  • Open an issue to propose larger changes before implementing.
  • Small, focused pull requests are preferred.
  • Follow existing styles and run formatters (prettier) if present.
  • Document changes and add examples for new features.

License

This project is distributed under the Pylar AI Creative ML Free License — see LICENSE.md for details.

Contact

Pencil Works, LLC — https://pencil.li