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

@mj-biz-apps/orders-server

v5.14.0

Published

BizApps Orders server bootstrap - GraphQL resolvers and class registrations for the unified order-management Open App

Readme

@mj-biz-apps/orders-server

The bootstrap. Its job is to make sure every @RegisterClass decorator in this app has actually fired before a request is served.

Why it exists

MJ resolves entity subclasses and remotable operations through ClassFactory at runtime. A decorator only registers when its module is loaded, and a bundler will happily tree-shake a module nothing imports by name. The failure mode is quiet and expensive: Metadata.GetEntityObject returns the base entity, Save() writes the row without running a single business rule, and the order books with no journal entry.

So this package imports the Load* anchors explicitly:

LoadOrderEntityServer();
LoadRefundPaymentOperation();      // 'Orders.RefundPayment'          (D17)
LoadApplyAccountCreditOperation(); // 'Orders.ApplyAccountCredit'     (D68)
LoadPreviewPriceOperation();       // 'Orders.PreviewPrice'           (D69)
LoadDefaultPriceResolver();        // the resolver the walk falls back to
LoadPromotionEngine();             // the promotion qualifier seam    (D70)
LoadTaxResolver();                 // the address → jurisdiction seam (D73)

Each anchor is an empty exported function. Its only purpose is to be a name a bundler cannot prove is unused.

Adding a registered class? Add its anchor here. Nothing will fail loudly if you forget — the base class will be used instead, and the first symptom is a financial one.

Also here

  • config.ts — server configuration
  • src/generated/ — CodeGen's GraphQL resolvers. Do not edit; see the Entities package README.
  • MJ_SERVER_EXTENSIONS — webhook + checkout edge declarations. MJ bootstrap collects this (or package.json memberjunction.serverExtensions) from hosts that list this package in dynamicPackages.server[]. Host mj.config.cjs serverExtensions[] overlays by DriverClass.
  • GET /checkout/:slug — public HTML host for a distribution; POSTs stay on the same edge. Pre-auth. Host serverExtensions[] can set Enabled: false to suppress. Settings: TrustedProxyHops (default 0 — ignore X-Forwarded-For; set to the number of reverse proxies that append to it), RateLimitMax / RateLimitMaxGlobal.

Verifying registration

The integration suite is the real check: it resolves entities through the same ClassFactory a request does, so a missing anchor shows up as a rule not running. If a check fails in a way that looks like "the guard didn't fire", suspect a missing anchor before suspecting the guard.