Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 5
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
push:
branches: [main]
pull_request:

permissions:
contents: read

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [18, 20, 22, 24]

steps:
- name: Check out repository
uses: actions/checkout@v7

- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
cache: npm

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

- name: Verify package contents
run: npm pack --dry-run

- name: Audit production dependencies
if: matrix.node == 22
run: npm audit --omit=dev --audit-level=high
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Changelog

All notable changes to MMM-MessageCenter are documented in this file.

## 0.1.0 - 2026-08-01

### Added

- Normalized message contract with independent urgency and retention.
- Newest-first in-memory history, expiration, deduplication, and acknowledgement.
- Individual message acknowledgement and dismissal controls and notifications.
- Webhook ingestion with optional bearer authentication.
- Optional MQTT and Unix-domain-socket transports using the same normalized schema.
- Optional ingestion-time image snapshots with full-page and compact presentation.
- MagicMirror internal notification ingestion for weather and MMM-Remote-Control.
- Toasts, semantic attention state, and optional MMM-pages channel routing.
- Integration-neutral attention-event configuration with compatibility for the
former Seymour-named option.
- Inbox UI with urgency styling, read-state transitions, history controls, and
MagicMirror locale and clock-format support.
- Compact region-friendly presentation for standard MagicMirror layouts.
- Unit tests, product roadmap, static UI preview, and live-test checklist.

### Security

- Webhook JSON size limits and optional bearer-token enforcement.
- Explicit allowlisting for MMM-Remote-Control ingestion to avoid operational
traffic and recursive MessageCenter events.
- Image download limits, timeouts, signature checks, bounded redirects, and
private-host/unencrypted-HTTP blocking by default.
- Localhost-only webhook binding by default; LAN access now requires explicit
configuration.
- Rolling image-cache limits preserve the newest 12 snapshots within a 12 MiB
decoded-byte budget while retaining older text history.
- Non-touch presentation can hide all buttons and limit rendered messages
without deleting bounded queue history.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Brian Wente

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading