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

@ff0000-ad-tech/wp-creative-server

v4.3.3

Published

[![npm (tag)](https://img.shields.io/npm/v/@ff0000-ad-tech%2Fwp-creative-server.svg?style=flat-square)](https://www.npmjs.com/package/@ff0000-ad-tech%2Fwp-creative-server) [![GitHub issues](https://img.shields.io/github/issues/ff0000-ad-tech/wp-creative-s

Downloads

79

Readme

RED Interactive Agency - Ad Technology

npm (tag) GitHub issues npm downloads

GitHub contributors npm license PRs Welcome

Webpack - Creative Server

Configurable interface designed to simplify the process of building properly packaged, highly optimized, technically respectable banner campaigns.

Getting Started

Features

Technical Overview

Plugins

CS Frontend Development

Getting Started

We recommend you start with a working template. Once you have a feel for the eco-system, adapt CS as needed to your process.

Webpack 4 Migration

We migrated our build process to Webpack 4 on July 18, 2018. You can read more about it here.

Features

Dashboard

Utilize Webpack in a browser interface for ES6 banner development:

Creative Server

  • many sizes, many indexes
  • non-redundant, modular builds
  • watch states per size/index, optionally concurrent
  • debug & production bundles

Dashboard

Deploy Profiles

Manage deploy-profiles, Webpack settings, and any other collection data:

Deploy Profile Settings

Browser

Enable navigation of assets/outputs:

Browser

  • Open files in associated editor app
  • Open directories in system file manager

Preview

Provide a localhost for quickly testing builds:

Preview

  • Run compiled units in browser
  • Easily refresh
  • Open units in a stand-alone tab for measuring k-weight

Plugins

Plugin architecture for running additional, custom processes.

Technical Overview

The Webpack scripts are independent of Creative Server. They run as their own process & communicate with Creative Server's REST API via https://github.com/ff0000-ad-tech/wp-process-manager.

Otherwise, Creative Server data is a proxy of the file-system, the only source of truth.

Persistant state is maintained by profile.json, plugins.json, and the like. Said state is then acquired by the Express/NodeJS runtime and is made available to the React/Redux view via RPC, on-demand, providing low-latency indication of:

  1. available sizes/indexes
  2. deploy profiles
  3. busy-state
  4. error-state
  5. last conpile time
  6. a view of the project file-system

Default Hierarchy

Creative Server can be installed in your banner project. CS expects the following hierarchy:

. Project Context
├── 1-build
| ├── 300x250
| | ├── index.html
| | └── ...
| ├── 320x50
| | ├── index.html
| | └── ...
| └── ...
|
├── 2-debug
| └── ...
|
├── 3-traffic
| └── ...
|
├── package.json
├── plugins.json
├── webpack.config.js
└── ...

npm install --save-dev @ff0000-ad-tech/wp-creative-server.git

Installing adds the following to your project:

├── node_modules
| └── @ff0000-ad-tech
|  └── wp-creative-server
|   ├── index.js
|   └── ...

Size Targets

Sizes will be discovered in ./[context]/['1-build']/... on folder-names that match /[0-9]+x[0-9]+/.

Index Targets

Indexes will be discovered in ./[context]/['1-build']/[size]/... on file-names that match /index/.

Plugins

Declaring a Plugin

Add a ./plugins.json at your --context location. It will contain an object with NPM-style dependencies, like:

{
	"ad-es6-particles": "git+ssh://[email protected]:7999/at/ad-es6-particles.git",
	"@ff0000-ad-tech/cs-plugin-bulk-compile": "git+ssh://[email protected]:ff0000-ad-tech/cs-plugin-bulk-compile.git",
	"@ff0000-ad-tech/cs-plugin-vendor-indexes": "git+ssh://[email protected]:ff0000-ad-tech/cs-plugin-vendor-indexes.git"
}

Writing a Plugin

A plugin can be a frontend tool that runs in the browser ("app" style plugin) and makes calls to a system-level backend. Or it can simply hook into various UI elements in the app and spawn system-level operations ("api" style plugin).

To make your plugin compatible, the following object must be added to your plugin's package.json:

	"name": "ad-es6-particles", // standard NPM name
	...
	"wp-creative-server": {
		"routes": {
			"app": "/dist", // route to the directory in your plugin that will be served as the app root
			"api": "/lib/api.js" // route to the Node script in your plugin that will be used as the API endpoint
		},
		"hooks": {
			"size-control": {
				"Particle Simulator": "/app/index.html" // the query to either "/app/" or "api", plus whatever static paths & params are needed
			}
		}
	}

Plugin Routes

Once a plugin is installed in your --context's node_modules, Creative Server will create several routes, based on the plugin's package.json. These will be available on the server like:

http://10.0.7.126:5200/ad-es6-particles

All plugin routes are sent the following:

  • api - Creative Server endpoint URL
  • folders.build - name of the build folder
  • folders.debug - name of the debug folder
  • folders.traffic - name of the traffic folder

Plugin Hooks

Hooks are various UI-elements in Creative Server to which plugins can be attributed. Depending on the hook, additional data is passed.

Currently available hooks are:

  1. size-control - your command will appear in a menu next to each ad-size. It will be passed:

    • size - the requested size-folder name.
  2. bulk-control - your command will appear in a drop-down that will execute when the 🔥 is clicked. It will be passed:

    • profile - name of the currently selected deploy profile (also the folder to which traffic-compiled ads are output)
    • targets - an object with keys specifying paths to traffic-compiled output folders

CS Frontend Development

To build the React/Redux/ES6 frontend:

  1. Install all of the dev-dependencies.
  2. Run npm run build