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

@gritsenko/cta-pack

v0.1.1

Published

Headless CLI + Node API for packing HTML5 playable ads for ad networks (post-build packer + validation).

Downloads

30

Readme

@gritsenko/cta-pack

Headless CLI + Node API for packing HTML5 playable ads for ad networks — a universal post-build packer with per-network validation. Feed it an already-built playable (a single .html or a folder with index.html + relative assets) and it produces per-network builds plus a machine-readable validation report. No browser, no clicks.

Built on @gritsenko/cta-core, the same engine behind the PlayableTools /publish page.

Install

npm install -g @gritsenko/cta-pack   # or: npx @gritsenko/cta-pack ...

CLI

cta-pack <source> --networks facebook,google,unity --out ./builds --validate --report json
  • <source> — a folder (entry index.html + relative assets) or a single .html file.
  • --networks a,b,c — comma list of network ids (omit for all). --list-networks prints them.
  • --validate — run per-network checks; pair with --report json or --report pretty.
  • --compress imba — inline a pako-compressed loader to shrink the entry HTML.
  • --android-url / --ios-url — fill the {{google}} / {{apple}} store tokens.
  • --name / --suffix — output file naming (default: source name / EN).
  • Exit codes: 0 ok · 2 built but validation failed · 1 fatal error.

Builds land in builds/<network>/.

Node API

import { packPlayable, validateBuild } from "@gritsenko/cta-pack";

const { builds, report } = await packPlayable({
  source: "./dist",
  networks: ["facebook", "google"],
  outDir: "./builds",
  validate: true,
});

Report contract

{
  "ok": false,
  "networks": [
    { "id": "google", "ok": true, "output": "zip", "path": "builds/google/Game_Google_EN.zip", "sizeBytes": 1803 },
    { "id": "adcolony", "ok": false, "output": "single-html", "path": "builds/adcolony/Game_AdColony_EN.html", "sizeBytes": 5610000,
      "issues": [
        { "code": "SIZE_EXCEEDED", "level": "error", "limit": 2097152, "actual": 5610000,
          "hint": "compress=imba or reduce inlined assets by ~3.4MB" }
      ] }
  ]
}

Issue codes: SIZE_EXCEEDED, MISSING_STORE_URL, NO_CTA_HOOK, EXTERNAL_SCRIPT, BLOCKED_API, MISSING_DOCTYPE, INVALID_HTML.

License

MIT