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

@gravito/satellite-marketing

v0.1.4

Published

這是 Gravito Galaxy 的行銷與促銷規則引擎。它設計用於在不侵入核心交易邏輯的前提下,動態注入折扣、折價券與贈品。

Readme

@gravito/satellite-marketing 🎯

這是 Gravito Galaxy 的行銷與促銷規則引擎。它設計用於在不侵入核心交易邏輯的前提下,動態注入折扣、折價券與贈品。

🌟 核心特性

  • 策略驅動引擎: 基於規則策略模式,輕鬆擴充新的促銷玩法(如買幾送幾)。
  • 折價券生命週期: 支援 Code 核銷、張數限制、有效期與最低消費限制。
  • 非侵入式聯動: 透過 Hook 注入 Adjustment,完全解耦 Commerce 與 Marketing。
  • 高併發預留: 支持 Sport 模式內存快取規則,與 Turbo 模式 Redis 原子核銷。

🚀 促銷玩法 (Built-in Rules)

| 類型 | 標籤 | 描述 | | :--- | :--- | :--- | | cart_threshold | 滿額折抵 | 當購物車小計超過門檻,扣除固定金額。 | | buy_x_get_y | 買 X 送 Y | 針對特定 SKU,每買 X 個就折抵 Y 個的金額。 | | coupon | 折價券 | 使用者輸入代碼,套用固定或百分比折扣。 |

🔗 Galaxy 聯動

本插件主要監聽 Commerce 的價格計算過濾器:

  • Filter: commerce:order:adjustments
  • Action: commerce:order-placed (用於核銷折價券次數)