Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bluecadet/launchpad

Package Overview
Dependencies
Maintainers
5
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bluecadet/launchpad

Suite of tools to manage media installations

  • 1.3.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
45
decreased by-22.41%
Maintainers
5
Weekly downloads
 
Created
Source

🚀 Launchpad

Launchpad is a highly configurable suite of tools to manage media installations. It can:

  • Launch, control and monitor muiltiple processes (via PM2)
  • Download and locally cache content from various common web APIs
  • Bootstrap Windows PCs with common exhibit settings
  • Consolidate and route application logs

...and many more things

Screen Recording of Launchpad on Windows 11

Getting Started

A typical setup will use launchpad as a node dependency, configure it via a launchpad.json file and run npx launchpad via a startup task (e.g. Windows Task Scheduler):

  1. Install launchpad: npm i @bluecadet/launchpad
  2. Create a launchpad.json config (see configuration)
  3. Optional: Bootstrap your PC with npx launchpad scaffold
  4. Run npx launchpad

Type npx launchpad --help for all available commands.

Launchpad can also be installed globally via npm i -g @bluecadet/launchpad and called via launchpad instead of npx launchpad.

Configuration

Each launchpad package is configured via its own section in launchpad.json. Below is a simple example that uses the content package to download JSON and images from Flickr and the monitor to launch a single app:

{
  "content": {
    "sources": [
      {
        "id": "flickr-images",
        "files": {
            "spaceships.json": "https://api.flickr.com/services/feeds/photos_public.gne?format=json&nojsoncallback=1&tags=spaceship",
            "rockets.json": "https://api.flickr.com/services/feeds/photos_public.gne?format=json&nojsoncallback=1&tags=rocket"
        }
      }
    ]
  },
  "monitor": {
    "apps": [
      {
        "pm2": {
          "name": "my-app",
          "script": "my-app.exe",
          "cwd": "./builds/"
        }
      }
    ]
  }
}

Documentation

All available config settings across packages can be found in the links below:

  • monitor: Run and monitor apps
  • content: Download and cache remote content
    • sources: An array containing one or more of the following content source options:
      • airtable: Download content from Airtable
      • contentful: Download content from Contentful
      • json: Download content from JSON endpoints
      • strapi: Download content from Strapi
      • sanity: Download content from Sanity
  • logging: Route logs to the console and to files
  • hooks: Execute scripts before or after common events (e.g. after content has been updated)

Config Loading

  • By default, Launchpad looks for launchpad.json or config.json at the cwd (where you ran npx launchpad/launchpad from)
  • You can change the default path with --config=<YOUR_FILE_PATH> (e.g. npx launchpad --config=../settings/my-config.json)
  • If no config is found, Launchpad will traverse up directories (up to 64) to find one
  • All config values can be overridden via --foo=bar (e.g. --logging.level=debug)

Packages

This repo is a monorepo that includes the following packages:

Each of these packages can be launched and configured independently (except for utils), so if you only need app-monitoring or content updates, you can install only @bluecadet/launchpad-monitor or @bluecadet/launchpad-content.

Requirements

Launchpad requires Node >=17.5.0 and NPM >=8.5.1 for Windows API integration and workspaces support.

We recommend installing the latest version of NodeJS and NPM via nvm-windows:

nvm install latest
nvm use latest
npm i -g npm@latest

Keywords

FAQs

Package last updated on 09 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc