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

kiosko-plugin-doom

v0.2.2

Published

Doom on your Kiosko panel: the game plays its own demos as an interlude. Engine (doomgeneric, GPL) in a process of its own; Freedoom levels unless you bring your own IWAD.

Readme

kiosko-plugin-doom

Doom on your panel. For now, one interlude: the game's own attract loop (title screens and recorded demos), with no one at the controls.

A plugin for Kiosko, the widget mosaic for small USB LCD panels. Optional: Kiosko doesn't install it; it offers it on the Plugins page.

Doom demos on a 1920×462 panel

Install

In Kiosko, Plugins → Official plugins not installed → kiosko-plugin-doom → Add. Or from a terminal:

npm install --prefix ~/.config/kiosko/plugins kiosko-plugin-doom

(macOS: ~/Library/Application Support/Kiosko/plugins, Windows: %APPDATA%\Kiosko\plugins.)

Then add the interlude to a screen: Screens → Interludes → Doom demos. Like any interlude it plays at a time slot (every 15 min = at :00, :15, :30, :45) for up to maxSeconds, or right away from the editor or Home Assistant.

The game's data

  • Freedoom by default. Freedoom Phase 1 is free content (new levels, art and demos, under the BSD licence). The first time the interlude is due it downloads freedoom-0.13.0.zip (24 MB) from GitHub into the plugin's data folder, checks it against the release's published SHA-256 and keeps freedoom1.wad and its licence. That time it doesn't play; from the next one on it does.
  • Your own IWAD. Point the wad option at a file you own (doom1.wad from the shareware, DOOM.WAD, DOOM2.WAD…). It is read where it is; nothing is copied, and nothing from id Software is shipped or downloaded.

What it does on your machine

  • Runs node: the engine runs in a process of its own, started with the same Node as Kiosko, one per interlude playing. It stops when the interlude ends (or 10 s after the last frame, when an interlude is cut short).
  • Contacts github.com and release-assets.githubusercontent.com, once, to download Freedoom (only when wad is empty).
  • Reads the IWAD you name in wad.

About 5 % of one core while it plays at 15 fps, besides what Kiosko spends sending the frames.

Interludes

Doom demos — doom/attract

The game plays its own recorded demos between title screens, with no one at the controls. The game (320×200, shown at 4:3) is centred on the panel. On a wide one, the game's numbers go beside it in the panel's theme: the map, the level's time, kills, items and secrets on the left; health, armour, the weapon and its ammo on the right.

| Option | Type | Default | | |---|---|---|---| | wad | path | "" | IWAD. A game data file of your own (doom1.wad, DOOM.WAD, DOOM2.WAD…). Empty: Freedoom. | | panels | integer 1–3 | 1 | Panels stacked one on top of the other that show one game between them. | | row | integer 1–3 | 1 | Which of the stacked panels this screen is: 1 is the top one. | | showStats | boolean | true | The game's numbers beside it, when each side has at least 220 px (not in a stack). |

Three panels, one game

Three 1920×462 bars stacked are 1920×1386, nearly the game's 4:3. Give each of the three screens this interlude at the same times, with panels: 3 and its row (1 at the top): they play one game between them, from one engine and one clock, each painting its third.

One game on three stacked panels

Screens playing the same WAD at the same time always share the game, stacked or not: one engine for all of them.

Playing it

With Kiosko 0.2.7 or later the editor has a Play page: pick the screen with this interlude and press Play. A game of your own starts at the first level (Hurt me plenty) on that whole screen, and you play it with the keyboard, a game controller or, on a phone, the pad on the page:

| Pad | Keyboard | Doom | |---|---|---| | ▲ ▼ ◀ ▶ | arrows, W S | walk, turn | | A | Space, Ctrl | fire | | B | E, F | use (doors, switches) | | L R | A D, Q | strafe | | Y | Shift | run | | X | Enter | choose in the menu | | Menu | Esc | the menu | | Map | Tab, M | the map |

It ends after a minute without a button, or with Stop.

How it works

  • engine/: doomgeneric (the Doom source, made portable) and kiosko.c, the platform layer for Kiosko, compiled to WebAssembly with Emscripten (npm run build:engine, in Docker; the result, engine/build/doom.mjs, is committed). See engine/README.md.
  • src/engine-child.ts: the engine's process. It owns no clock: Kiosko says what time it is and asks for a frame.
  • src/engine.ts: Kiosko's side. Forks the process and speaks src/protocol.ts with it, nothing else.
  • src/index.ts: the interlude. Game time is wall time, so when the panel can't keep up the game skips frames rather than going slow.

Licence

GPL-2.0-or-later, like the engine it is built on (see LICENSE). Kiosko itself is MIT; this plugin is a separate program, installed only if you choose to, and its engine runs in its own process.

Freedoom is © the Freedoom contributors, BSD licence (downloaded with its COPYING.txt). DOOM is a trademark of id Software / ZeniMax Media; this project is not affiliated with or endorsed by them.