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

@portaki/module-trmnl

v1.2.1

Published

Community Portaki module — TRMNL ePaper webhooks (host dashboard & guest display).

Readme

@portaki/module-trmnl

Module communautaire Portaki pour afficher les informations de séjour sur un écran ePaper TRMNL.

Auteur : Cyril Colinet (@cyrilcolinet)
Paquet npm : @portaki/module-trmnl
Artefact Java : app.portaki.module:trmnl-backend
License : MIT
Portaki : v1.0.0+

Sources : PortakiApp/portaki-modules — dossier modules/trmnl/.


Prérequis

  • Appareil TRMNL avec plan Developer Edition (webhooks Private Plugin)
  • Compte usetrmnl.com
  • Portaki v1.0.0+

Installation

  1. Activez le module depuis le dashboard Portaki (Logement → Modules → TRMNL ePaper) lorsqu’il sera enregistré dans le catalogue.
  2. Côté Java, ajoutez la dépendance app.portaki.module:trmnl-backend et exposez un bean TrmnlModule (voir ci-dessous).

Intégration hôte (Java)

Le SDK Portaki fournit GatewayModuleContext et les annotations @PortakiModule / @PortakiEventHandler. Les méthodes de TrmnlModule sont conçues pour être appelées lorsque l’API Portaki relaie les événements déclarés dans portaki.module.json (séjours, checklist).

Instanciation minimale :

import app.portaki.module.trmnl.TrmnlModule;

TrmnlModule trmnl = TrmnlModule.createDefault();
// puis, pour un événement donné :
trmnl.onStayCreated(eventMap, gatewayModuleContext);

L’hôte doit enrichir eventMap avec des champs snake_case documentés (aucun accès base de données dans ce module). Exemples pour le dashboard hôte :

| Clé | Description | |-----|-------------| | current_stay_guest | Prénom ou libellé court du voyageur en cours | | current_stay_checkout | Départ (texte déjà formaté) | | next_stay_guest | Prochain voyageur | | next_stay_checkin | Arrivée (texte formaté) | | next_stay_countdown_days | Entier (jours avant arrivée) | | checklist_progress | 0–100 | | alerts_count | Nombre d’alertes compactes |

Affichage logement (guest_display) :

| Clé | Description | |-----|-------------| | guest_first_name | Prénom uniquement | | checkin_date, checkout_date, checkin_time, checkout_time | Chaînes formatées côté Portaki | | wifi_ssid, door_code | Codes d’accès | | stay_active | booléen | | next_local_event | optionnel (ex. module events) |

Config optionnelle trmnl_screen

Objet JSON dans la configuration du module : fusionné en premier dans le payload, utile pour tests ou champs statiques, puis surchargé par eventMap.


Configuration TRMNL

  1. usetrmnl.com → Plugins → New Plugin → Private Plugin → stratégie Webhook.
  2. Copiez l’URL webhook dans Portaki (webhook_url, type secret).
  3. Collez le markup Liquid depuis templates/ (inclure shared.liquid ou recopier les styles).

Layouts : full.liquid, half_horizontal.liquid, half_vertical.liquid, quadrant.liquid pour host-dashboard/ et guest-display/.


Limitations

  • Rate limit côté module : 11 requêtes / heure / URL webhook (marge sous la limite gratuite TRMNL ~12/h).
  • Taille payload : viser < 2 ko (gratuit) / 5 ko (TRMNL+).
  • Rafraîchissement écran TRMNL : 15–90 minutes selon réglages appareil.
  • Les échecs webhook sont journalisés uniquement (aucune exception vers Portaki).

Contribuer

Voir CONTRIBUTING.md.


Licence

MIT © Cyril Colinet