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

@boxel/boxel-cli

v0.0.4

Published

Boxel Command Line Interface

Downloads

8

Readme

boxel-cli

Command line interface for creating and managing Boxels (recipe-driven system images running on BoxOS).

Installation

$ npm install @boxel/boxel-cli -g

Usage

boxel

~/C/D/w/b/boxel-cli ❯❯❯ boxel                                                                                                                    master
  _                   _
 | |__   _____  _____| |
 | '_ \ / _ \ \/ / _ \ |
 | |_) | (_) >  <  __/ |
 |_.__/ \___/_/\_\___|_|

Create and manage Boxel recipes and images for embedded platforms.

USAGE

 $ boxel [COMMAND]

COMMANDS

 help       Get help for a command
 image      Create and manage images
 instance   Manage a running Boxel instance
 login      Login to BoxelHub
 logout     Logout of BoxelHub
 recipe     Create and manage recipes
 simulate   Simulate in a local VM

To get command help, pass the command to "help" in order to learn more about the subcommands and options available.

boxel login

Example: Login to BoxelHub

$ boxel login
Login to BoxelHub
Username: kevinelliott
Password: ****************
Successfully logged in to BoxelHub.

boxel logout

Example: Logout of BoxelHub

$ boxel logout
Successfully logged out of BoxelHub.

boxel image build

Example: Build a Boxel Image from a Boxel Recipe

$ cd myboxel
$ boxel build --recipe boxel.json --platform rpi4 --net wifi --net-config dhcp --hostname adsb4
Building Boxel image...
  - Recipe "myboxel" with version "0.0.2" is sane.
  - Base OS (BoxOS v0.0.1) not cached, fetching... stored to ~/.boxel/bases/boxos-v0.0.1-rpi4
  - Installing components...
    - flightaware-dump1090
    - flightaware-skyview1090
    - adsbexchange-mlat-client
    - wiedehopf-tar1090
  - Applying host configuration...
    - Hostname: adsb4
    - Network type: wifi
    - Network config: DHCP
Image has been built to ./images/20191119-rpi4-adsb4.boxel

boxel image flash

Example: Flash a Boxel Image to Thumbdrive

$ boxel image flash
Preparing to flash an image to /dev/sda5...
  - Detected latest image: ./images/2019119-rpi4-adsb4.boxel
  - Converting image to flashable image
Flashing ./images/2019119-rpi4-adsb4.img to /dev/sda5...
  - Partitioning...
    - BoxOS Recovery partition initiatized.
    - BoxOS Recovery partition data written.
    - Primary partition initialized.
    - Secondary partition initialized.
    - Data partition initialized.
  - Writing image to Primary partition... Done.
  - Verifying... OK.
  - Unmounted.
You may now remove the drive and insert it into your device.

boxel recipe

Example: Create a new Boxel Recipe

$ boxel recipe create myboxel
Creating boxel "myboxel"...
  - New directory (./myboxel)
  - Initialized default recipe (./myboxel/boxel.json)
    - Current Boxel Recipe Language: v0.0.1
    - Current Stable Base OS: BoxOS v0.0.1
    - Current Stable Upstream OS: DietPi v6.26.3
  - Ensuring hooks
  - Linking libraries
Customize your new boxel recipe in "./myboxel/boxel.json".

Example: Create a new Boxel Recipe with some options

$ boxel recipe create myboxel --brl-version 0.0.2 --base-os boxos --base-os-version 0.0.2
Creating boxel "myboxel"...
  - New directory (./myboxel)
  - Initialized default recipe (./myboxel/boxel.json)
    - Current Boxel Recipe Language: v0.0.2
    - Current Stable Base OS: BoxOS v0.0.2
    - Current Stable Upstream OS: DietPi v6.26.3
  - Ensuring hooks
  - Linking libraries
Customize your new boxel recipe in "./myboxel/boxel.json".

Example: Publish a Boxel Recipe

$ cd myboxel
$ boxel recipe publish
Publishing boxel "myboxel"...
  - BoxelHub User: kevinelliott
  - Incremented recipe version from 0.0.2 to 0.0.3
  - Publishing "myboxel:v0.0.3" publicly
Boxel "myboxel:v0.0.3" published to https://hub.boxel.io/kevinelliott/myboxel/v0.0.3