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

balena-cloud-apps

v1.2.4

Published

Shell scripts package to the containers native interface BalenaOS for the Raspberry Pi.

Readme

Balena Cloud Apps

balena-cloud-apps

Description Outil open-source en NodeJS pour faciliter le paramétrage et le déploiement de projets sur Balena Cloud (Raspberry Pi, Intel NUC, etc.). Ce module permet de packager des conteneurs pour des applications comme balena-sound ou wifi-repeater.


📥 Installation

Prérequis

  • Balena-CLI doit être installé sur la machine hôte.

Installation du module

Dans votre projet, exécutez :

#!/usr/bin/env bash
cd application
printf "%s\n" "nodeLinker: node-modules" | tee -a .yarnrc.yml
yarn add balena-cloud-apps

⚙️ Configuration du projet

1. Variables de template

Les fichiers Dockerfile.template utilisent des variables au format %%templates_var%%, remplacées par les valeurs définies dans les fichiers <arch>.env (ex: armhf.env, aarch64.env, x86_64.env).

2. Initialisation des fichiers

Exécutez la commande suivante pour générer package.json, common.env et <arch>.env :

post_install

⚠️ Note : Cette commande analyse les sous-dossiers pour détecter les fichiers Docker et réinitialise les fichiers de configuration.

3. Configuration de l’environnement commun

Éditez le fichier common.env pour définir :

  • Les chemins des projets Balena (BALENA_PROJECTS).
  • Les flags spécifiques (BALENA_PROJECTS_FLAGS).

Exemple :

# Chemins des projets Docker Compose
BALENA_PROJECTS=( MY/PATH MY/RELATIVE/PATH )
BALENA_PROJECTS_FLAGS=( BALENA_MACHINE_NAME MY_VARIABLE )

4. Définir les architectures

Créez un fichier par architecture (ex: x86_64.env) :

BALENA_ARCH=x86_64
BALENA_MACHINE_NAME=intel-nuc
IMG_TAG=latest
PRIMARY_HUB=docker-hub-repo/container-service-image

🔨 Construction et déploiement

1. Authentification

Connectez-vous à Docker ou Balena :

docker login  # ou
balena login

2. Construction des dépendances

Utilisez la commande suivante pour construire les images Docker :

balena_deploy test/build/ 5

⚠️ Choix de l’architecture : Sélectionnez ARM32, ARM64 ou X86-64 (1, 2 ou 3). Les images sont poussées vers votre dépôt Docker ($DOCKER_USER/<image>).

3. Déploiement

  • Vers Balena Cloud :
    balena_deploy .
  • En local :
    docker_build . . <DOCKER_USER>/<IMAGE>:<TAG> <BALENA_ARCH>
  • Avec des arguments :
    balena_deploy . x86_64 --nobuild --exit
    balena_deploy . armhf --balena

🔄 Mise à jour du projet après modifications

  1. Testez les modifications :

    yarn test

    Exécutez les tests locaux ou en CI pour valider les changements.

  2. Incrémentez la version :

    npm version patch  # ou minor/major
    git push --tags && git push

    ⚠️ Bonnes pratiques :

    • Validez toutes les modifications dans une PR.
    • Utilisez npm version pour gérer les versions (ex: 1.0.1).
  3. Déploiement automatique :

    Après fusion dans master, GitHub détecte le nouveau tag et déclenche le déploiement via .circleci/config.yml.


📜 Fonctions CLI

Toutes les commandes sont enregistrées dans package.json et disponibles dans le PATH après installation.