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

sellin-blog-plugin

v0.0.1

Published

Simple components for converting blog to e-shop.

Readme

Sellin blog

Simple components for converting blog to e-shop.

Uses Svelte, Typescript, Rollup

Contents

  • product badge
  • cart
  • checkout form

Styling guide

available components and their structure is following:

  • ProductBadge - short banner with product info and add to cart button: .product-main
    • product pic: .product-pic
    • product info: .product-text, optional .product-link
      • title: .product-title
      • summary: .product-summary
    • add to cart button with price: .product-price.add-to-cart-button
  • BuyButton - single button with product name, price and single phrase "add to cart": .buy-button-container
    • title: .buy-button-title
    • price: .buy-button-price
    • add to cart text: .buy-button-message
  • Cart - button with popover with hidden part:
    • button: .cart-icon
    • popover: .cart-popover
      • empty cart - single div with .cart-empty
        • else:
          • clear button: .cart-clear
          • list of
            • container: .cart-entry
              • product info: .cart-product-info
                • image container: .cart-product-image
                  • image: .cart-product-image-tag
                • title: .cart-product-title
              • price container: .cart-item-price
                • counter: .counter-body
                  • dec button: .counter-btn.counter-dec
                  • input: .counter-input
                  • inc button: .counter-btn.counter-inc
              • remove button: .cart-item-remove
          • total price: .cart-total
      • promocode entry:
        • text field: .cart-promocode-input
          • input: .cart-promocode-value
        • apply button: .cart-promocode-apply
        • response:
          • while waiting: .cart-promocode-waiting
          • on response: .cart-promocode-message
          • on failure: .cart-promocode-unexpected-failure
      • checkout button: .cart-checkout-button
      • checkout container: .cart-checkout
        • container: .checkout-content
          • table: .checkout-table
            • rows: .checkout-row
              • row first cell (title): .checkout-row-title
              • row second cell (value): .checkout-row-item
                • input: .checkout-input
          • place order button: .checkout-place-order-button
          • while waiting for response: .checkout-waiting
          • when received: .checkout-place-order-ok
          • when failed to get response: .checkout-unexpected-failure

Usage

This package is a base which requires a bit of changes in order to work properly:

  • Api interface implementation

In order to use (assuming you will work in my-project directory):

  • npx degit sveltejs/template my-project
  • cd my-project
  • node scripts/setupTypeScript.js
  • npm i
  • npm i -D srs-games-sellin-blog-<version>.tgz
  • remove everything but main.ts
  • create your implementation of Api interface
  • put export default hydrator(new A()).run(document); at the end of main.ts
  • in your html files, add <script defer src="path-to-bundle">, <div class="product" target="your product id">, <div class="cart">