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

@wdft/gvm-sdk

v0.0.30

Published

get via msg sdk - gvm.js

Downloads

1,752

Readme

gvm.js

WDFT - We Do Fintech
GetViaMsg SDK and WebComponents

Showcase of gvm.js web-component

Entrypoints / modes

The package ships three integration layers — pick the one that fits, they don't interfere with each other:

| Entrypoint | Mode | Use it when | | --- | --- | --- | | @wdft/gvm-sdk (npm) | raw SDK — programmatic getViaMsg(), no DOM | you build your own UI and control everything | | dist/gvm.js | declarative — auto-init, reads data-gvm-* + inline <template> | you hand-write the paywall markup | | dist/gvm-overlay.js | config-driven — fetches a JSON config, injects data-gvm-*, boots gvm.js | you want a zero-config, centrally-managed paywall |

  • gvm.js and gvm-overlay.js are isolated ES modules served from a CDN (or bundled).
  • Loading gvm-overlay.js (instead of gvm.js) is the overlay signal — no flag needed; config and admin-editor URLs are derived from data-gvm-env + data-gvm-tenant (see gvm-overlay docs).
  • The admin editor (gvm-admin.js) is loaded lazily on ?gvm_admin=1 by gvm-overlay.js only.

Custom API endpoint

Beside data-gvm-env (demo|local|dev|qa|prod), you can point at an arbitrary API URL with data-gvm-endpoint (absolute URL). When set, the real environment is used regardless of data-gvm-env.

<body data-gvm data-gvm-env="demo" data-gvm-endpoint="https://api.example.com" ...>

gvm-overlay.js (config-driven layer)

gvm-overlay.js is a zero-config layer on top of gvm.js: it fetches a JSON config and applies prices/paywalls to content marked with data-gvm-reference. Loading gvm-overlay.js (instead of gvm.js) is the overlay signal — integration is a one-liner, with the attributes on the <script> tag:

<script type="module"
        src="https://esm.sh/@wdft/gvm-sdk@latest/gvm-overlay.js"
        data-gvm-tenant="your_tenant"
        data-gvm-env="dev"></script>
<div data-gvm-reference="my-article">…paywalled content…</div>

data-gvm-config, data-gvm-admin-src and data-gvm-admin-api are optional overrides. Templates (paywall + payment) come from the config (templates.paywall / templates.payment) — the overlay ships no built-in markup. Docs: gvm-overlay. Backend/admin editor: gvm-sdk-admin.

Changelog

23.08.2026

v0.0.30

gvm.js + gvm-overlay.js: opt-in analytics event stream. Enable with data-gvm-analytics="dl,gtag,custom" (dataLayer/GTM, GA4 gtag, DOM CustomEvent). 16 events cover the full flow (gvm_render, gvm_qr, gvm_pay_click, gvm_sms_click, gvm_cancel, gvm_initializing, gvm_waiting, gvm_resolved, gvm_duplicated, gvm_rejected, gvm_expired, gvm_error, gvm_reveal, gvm_redirect, gvm_download, gvm_inject), each carrying value/currency/reference/tenant. Docs: gvm-js analytics.

22.08.2026

v0.0.29

gvm-overlay.js no-flash helper: wrap gated content in .gvm-cloak — the overlay injects visibility:hidden on load and reveals it once done (config applied or not).

v0.0.28

gvm-overlay.js now supports selectors per article.

v0.0.27

gvm-overlay.js now supports conditions per article and global.

v0.0.26

gvm-overlay.js now supports conditions.

v0.0.25

Fix gvm-overlay.js self-detection on esm.sh: match its own <script> by basename stem (.js/.mjs/.ts) and resolve gvm.js/gvm-admin.js from the script's public URL.

v0.0.24

gvm-overlay.js templates are now config-only: it reads templates.paywall/templates.payment from the tenant config instead of shipping built-in markup (no fallback, warns when missing).

v0.0.23

Overlay now used own templates not hardcoded

v0.0.22

Fixed blur and mangle-blur strategy behaviour

v0.0.21

Changes with gvm_admin logic of load of config

v0.0.20

Add gvm-overlay.js, a config-driven integration layer that fetches a JSON config, applies prices and paywall rules to data-gvm-reference content and boots gvm.js. Config and admin-editor URLs are derived from data-gvm-env + data-gvm-tenant, with data-gvm-config, data-gvm-admin-src and data-gvm-admin-api available as overrides.

16.05.2026

v0.0.19

Maintainance + developer experience

  • type letters
  • add gvm-retry-time param
  • Utils.debug, instead of console.debug
  • fix GvmTemplate.render/destroy
  • move code to TypeScript + bundle into one gvm.js module

24.02.2026

v0.0.18

Webcomponent gvm.js changes:

  • data-gvm-callback now binds properly for callbacks after payments
  • add fallbackCallback when is not passed more details

21.02.2026

v0.0.17

Webcomponent gvm.js bundle with sdk in one package for version compatibility

v0.0.16

Strict version in webcomponent - force fresh package in cdn

v0.0.15

Strict version in webcomponent

v0.0.14

Strict version in webcomponent

v0.0.13

Add signatures support in response Add checkSignature method for commitment

11.01.2026

v0.0.12

Change library name

v0.0.11-rc7

Update URL for environments

09.11.2025

v0.0.11-rc6

Add implementation for percentage, words parameter

Add implementation for blur, mangle-blur strategy

v0.0.11-rc3, v0.0.11-rc4, v0.0.11-rc5

README.md commits

v0.0.11-rc2

Expose status to payload, method getMessage() now resolve full text message instead of mocked "Creating..."

v0.0.11-rc1

Add gvm.js as all-in-one declaritive in html attributes integration.

13.10.2025

v0.0.10

Release candidate, add storages (memory, session, local) to handle state on client side.

More & Contact

Read more about our service GetViaMsg at https://getviamsg.wdft.ovh