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

@lssm/lib.growth-runtime

v2.1.1

Published

Pure deterministic runtime for GrowthOS referral, affiliate, reward, and payout lifecycles.

Readme

@lssm/lib.growth-runtime

Pure, provider-neutral GrowthOS lifecycle logic for referral and affiliate programs.

It selects one prioritized, non-stackable attribution winner, enforces consent and identity/organization loop boundaries, projects fixed or BillingOS commission-based rewards, applies approval, maturity, and compensating ledger transitions, builds homogeneous payout batches, validates payout readiness, and signs short-lived acquisition context. Persistence and provider SDK calls belong to integrations.

Marketing and editorial runtime

The optional ./marketing subpath adds MarketingExecutor, EditorialService, EditorialPublicationService, source-aware measurement reconciliation and review-only experiment assessment. Supply current authorization, durable CAS storage, provider, clock and ID ports. No provider effects are available by default. Concurrent workers share durable reservations and publication intents; ambiguous outcomes require reconciliation rather than blind redispatch.

Editorial edits invalidate previous approvals and scheduling. Reviews bind to the exact content digest. Published content requires a separate withdrawal workflow; archiving cannot silently remove a live publication.

Commands

  • bun run test
  • bun run typecheck
  • bun run lint:check
  • bun run build

MarketingConversionService reserves conversion identity before dispatch, rechecks current consent and retains uncertain outcomes for read-only reconciliation. Corrections require the accepted predecessor; retractions are terminal. Host authority governs data egress and may independently authorize a retraction after consent revocation.

MarketingObservationService authorizes refresh/read scopes, rejects substituted provider requests and persists observations. marketingObservedStateDigest excludes timestamps and evidence references while retaining scoped resource states for execution planning.

marketing/planning-approval supplies MarketingPlanningApprovalService. Inject current pricing/brand authorization, human-review verification and durable storage. The service issues the existing OperationApprovalReceipt format, bound to exact parsed input and maximum cost. Configure its verifyEvidence callback on createOperationApprovalPort with a durable nonce store; omitting evidence verification is not a supported setup. Issuance returns the persisted receipt, so concurrent calls and replay agree.

marketing/measurement-report sums explicitly requested reporting buckets after source reconciliation. It preserves campaign/creative/creator, currency, timezone and attribution dimensions; missing, partial, stale or future observations keep totals unavailable. Overlapping periods and duplicate authoritative buckets are rejected. These numeric analytics totals do not replace exact-money settlement calculations.

Published builds keep workspace package imports external so dependencies resolve through their owning package manifests rather than being silently inlined across package boundaries.

EditorialService.recovery authorizes scope and each record, validates claim/digest/status/age, and returns a bounded oldest-first batch. It never dispatches publication.

verifyEditorialDeployment checks exact release SHA, ready state, receipt digest, locale coverage and expected canonical URL before returning verified evidence. Hosts must obtain observations from an authorized deployment origin and bind the compiler expectation to the persisted publication claim. This pure verifier does not publish or fetch.

GitEditorialPublisher persists an immutable compiled artifact before its sole Git write attempt. Existing claims reconcile through read-only transport recovery; committed artifacts still require exact deployment proof. The host must implement current authority and native compiler validation.

Git compiler/artifact/authority rejections before dispatch can now return a durable failed-publication receipt when the store supports preparation failures. Existing stores without the capability retain conservative unknown behavior. A failure never supersedes an existing Git attempt, and raw error text is not recorded.

Qualified publishers may implement resumePreparation. The publication service preserves the claim ID, rechecks review/content/current publish authority and claims the expected revision before invoking it. Git resumes reconcile existing attempts and honor preparation-failure fences.

Editorial discovery validates page bounds, UTF-8 ID ordering, scope and all filter bindings before returning summary-schema projections. Scope and every row, including lookahead, require read authorization; denied rows fail the request.

compareEditorialIds exposes the same UTF-8 ordering used by SQL-backed listing so clients can reject non-advancing pages.

readEditorialHistory requires current scope/record authorization and separate authorization for every historical revision. It verifies identity, scope, content digest and ordering before returning historical content.

Editorial history requires contiguous revisions and detects incomplete pages before the observed current revision. Corrupt audit trails fail explicitly.