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 🙏

© 2024 – Pkg Stats / Ryan Hefner

adhub

v0.14.1

Published

Developer tools for working with AdHub HTML banner templates.

Downloads

5

Readme

AdHub Dev Server

The AdHub Dev Server helps you create your AdHub template locally before uploading it to the AdHub. It can also package your template up for distributing a single banner.

How to install or update

  • Log in to the NPM website. If you don't have an NPM account, create one here.
  • Check to see if you have access to the Hook Organization on NPM. If not, ask an admin for an invite.
  • Make sure you are logged into npm commandline tool. Using Powershell or Terminal run npm login
  • Install the AdHub Dev Server npm package:
  • Windows: npm install -g adhub

  • Mac: sudo npm install -g adhub --unsafe-perm=true --allow-root

  • To update just run the same command above.

How To Use The Dev Server

  • Download the latest release of the AdHub Standard Ad Template here: https://github.com/hookerz/000_AdHub_Standard_Template/archive/master.zip
  • Extract the files to a directory on your computer.
  • Open your template directory in PowerShell or Terminal.
  • Run adhubserver. This will start up the AdHub Dev Server and open a window. Saving changes will reload the browser window.
    • Options:
      • -x, --xml: Transpile content.html into content.xml

How to use the Bundler

  • Open PowerShell or Terminal and run adhubbundle <output directory> [source directory]
    • Arguments:
      • <output directory> required Where a timestamped directory will be created with your finalized banner files. This directory can't inside the template directory.
      • `[source directory] optional The directory where the source files of your tempalte are located. If you don't provide it, the program will default to your current directory.
    • Options:
      • -k <string> or --tinykey <string> - api key to use tinypng, this it cached after first use. You have to do this at least once for your images to minify.
      • -t or --nohtml - skip html minification
      • -a or --adobe - project uses Hook Adobe Animate instead of Standard Template
      • -j or --nojs - skip js minification
      • -c or --nocss - skip css minification
      • -i or --noimg - skip image minification
      • -b or --nobundle - skip bundling - no zip, no static image
      • --zipsize <number> - Maximum allowed size of the zips when testing: Default 150K
      • --jpgsize <number> - Maximum allowed size of the static backups when testing: Default 40K
      • --itteratetiny <number> - Number of Times to run TinyPng on Images': Default 2
      • -f --filter <string> - Filter units by folder names or size. Use | for multiple filters. filters like 300x250 are size filters all others are folder filters

Bundler Notes

  • The program will run recursively on the source directory so it can run 100s of banners at a time.
  • Test output is color coded and written to your terminal.
  • Output and Source paths can be relative or absolute.
  • Output directory cannot be inside Source directory,